Skip to content

Commit

Permalink
update release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jul 21, 2015
1 parent 68a6b22 commit fa79042
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ $ npm start
$ npm run deploy
```

#### 发布
#### 版本构建

```bash
$ npm run release
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit fa79042

Please sign in to comment.