Skip to content

Commit

Permalink
Add cross-env as root devdep, remove unnecessary script.
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronFriel committed Nov 6, 2017
1 parent 5715039 commit ccd20f1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion addons/comments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"prepare": "node ../../scripts/prepare.js",
"publish-storybook": "bash .scripts/publish_storybook.sh",
"storybook": "start-storybook -p 3006",
"storybook-local": "STORYBOOK_CLOUD_SERVER='http://localhost:3003/graphql' start-storybook -p 9010",
"storybook-local": "cross-env STORYBOOK_CLOUD_SERVER='http://localhost:3003/graphql' start-storybook -p 9010",
"storybook-remote": "start-storybook -p 3006"
},
"dependencies": {
Expand Down
4 changes: 1 addition & 3 deletions app/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"url": "https://github.com/storybooks/storybook.git"
},
"scripts": {
"prepare-root": "cd ../../ && yarn && cd ./app/react",
"dev": "yarn prepare-root && cross-env DEV_BUILD=1 nodemon --watch ./src --exec \"yarn prepare\"",
"dev": "cross-env DEV_BUILD=1 nodemon --watch ./src --exec \"yarn prepare\"",
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
Expand Down Expand Up @@ -77,7 +76,6 @@
},
"devDependencies": {
"babel-cli": "^6.26.0",
"cross-env": "^5.0.5",
"nodemon": "^1.12.1",
"react": "^16.0.0",
"react-dom": "^16.0.0"
Expand Down
3 changes: 1 addition & 2 deletions app/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"url": "https://github.com/storybooks/storybook.git"
},
"scripts": {
"prepare-root": "cd ../../ && yarn && cd ./app/vue",
"dev": "yarn prepare-root && cross-env DEV_BUILD=1 nodemon --watch ./src --exec \"yarn prepare\"",
"dev": "cross-env DEV_BUILD=1 nodemon --watch ./src --exec \"yarn prepare\"",
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-kitchen-sink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.0",
"babel-preset-vue": "^1.2.1",
"cross-env": "^3.0.0",
"cross-env": "^5.1.1",
"css-loader": "^0.28.7",
"file-loader": "^1.1.5",
"vue-hot-reload-api": "^2.2.0",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"chalk": "^2.3.0",
"codecov": "^3.0.0",
"commander": "^2.11.0",
"cross-env": "^5.1.1",
"danger": "^2.0.0",
"enzyme": "^3.1.1",
"enzyme-adapter-react-16": "^1.0.4",
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3115,6 +3115,13 @@ cross-env@^5.0.5:
cross-spawn "^5.1.0"
is-windows "^1.0.0"

cross-env@^5.1.1:
version "5.1.1"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.1.1.tgz#b6d8ab97f304c0f71dae7277b75fe424c08dfa74"
dependencies:
cross-spawn "^5.1.0"
is-windows "^1.0.0"

cross-spawn@5.1.0, cross-spawn@^5.0.1, cross-spawn@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
Expand Down

0 comments on commit ccd20f1

Please sign in to comment.