GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — martynjacques.github.io/gulpfile.js at master · MartynJacques/martynjacques.github.io Expand file tree/ Copy pathgulpfile.jsMore file actions executable file ·63 lines (53 loc) · 1.99 KB / Copy pathgulpfile.jsFile metadata and controlsexecutable file ·63 lines (53 loc) · 1.99 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 var gulp = require('gulp'), concat = require('gulp-concat'), browserSync = require('browser-sync'), plumber = require('gulp-plumber'), cp = require('child_process'); // stylus stylus = require('gulp-stylus'), rupture = require('rupture'), prefixer = require('autoprefixer-stylus'), nib = require('nib'), // images imagemin = require('gulp-imagemin'); var messages = { jekyllBuild: '<span style="color: grey">Running:</span> $ jekyll build' }; gulp.task('jekyll-build', function (done) { browserSync.notify(messages.jekyllBuild); return cp.spawn('bundle', ['exec', 'jekyll', 'build', '--drafts'], {stdio: 'inherit'}).on('close', done); // return cp.spawn('bundle', ['exec', 'jekyll', 'build'], {stdio: 'inherit'}).on('close', done); }); gulp.task('jekyll-rebuild', ['jekyll-build'], function () { browserSync.reload(); }); gulp.task('browserSync', ['jekyll-build'], function() { browserSync({ server: { baseDir: "_site/" }, open: false }); }); gulp.task('styles', function() { return gulp.src('src/styles/main.styl') .pipe(plumber()) .pipe(stylus({ use:[prefixer(), rupture(), nib()], compress: false })) .pipe(gulp.dest('_site/assets/styles')) .pipe(gulp.dest('_includes')) .pipe(browserSync.reload({stream: true})) .pipe(gulp.dest('assets/styles')); }); gulp.task('imagemin', function(tmp) { return gulp.src('assets/images/**/*.{jpg,png,gif}') .pipe(plumber()) .pipe(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true })) .pipe(gulp.dest('assets/images')); }); gulp.task('watch', function() { gulp.watch('src/styles/**/*', ['styles']); gulp.watch('src/images/**/*.{jpg,png,gif}', ['imagemin']); gulp.watch(['_drafts/*','_includes/*','_layouts/*','_posts/*','*.{html,md}'], ['jekyll-rebuild']); }); gulp.task('default', ['styles', 'imagemin', 'browserSync', 'watch']); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |