Skip to content

Commit b7d0c4a

Browse files
committed
pack extension ci
1 parent 64e8765 commit b7d0c4a

File tree

3 files changed

+368
-4
lines changed

3 files changed

+368
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424

2525
1. `npm install`
2626
2. `npm run dev`(dev) or `npm run build`(build)
27-
27+
3. pack chrome extension zip: `npm run pack`

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"start": "npm run dev",
44
"precommit": "lint-staged",
55
"dev": "MODE=development webpack -w --mode=development",
6-
"build": "MODE=production webpack --mode=production",
7-
"lint": "eslint src --ext=js,jsx"
6+
"build": "npm run clean && MODE=production webpack --mode=production",
7+
"lint": "eslint src --ext=js,jsx",
8+
"clean": "rimraf react-chrome-boilerplate.zip",
9+
"pack": "cd chrome && bestzip ../react-chrome-boilerplate.zip *"
810
},
911
"lint-staged": {
1012
"src/**/*.{js,jsx}": "eslint"
@@ -19,6 +21,7 @@
1921
"babel-preset-react": "^6.24.1",
2022
"babel-preset-stage-0": "^6.24.1",
2123
"babel-runtime": "^6.26.0",
24+
"bestzip": "^2.2.0",
2225
"css-loader": "^1.0.0",
2326
"eslint": "^5.1.0",
2427
"eslint-config-airbnb": "^17.0.0",
@@ -27,6 +30,7 @@
2730
"eslint-plugin-react": "^7.10.0",
2831
"husky": "^0.14.3",
2932
"lint-staged": "^7.2.0",
33+
"rimraf": "^3.0.2",
3034
"style-loader": "^0.21.0",
3135
"webpack": "^4.15.1",
3236
"webpack-cli": "^3.0.8"

0 commit comments

Comments
 (0)