Skip to content

Commit

Permalink
build: add build:watch script (zhihu#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
ambar authored and xiaoyuhen committed Mar 27, 2019
1 parent fbcd09e commit a91020d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"build:lib": "lerna run build --parallel --ignore example --ignore griffith-standalone",
"build:standalone": "lerna run --scope griffith-standalone build",
"build": "yarn build:lib && yarn build:standalone",
"build:watch": "lerna run build:watch --stream --parallel",
"release": "yarn build && lerna publish",
"start": "yarn workspace example run start"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/griffith-hls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"sideEffects": false,
"scripts": {
"prebuild": "rm -rf esm cjs",
"build": "rollup -c ../../rollup.config.js"
"build": "rollup -c ../../rollup.config.js",
"build:watch": "yarn build -w"
},
"peerDependencies": {
"react": ">=16.3.0 <17.0.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/griffith-message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"sideEffects": false,
"scripts": {
"prebuild": "rm -rf esm cjs",
"build": "rollup -c ../../rollup.config.js"
"build": "rollup -c ../../rollup.config.js",
"build:watch": "yarn build -w"
}
}
3 changes: 2 additions & 1 deletion packages/griffith-mp4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"sideEffects": false,
"scripts": {
"prebuild": "rm -rf esm cjs",
"build": "rollup -c ../../rollup.config.js"
"build": "rollup -c ../../rollup.config.js",
"build:watch": "yarn build -w"
},
"devDependencies": {
"read-chunk": "^3.0.0"
Expand Down
3 changes: 2 additions & 1 deletion packages/griffith-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"sideEffects": false,
"scripts": {
"prebuild": "rm -rf esm cjs",
"build": "rollup -c ../../rollup.config.js"
"build": "rollup -c ../../rollup.config.js",
"build:watch": "yarn build -w"
}
}
3 changes: 2 additions & 1 deletion packages/griffith/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"types": "index.d.ts",
"scripts": {
"prebuild": "rm -rf esm cjs",
"build": "rollup -c ../../rollup.config.js"
"build": "rollup -c ../../rollup.config.js",
"build:watch": "yarn build -w"
},
"peerDependencies": {
"react": ">=16.3.0 <17.0.0",
Expand Down

0 comments on commit a91020d

Please sign in to comment.