mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-25 12:45:52 +10:00
change deploy tool
This commit is contained in:
@@ -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
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user