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

Run npm install/build tasks in parallel #2381

Merged
merged 6 commits into from
Jun 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cache:
- lighthouse-extension/node_modules
- lighthouse-viewer/node_modules
install:
- yarn
- yarn install-all
before_script:
- gem install travis-artifacts
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@
"node": ">=6"
},
"scripts": {
"install-all": "yarn && yarn install-launcher && yarn install-cli && yarn install-extension && yarn install-viewer",
"install-all": "npm-run-posix-or-windows install-all:task",
"install-all:task": "yarn & yarn install-launcher & yarn install-cli & yarn install-extension & yarn install-viewer & wait",
"install-all:task:windows": "yarn && yarn install-launcher && yarn install-cli && yarn install-extension && yarn install-viewer",
"install-launcher": "cd ./chrome-launcher && yarn install && yarn build",
"install-cli": "cd ./lighthouse-cli && yarn install && yarn build",
"install-extension": "cd ./lighthouse-extension && yarn install",
"install-viewer": "cd ./lighthouse-viewer && yarn install",
"build-all": "gulp && yarn build-launcher && yarn build-cli && yarn build-extension && yarn build-viewer",
"build-all": "npm-run-posix-or-windows build-all:task",
"build-all:task": "gulp && yarn build-launcher & yarn build-cli & yarn build-extension & yarn build-viewer & wait",
"build-all:task:windows": "gulp && yarn build-launcher && yarn build-cli && yarn build-extension && yarn build-viewer",
"build-cli": "cd ./lighthouse-cli && yarn build",
"build-launcher": "cd ./chrome-launcher && yarn build",
"build-extension": "cd ./lighthouse-extension && yarn build",
Expand Down Expand Up @@ -65,6 +69,7 @@
"istanbul": "^0.4.3",
"jsdom": "^9.12.0",
"mocha": "^3.2.0",
"npm-run-posix-or-windows": "^2.0.2",
"zone.js": "^0.7.3"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ for detailed information.
git clone https://github.com/GoogleChrome/lighthouse

cd lighthouse
yarn
yarn install-all
yarn build-all

Expand Down
12 changes: 11 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2241,6 +2241,10 @@ npm-run-path@^1.0.0:
dependencies:
path-key "^1.0.0"

npm-run-posix-or-windows@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/npm-run-posix-or-windows/-/npm-run-posix-or-windows-2.0.2.tgz#74e894702ae34ea338502d04b500c1dec836736e"

nsdeclare@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/nsdeclare/-/nsdeclare-0.1.0.tgz#10daa153642382d3cf2c01a916f4eb20a128b19f"
Expand Down Expand Up @@ -2967,7 +2971,7 @@ strip-json-comments@~2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"

supports-color@3.1.2, supports-color@^3.1.0:
supports-color@3.1.2:
version "3.1.2"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.1.2.tgz#72a262894d9d408b956ca05ff37b2ed8a6e2a2d5"
dependencies:
Expand All @@ -2977,6 +2981,12 @@ supports-color@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"

supports-color@^3.1.0:
version "3.2.3"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6"
dependencies:
has-flag "^1.0.0"

symbol-tree@^3.2.1:
version "3.2.2"
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6"
Expand Down