mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +08:00
update release scripts
This commit is contained in:
parent
68a6b221c5
commit
fa790428aa
@ -59,7 +59,7 @@ $ npm start
|
||||
$ npm run deploy
|
||||
```
|
||||
|
||||
#### 发布
|
||||
#### 版本构建
|
||||
|
||||
```bash
|
||||
$ npm run release
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user