Files: 6901435d9e64c7242919ff36e6df1ae517d733b4 / gulpfile.js
631 bytesRaw
1 | var gulp = require('gulp'); |
2 | var minifyHtml = require('gulp-minify-html'); |
3 | var cleanCSS = require('gulp-clean-css'); |
4 | var usemin = require('gulp-usemin'); |
5 | var rev = require('gulp-rev'); |
6 | var ghPages = require('gulp-gh-pages'); |
7 | |
8 | gulp.task('build', function () { |
9 | return gulp.src('src/index.html') |
10 | .pipe(usemin({ |
11 | css: [ rev() ], |
12 | html: [ minifyHtml({ empty: true }) ], |
13 | inlinecss: [ cleanCSS, 'concat' ] |
14 | })) |
15 | .pipe(gulp.dest('dist/')); |
16 | }); |
17 | |
18 | gulp.task('publish', function() { |
19 | return gulp.src('./dist/**/*') |
20 | .pipe(ghPages({ |
21 | branch: 'master' |
22 | })); |
23 | }); |
24 | |
25 | gulp.task('deploy', ['build', 'publish']); |
Built with git-ssb-web