Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: refactor to simplify project setup #463

Merged
merged 17 commits into from
Apr 11, 2023
Prev Previous commit
Next Next commit
dev command
  • Loading branch information
dannyhw committed Apr 8, 2023
commit 52ac7e3602b423d84b03f5096f0cd6c5f027a3d4
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,8 @@
},
"scripts": {
"bootstrap": "node ./scripts/bootstrap.js",
"dev": "concurrently --kill-others \"yarn dev:tsc\" \"yarn dev:babel\"",
"dev:babel": "lerna exec --scope @storybook/* --parallel -- cross-env-shell node \\$LERNA_ROOT_PATH/scripts/watch-babel.js",
"dev": "lerna run dev",
"dev:check-types": "tsc --noEmit",
"dev:tsc": "lerna exec --scope @storybook/* --parallel -- cross-env-shell node \\$LERNA_ROOT_PATH/scripts/watch-tsc.js",
"github-release": "github-release-from-changelog",
"lint": "cross-env NODE_ENV=production eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.html,.ts,.tsx,.mjs --report-unused-disable-directives",
"lint:fix": "yarn lint . --fix",
Expand All @@ -45,7 +43,8 @@
"test": "lerna run test"
},
"devDependencies": {
"lerna": "^6.6.1"
"lerna": "^6.6.1",
"cross-env": "^7.0.3"
},
"resolutions": {
"telejson": "^7.0.4"
Expand Down
3 changes: 2 additions & 1 deletion packages/ondevice-backgrounds/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"*.d.ts"
],
"scripts": {
"prepare": "tsc"
"prepare": "tsc",
"dev": "tsc --watch"
},
"dependencies": {
"@storybook/addons": "^6.5.14",
Expand Down
1 change: 1 addition & 0 deletions packages/ondevice-controls/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"scripts": {
"preprepare": "rm -rf dist/",
"prepare": "tsc",
"dev": "tsc --watch",
"postprepare": "cp -r src/components/color-picker/resources dist/components/color-picker/resources"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/ondevice-knobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"*.d.ts"
],
"scripts": {
"prepare": "tsc"
"prepare": "tsc",
"dev": "tsc --watch"
},
"dependencies": {
"@emotion/native": "^10.0.14",
Expand Down
3 changes: 2 additions & 1 deletion packages/ondevice-notes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
],
"scripts": {
"preprepare": "rm -rf dist/",
"prepare": "tsc"
"prepare": "tsc",
"dev": "tsc --watch"
},
"dependencies": {
"@emotion/core": "^10.0.20",
Expand Down
4 changes: 0 additions & 4 deletions packages/ondevice-ui/package.json

This file was deleted.

3 changes: 2 additions & 1 deletion packages/react-native-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"*.d.ts"
],
"scripts": {
"prepare": "tsc"
"prepare": "tsc",
"dev": "tsc --watch"
},
"dependencies": {
"@storybook/addons": "^6.5.14",
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6529,6 +6529,13 @@ create-react-class@^15.7.0:
loose-envify "^1.3.1"
object-assign "^4.1.1"

cross-env@^7.0.3:
version "7.0.3"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"
integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==
dependencies:
cross-spawn "^7.0.1"

cross-fetch@^3.1.5:
version "3.1.5"
resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.5.tgz#e1389f44d9e7ba767907f7af8454787952ab534f"
Expand All @@ -6547,7 +6554,7 @@ cross-spawn@^6.0.0, cross-spawn@^6.0.5:
shebang-command "^1.2.0"
which "^1.2.9"

cross-spawn@^7.0.0, cross-spawn@^7.0.3:
cross-spawn@^7.0.0, cross-spawn@^7.0.1, cross-spawn@^7.0.3:
version "7.0.3"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
Expand Down