change deploy tool

This commit is contained in:
afc163
2015-06-19 18:19:30 +08:00
parent 40c6e0689f
commit af86103b13
2 changed files with 13 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
var buildBranch = require('buildBranch');
buildBranch({
branch: 'gh-pages',
folder: '_site'
}, function(err) {
if(err) {
throw err;
}
console.log('Published!');
});
+2 -1
View File
@@ -26,6 +26,7 @@
"devDependencies": {
"babel-core": "~5.4.7",
"babel-loader": "~5.1.3",
"buildbranch": "0.0.3",
"concurrently": "~0.1.0",
"css-loader": "~0.13.1",
"eslint": "~0.22.1",
@@ -47,7 +48,7 @@
"build": "npm run clean && webpack && nico build",
"start": "npm run clean && nico server --watch",
"clean": "rm -rf _site",
"deploy": "npm run build && gh-pages -d _site -b gh-pages",
"deploy": "npm run build && node deploy.js",
"lint": "eslint components index.js --ext '.js,.jsx'",
"test": "webpack && npm run lint"
},