diff options
Move Docs to Pug templates
1 files changed, 11 insertions, 1 deletions
| -rw-r--r-- | gulpfile.js | 12 |
diff --git a/gulpfile.js b/gulpfile.js index 50040b5..aee8439 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -4,15 +4,17 @@ var cleancss = require('gulp-clean-css'); var csscomb = require('gulp-csscomb'); var rename = require('gulp-rename'); var autoprefixer = require('gulp-autoprefixer'); +var pug = require('gulp-pug'); var paths = { source: './src/*.scss', - doc: './docs/src/*.scss' + doc: './docs/src/scss/*.scss' }; gulp.task('watch', function() { gulp.watch('./**/*.scss', ['build']); gulp.watch('./**/*.scss', ['docs']); + gulp.watch('./**/*.pug', ['pug']); }); gulp.task('build', function() { @@ -57,4 +59,12 @@ gulp.task('docs', function() { .pipe(gulp.dest('./docs/dist')); }); +gulp.task('pug', function build() { + return gulp.src('docs/src/!(_)*.pug') + .pipe(pug({ + pretty: true + })) + .pipe(gulp.dest('./docs/')); +}); + gulp.task('default', ['build']); |