var gulp = require('gulp');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var cleanCSS = require('gulp-clean-css');
var autoprefixer = require('gulp-autoprefixer');
gulp.task('sass', function() {
return gulp.src('./app/sass/**/*.sass')
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(autoprefixer()),
.pipe(cleanCSS()),
.pipe(sourcemaps.write('./maps'))
.pipe(gulp.dest('./app/css'));
});
var reload = browserSync.reload;
var runSequence = require('run-sequence');
gulp.task('pug', function () {
return gulp.src('source/*.pug')
.pipe(pug({pretty: true}))
.pipe(gulp.dest(''))
});
gulp.task('watch', function(){
$.watch('source/**/*.pug ', function(event, cb) {
return runSequence('pug', reload);
});
}
"devDependencies": {
"gulp": "^3.9.1",
"gulp-bower": "^0.0.13",
"gulp-postcss": "^6.0.0",
"gulp-clean-css": "^2.0.7",
"gulp-rigger": "^0.5.8",
"gulp-sass": "^2.3.1",
"gulp-watch": "^4.3.5",
"gulp-filter": "^4.0.0",
"gulp-csscomb": "^3.0.8",
"gulp-plumber": "^1.1.0",
"gulp-util": "^3.0.8",
"gulp-zip": "^4.0.0",
"gulp-posthtml": "^2.0.0",
"autoprefixer": "^6.0.0",
"browser-sync": "^2.12.5",
"rimraf": "^2.5.2",
"eslint": "^3.9.1",
"eslint-config-yandex": "^1.0.6",
"posthtml-attrs-sorter": "^1.1.0"
}