Created
March 9, 2015 19:35
-
-
Save dimkk/e805344a24fae8cc8979 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Проинициализируем модули | |
var gulp = require('gulp'); | |
var concat = require('gulp-ngconcat'); | |
//Создадим задачу | |
gulp.task('concat', function () { | |
gulp.src('src/**/*.js') | |
.pipe(concat('app.js')) | |
.pipe(gulp.dest('./dist/')); | |
}); | |
//Создадим вочер, при изменении файлов, будет дёргать задачу concat | |
gulp.task('watch', function () { | |
gulp.watch('src/**/*.js', ['concat']); | |
}); | |
//Создадим задачу по умолчанию - она будет исполнятся при выполнении команды gulp | |
gulp.task('default', ['concat', 'watch']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment