summaryrefslogtreecommitdiffhomepage
path: root/gulpfile.js
diff options
context:
space:
mode:
authorCamil Staps2017-03-18 16:25:19 +0100
committerCamil Staps2017-03-18 16:25:19 +0100
commit279e8273d381e5b67920e6bf47405dba18c90a35 (patch)
treed0fe6675b2e5465bc9baea65f1cd6fc2a94ba8a5 /gulpfile.js
parentAdded note about bands (diff)
Move to pug instead of jade
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js21
1 files changed, 8 insertions, 13 deletions
diff --git a/gulpfile.js b/gulpfile.js
index becf429..82f3d19 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1,24 +1,23 @@
var gulp = require('gulp'),
bower = require('gulp-bower'),
changed = require('gulp-changed'),
- jade = require('gulp-jade'),
- jadeModules = require('gulp-jade-modules'),
+ pug = require('gulp-pug'),
minifyhtml = require('gulp-minify-html'),
notify = require('gulp-notify'),
sass = require('gulp-ruby-sass');
var config = {
sassPath: './resources/sass',
- jadePath: './resources/jade',
+ pugPath: './resources/pug',
bowerDir: './bower_components'
}
gulp.task('watch', function() {
gulp.watch(config.sassPath + '/**/*.scss', ['css']);
- gulp.watch(config.jadePath + '/**/*.jade', ['jade']);
+ gulp.watch(config.pugPath + '/**/*.pug', ['pug']);
});
-gulp.task('default', ['bower', 'css', 'jade', 'img']);
+gulp.task('default', ['bower', 'css', 'pug', 'img']);
gulp.task('bower', function() {
return bower()
@@ -41,17 +40,14 @@ gulp.task('css', function() {
.pipe(gulp.dest('./build/assets/css'));
});
-gulp.task('jade', function() {
- var src = './resources/jade/finals/**/*.jade',
+gulp.task('pug', function() {
+ var src = './resources/pug/finals/**/*.pug',
dst = './build';
return gulp.src(src)
.pipe(changed(dst, {extension: 'html'}))
- .pipe(jadeModules({
- paths: ['./resources/jade/include']
- }))
- .pipe(jade({
- basedir: '/'
+ .pipe(pug({
+ basedir: './resources/pug/include'
}))
.pipe(minifyhtml())
.pipe(gulp.dest(dst));
@@ -61,4 +57,3 @@ gulp.task('img', function() {
return gulp.src('./resources/img/*')
.pipe(gulp.dest('./build/assets/img'));
});
-