Skip to content

Commit c71da70

Browse files
author
bearyan
committed
优化 build脚本加入lint检验
1 parent dcd83bc commit c71da70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "./dist/weui.min.js",
66
"scripts": {
77
"start": "webpack-dev-server --config ./build/webpack.example.config.js --content-base dist/example --progress --colors --host 0.0.0.0 --port 8001",
8-
"build": "npm run clean && webpack --config ./build/webpack.example.config.js && node build/build.js",
8+
"build": "npm run clean && npm run lint && webpack --config ./build/webpack.example.config.js && node build/build.js",
99
"docs": "node ./build/docs.js",
1010
"deploy": "npm run docs && gh-pages -d docs/_book",
1111
"lint": "eslint ./src/**/*.js",

0 commit comments

Comments
 (0)