Reorganizes the project with clean MVC structure
This commit is contained in:
16
gulpfile.js
16
gulpfile.js
@@ -18,3 +18,19 @@ gulp.task('test', function() {
|
||||
gulp.task('autotest', function() {
|
||||
return gulp.watch(['webapp/js/**/*.js','test/specs/*.js'], ['test']);
|
||||
});
|
||||
|
||||
|
||||
gulp.task('build', function() {
|
||||
return gulp.src('./webapp/html/index.html')
|
||||
.pipe(plugins.inject(
|
||||
gulp.src(['./webapp/js/**/*.js']).pipe(plugins.angularFilesort()),
|
||||
{
|
||||
ignorePath: '/webapp'
|
||||
}
|
||||
))
|
||||
.pipe(gulp.dest('./webapp'));
|
||||
});
|
||||
|
||||
gulp.task('autobuild', function() {
|
||||
return gulp.watch(['webapp/js/**/*.js','webapp/html/index.html'], ['build']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user