Skip to content

Instantly share code, notes, and snippets.

@mrmlnc
Created August 31, 2015 12:52
Show Gist options
  • Save mrmlnc/f12988b8d5bc270e5c69 to your computer and use it in GitHub Desktop.
Save mrmlnc/f12988b8d5bc270e5c69 to your computer and use it in GitHub Desktop.
Шаг первый. Начальная точка
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