Updates to Event Form

This commit is contained in:
Luke Vella 2015-01-19 13:18:27 +01:00
parent f776756798
commit e61ef151f6
43 changed files with 736 additions and 484 deletions

View file

@ -5,6 +5,7 @@ var ngAnnotate = require('gulp-ng-annotate');
var sourcemaps = require('gulp-sourcemaps');
var sass = require('gulp-sass');
var notify = require('gulp-notify');
var templateCache = require('gulp-angular-templatecache');
gulp.task('js', function () {
gulp.src(['public/js/**/module.js', 'public/js/**/*.js'])
@ -32,7 +33,18 @@ gulp.task('sass', function(){
.pipe(gulp.dest('public/css'))
});
gulp.task('templates', function(){
gulp.src('public/templates/**/*.html')
.pipe(templateCache({
module : 'rallly',
root : 'templates'
}))
.pipe(notify("Templates compiled!"))
.pipe(gulp.dest('public/js'))
});
gulp.task('watch', ['js','sass'], function () {
gulp.watch('public/scss/**/*.scss', ['sass'])
gulp.watch('public/templates/**/*.html', ['templates'])
gulp.watch('public/js/**/*.js', ['js'])
});