1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-10 12:24:20 +01:00

added gulp task to publish to ghpages

This commit is contained in:
Enrico Fasoli 2015-11-19 18:06:45 +01:00
parent cda324664d
commit 7c98585125
3 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
ipfs-boards-profile/ ipfs-boards-profile/
node_modules/ node_modules/
webapp/dist/ webapp/dist/
.publish/

View File

@ -9,6 +9,7 @@ var exorcist = require('exorcist')
var connect = require('gulp-connect') var connect = require('gulp-connect')
var watchify = require('watchify') var watchify = require('watchify')
var util = require('gulp-util') var util = require('gulp-util')
var ghPages = require('gulp-gh-pages')
var config = { var config = {
files: { files: {
@ -97,6 +98,11 @@ gulp.task('watch',['js-watch'],function(){
gulp.watch(config.files.css,['css']) gulp.watch(config.files.css,['css'])
}) })
gulp.task('gh-pages',[ 'html', 'css', 'js' ],function(){
gulp.src([config.dest+'*.js',config.dest+'*.css',config.dest+'*.html'])
.pipe(ghPages())
})
gulp.task('serve', [ 'html', 'css', 'watch', 'server' ]) gulp.task('serve', [ 'html', 'css', 'watch', 'server' ])
gulp.task('default', [ 'html', 'css', 'js' ]) gulp.task('default', [ 'html', 'css', 'js' ])

View File

@ -32,6 +32,7 @@
"gulp": "~3.9.0", "gulp": "~3.9.0",
"gulp-clean": "~0.3.1", "gulp-clean": "~0.3.1",
"gulp-connect": "~2.2.0", "gulp-connect": "~2.2.0",
"gulp-gh-pages": "^0.5.4",
"gulp-minify-css": "~1.2.1", "gulp-minify-css": "~1.2.1",
"gulp-uglify": "~1.5.1", "gulp-uglify": "~1.5.1",
"gulp-util": "~3.0.7", "gulp-util": "~3.0.7",