Created
August 31, 2015 12:52
-
-
Save mrmlnc/f12988b8d5bc270e5c69 to your computer and use it in GitHub Desktop.
Шаг первый. Начальная точка
This file contains 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 jade = require('gulp-jade'); | |
var less = require('gulp-less'); | |
gulp.task('jade', function() { | |
return gulp.src('app-canonium/templates/*.jade') | |
.pipe(jade({ pretty: true })) | |
.pipe(gulp.dest('build')) | |
}); | |
gulp.task('less', function() { | |
return gulp.src('app-canonium/less/*.less') | |
.pipe(less()) | |
.pipe(gulp.dest('build')) | |
}); | |
gulp.watch('app-canonium/templates/*.jade', gulp.series('jade', function jadeFinish() { | |
console.log('Компиляция файлов шаблона завершена'); | |
})); | |
gulp.watch('app-canonium/less/*.less', gulp.series('less', function lessFinish() { | |
console.log('Компиляция файлов стилей завершена'); | |
})); | |
gulp.task('default', gulp.parallel('jade', 'less')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment