update release scripts

This commit is contained in:
afc163 2015-07-21 12:05:39 +08:00
parent 68a6b221c5
commit fa790428aa
2 changed files with 2 additions and 4 deletions

View File

@ -59,7 +59,7 @@ $ npm start
$ npm run deploy
```
#### 发布
#### 版本构建
```bash
$ npm run release

View File

@ -75,12 +75,10 @@
},
"scripts": {
"babel": "babel components --out-dir lib",
"build": "npm run clean && webpack && nico build",
"pack": "npm run clean && webpack --optimize-minimize && nico build",
"release": "npm run clean && webpack --config webpack.config.production.js && webpack --config webpack.config.min.js && zip dist/${npm_package_name}-${npm_package_version}.zip -j dist dist/*",
"start": "npm run clean && nico server --watch",
"clean": "rm -rf _site dist",
"deploy": "rm -rf node_modules && node scripts/install.js && npm run pack && node scripts/deploy.js",
"deploy": "rm -rf node_modules && node scripts/install.js && npm run clean && webpack --optimize-minimize && nico build && node scripts/deploy.js",
"lint": "eslint components index.js --ext '.js,.jsx'",
"test": "webpack && npm run lint",
"prepublish": "npm run babel && rm -rf dist && webpack && node scripts/prenpm.js"