git ssb

0+

Rômulo Alves / website



Tree: eacd984cfbaafe006881abbf32f3648f480568ba

Files: eacd984cfbaafe006881abbf32f3648f480568ba / gulpfile.js

556 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('deploy', function() {
19 return gulp.src('./dist/**/*')
20 .pipe(ghPages());
21});

Built with git-ssb-web