From af86103b13e80a792d28d9c94ea5bdf3ee28e8cd Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 19 Jun 2015 18:19:30 +0800 Subject: [PATCH] change deploy tool --- deploy.js | 11 +++++++++++ package.json | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 deploy.js diff --git a/deploy.js b/deploy.js new file mode 100644 index 000000000..f873788be --- /dev/null +++ b/deploy.js @@ -0,0 +1,11 @@ +var buildBranch = require('buildBranch'); + +buildBranch({ + branch: 'gh-pages', + folder: '_site' +}, function(err) { + if(err) { + throw err; + } + console.log('Published!'); +}); diff --git a/package.json b/package.json index 4125035ea..790d7eb72 100644 --- a/package.json +++ b/package.json @@ -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" },