From 8d03cda91d9bfa5475b69e296b437f36af304e5a Mon Sep 17 00:00:00 2001 From: Aaron Friel Date: Sat, 14 Oct 2017 12:38:43 -0500 Subject: [PATCH] Build scripts working on Windows. --- app/react/package.json | 4 ++- app/vue/package.json | 5 ++-- yarn.lock | 67 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 3 deletions(-) diff --git a/app/react/package.json b/app/react/package.json index aef8aed6702..28c6300e05b 100644 --- a/app/react/package.json +++ b/app/react/package.json @@ -18,7 +18,8 @@ "url": "https://github.com/storybooks/storybook.git" }, "scripts": { - "dev": "DEV_BUILD=1 nodemon --watch ./src --exec 'yarn prepare'", + "prepare-root": "cd ../../ && yarn && cd ./app/react", + "dev": "yarn prepare-root && cross-env DEV_BUILD=1 nodemon --watch ./src --exec \"yarn prepare\"", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -76,6 +77,7 @@ }, "devDependencies": { "babel-cli": "^6.26.0", + "cross-env": "^5.0.5", "nodemon": "^1.12.1", "react": "^16.0.0", "react-dom": "^16.0.0" diff --git a/app/vue/package.json b/app/vue/package.json index 64f810e3604..07df3ed6c56 100644 --- a/app/vue/package.json +++ b/app/vue/package.json @@ -18,7 +18,8 @@ "url": "https://github.com/storybooks/storybook.git" }, "scripts": { - "dev": "DEV_BUILD=1 nodemon --watch ./src --exec 'yarn prepare'", + "prepare-root": "cd ../../ && yarn && cd ./app/vue", + "dev": "yarn prepare-root && cross-env DEV_BUILD=1 nodemon --watch ./src --exec \"yarn prepare\"", "prepare": "node ../../scripts/prepare.js" }, "dependencies": { @@ -77,7 +78,7 @@ }, "devDependencies": { "babel-cli": "^6.26.0", - "nodemon": "^1.12.1", + "nodemon": "^1.12.1" "vue": "^2.5.3", "vue-loader": "^13.4.0", "vue-template-compiler": "^2.5.3" diff --git a/yarn.lock b/yarn.lock index f42617e1cd7..4c3db1a2f6b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3108,6 +3108,13 @@ cross-env@^3.0.0: cross-spawn "^5.1.0" is-windows "^1.0.0" +cross-env@^5.0.5: + version "5.0.5" + resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.0.5.tgz#4383d364d9660873dd185b398af3bfef5efffef3" + 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" @@ -12057,9 +12064,69 @@ webpack-sources@^1.0.1: source-list-map "^2.0.0" source-map "~0.5.3" +<<<<<<< refs/remotes/upstream/master webpack@3.8.1, webpack@^3.6.0, webpack@^3.8.1: version "3.8.1" resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.8.1.tgz#b16968a81100abe61608b0153c9159ef8bb2bd83" +======= +webpack@3.5.1: + version "3.5.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.5.1.tgz#b749ee3d2b5a118dad53e8e41585b3f71e75499a" + dependencies: + acorn "^5.0.0" + acorn-dynamic-import "^2.0.0" + ajv "^5.1.5" + ajv-keywords "^2.0.0" + async "^2.1.2" + enhanced-resolve "^3.4.0" + escope "^3.6.0" + interpret "^1.0.0" + json-loader "^0.5.4" + json5 "^0.5.1" + loader-runner "^2.3.0" + loader-utils "^1.1.0" + memory-fs "~0.4.1" + mkdirp "~0.5.0" + node-libs-browser "^2.0.0" + source-map "^0.5.3" + supports-color "^4.2.1" + tapable "^0.2.7" + uglifyjs-webpack-plugin "^0.4.6" + watchpack "^1.4.0" + webpack-sources "^1.0.1" + yargs "^8.0.2" + +webpack@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.6.0.tgz#a89a929fbee205d35a4fa2cc487be9cbec8898bc" + dependencies: + acorn "^5.0.0" + acorn-dynamic-import "^2.0.0" + ajv "^5.1.5" + ajv-keywords "^2.0.0" + async "^2.1.2" + enhanced-resolve "^3.4.0" + escope "^3.6.0" + interpret "^1.0.0" + json-loader "^0.5.4" + json5 "^0.5.1" + loader-runner "^2.3.0" + loader-utils "^1.1.0" + memory-fs "~0.4.1" + mkdirp "~0.5.0" + node-libs-browser "^2.0.0" + source-map "^0.5.3" + supports-color "^4.2.1" + tapable "^0.2.7" + uglifyjs-webpack-plugin "^0.4.6" + watchpack "^1.4.0" + webpack-sources "^1.0.1" + yargs "^8.0.2" + +webpack@^3.7.1: + version "3.7.1" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.7.1.tgz#6046b5c415ff7df7a0dc54c5b6b86098e8b952da" +>>>>>>> Build scripts working on Windows. dependencies: acorn "^5.0.0" acorn-dynamic-import "^2.0.0"