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:
parent
cda324664d
commit
7c98585125
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
ipfs-boards-profile/
|
||||
node_modules/
|
||||
webapp/dist/
|
||||
.publish/
|
||||
|
@ -9,6 +9,7 @@ var exorcist = require('exorcist')
|
||||
var connect = require('gulp-connect')
|
||||
var watchify = require('watchify')
|
||||
var util = require('gulp-util')
|
||||
var ghPages = require('gulp-gh-pages')
|
||||
|
||||
var config = {
|
||||
files: {
|
||||
@ -97,6 +98,11 @@ gulp.task('watch',['js-watch'],function(){
|
||||
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('default', [ 'html', 'css', 'js' ])
|
||||
|
@ -32,6 +32,7 @@
|
||||
"gulp": "~3.9.0",
|
||||
"gulp-clean": "~0.3.1",
|
||||
"gulp-connect": "~2.2.0",
|
||||
"gulp-gh-pages": "^0.5.4",
|
||||
"gulp-minify-css": "~1.2.1",
|
||||
"gulp-uglify": "~1.5.1",
|
||||
"gulp-util": "~3.0.7",
|
||||
|
Loading…
Reference in New Issue
Block a user