diff options
author | Camil Staps | 2017-01-11 19:32:16 +0100 |
---|---|---|
committer | Camil Staps | 2017-01-11 19:32:16 +0100 |
commit | 093c3d9d136992baf1557d2f25dda8ec4bd63a3e (patch) | |
tree | 2ce1bd6585b7508d07b405e93693e2d1a019fd64 /gulpfile.js | |
parent | Added FP1 2016-17 (diff) |
Fix indenting
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/gulpfile.js b/gulpfile.js index 7726186..9159c76 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,58 +1,58 @@ var gulp = require('gulp'), - bower = require('gulp-bower'), - changed = require('gulp-changed'), - jade = require('gulp-jade'), - minifyhtml = require('gulp-minify-html'), - notify = require('gulp-notify'), - sass = require('gulp-ruby-sass'); + bower = require('gulp-bower'), + changed = require('gulp-changed'), + jade = require('gulp-jade'), + minifyhtml = require('gulp-minify-html'), + notify = require('gulp-notify'), + sass = require('gulp-ruby-sass'); var config = { - sassPath: './resources/sass', - jadePath: './resources/jade', - bowerDir: './bower_components' + sassPath: './resources/sass', + jadePath: './resources/jade', + bowerDir: './bower_components' } gulp.task('watch', function() { - gulp.watch(config.sassPath + '/**/*.scss', ['css']); - gulp.watch(config.jadePath + '/**/*.jade', ['jade']); + gulp.watch(config.sassPath + '/**/*.scss', ['css']); + gulp.watch(config.jadePath + '/**/*.jade', ['jade']); }); gulp.task('default', ['bower', 'css', 'jade', 'img']); gulp.task('bower', function() { - return bower() - .pipe(gulp.dest(config.bowerDir)); + return bower() + .pipe(gulp.dest(config.bowerDir)); }); gulp.task('css', function() { - return gulp.src(config.sassPath + '/style.scss') - .pipe(sass({ - style: 'compressed', - loadPath: [ - './resources/sass', - config.bowerDir + '/bootstrap-sass-official/assets/stylesheets' - ] - }) - .on('error', notify.onError(function (error) { - return "Error: " + error.message; - })) - ) - .pipe(gulp.dest('./build/assets/css')); + return gulp.src(config.sassPath + '/style.scss') + .pipe(sass({ + style: 'compressed', + loadPath: [ + './resources/sass', + config.bowerDir + '/bootstrap-sass-official/assets/stylesheets' + ] + }) + .on('error', notify.onError(function (error) { + return "Error: " + error.message; + })) + ) + .pipe(gulp.dest('./build/assets/css')); }); gulp.task('jade', function() { - var src = './resources/jade/*.jade', - dst = './build'; - - return gulp.src(src) - .pipe(changed(dst, {extension: 'html'})) - .pipe(jade()) - .pipe(minifyhtml()) - .pipe(gulp.dest(dst)); + var src = './resources/jade/*.jade', + dst = './build'; + + return gulp.src(src) + .pipe(changed(dst, {extension: 'html'})) + .pipe(jade()) + .pipe(minifyhtml()) + .pipe(gulp.dest(dst)); }); gulp.task('img', function() { - return gulp.src('./resources/img/*') - .pipe(gulp.dest('./build/assets/img')); + return gulp.src('./resources/img/*') + .pipe(gulp.dest('./build/assets/img')); }); |