The project grows up. There are a lot of code lines. I am going to divide it into small files and to compile to a single file injecting it in to the application. I did before. Yes I’ve found gulp file. Help me to turn it right. Thank you.
gulp.task('compile_app', function () {
gulp.src(['src/**/*.js'])
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe(concat('app.js'))
.pipe(ngAnnotate())
//.pipe(uglify())
.pipe(sourcemaps.write())
.pipe(gulp.dest('.'));
});
gulp.task('watch', function () {
watch('src/**/*.js', function (files, cb) {
gulp.start('compile_app', cb);
})
.pipe(plumber());
});