git ssb

0+

Rômulo Alves / website



Tree: 6901435d9e64c7242919ff36e6df1ae517d733b4

Files: 6901435d9e64c7242919ff36e6df1ae517d733b4 / gulpfile.js

631 bytesRaw
1var gulp = require('gulp');
2var minifyHtml = require('gulp-minify-html');
3var cleanCSS = require('gulp-clean-css');
4var usemin = require('gulp-usemin');
5var rev = require('gulp-rev');
6var ghPages = require('gulp-gh-pages');
7
8gulp.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
18gulp.task('publish', function() {
19 return gulp.src('./dist/**/*')
20 .pipe(ghPages({
21 branch: 'master'
22 }));
23});
24
25gulp.task('deploy', ['build', 'publish']);

Built with git-ssb-web