Skip to content

Commit a632708

Browse files
committed
parallelize watch-client and watch-extensions
1 parent 9413602 commit a632708

File tree

3 files changed

+63
-5
lines changed

3 files changed

+63
-5
lines changed

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"message": 3
2727
},
2828
"background": {
29-
"beginsPattern": "Starting compilation",
30-
"endsPattern": "Finished compilation"
29+
"beginsPattern": "\\[watch-client\\].*Starting compilation",
30+
"endsPattern": "\\[watch-client\\].*Finished compilation"
3131
}
3232
}
3333
},

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
"preinstall": "node build/npm/preinstall.js",
1515
"postinstall": "node build/npm/postinstall.js",
1616
"compile": "gulp compile --max_old_space_size=4095",
17-
"watch": "gulp watch --max_old_space_size=4095",
17+
"watch": "concurrently \"npm:watch-client\" \"npm:watch-extensions\"",
1818
"watchd": "deemon yarn watch",
1919
"watch-webd": "deemon yarn watch-web",
2020
"kill-watchd": "deemon --kill yarn watch",
2121
"kill-watch-webd": "deemon --kill yarn watch-web",
2222
"restart-watchd": "deemon --restart yarn watch",
2323
"restart-watch-webd": "deemon --restart yarn watch-web",
2424
"watch-client": "gulp watch-client --max_old_space_size=4095",
25+
"watch-extensions": "gulp watch-extensions --max_old_space_size=4095",
2526
"mocha": "mocha test/unit/node/all.js --delay",
2627
"precommit": "node build/gulpfile.hygiene.js",
2728
"gulp": "gulp --max_old_space_size=8192",
@@ -97,6 +98,7 @@
9798
"ansi-colors": "^3.2.3",
9899
"asar": "^0.14.0",
99100
"chromium-pickle-js": "^0.2.0",
101+
"concurrently": "^5.2.0",
100102
"copy-webpack-plugin": "^4.5.2",
101103
"cson-parser": "^1.3.3",
102104
"css-loader": "^3.2.0",

yarn.lock

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,6 +2023,21 @@ concat-with-sourcemaps@^1.0.0:
20232023
dependencies:
20242024
source-map "^0.5.1"
20252025

2026+
concurrently@^5.2.0:
2027+
version "5.2.0"
2028+
resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-5.2.0.tgz#ead55121d08a0fc817085584c123cedec2e08975"
2029+
integrity sha512-XxcDbQ4/43d6CxR7+iV8IZXhur4KbmEJk1CetVMUqCy34z9l0DkszbY+/9wvmSnToTej0SYomc2WSRH+L0zVJw==
2030+
dependencies:
2031+
chalk "^2.4.2"
2032+
date-fns "^2.0.1"
2033+
lodash "^4.17.15"
2034+
read-pkg "^4.0.1"
2035+
rxjs "^6.5.2"
2036+
spawn-command "^0.0.2-1"
2037+
supports-color "^6.1.0"
2038+
tree-kill "^1.2.2"
2039+
yargs "^13.3.0"
2040+
20262041
config-chain@^1.1.11, config-chain@^1.1.12:
20272042
version "1.1.12"
20282043
resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.12.tgz#0fde8d091200eb5e808caf25fe618c02f48e4efa"
@@ -2327,6 +2342,11 @@ dashdash@^1.12.0:
23272342
dependencies:
23282343
assert-plus "^1.0.0"
23292344

2345+
date-fns@^2.0.1:
2346+
version "2.14.0"
2347+
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.14.0.tgz#359a87a265bb34ef2e38f93ecf63ac453f9bc7ba"
2348+
integrity sha512-1zD+68jhFgDIM0rF05rcwYO8cExdNqxjq4xP1QKM60Q45mnO6zaMWB4tOzrIr4M4GSLntsKeE4c9Bdl2jhL/yw==
2349+
23302350
date-now@^0.1.4:
23312351
version "0.1.4"
23322352
resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"
@@ -2827,6 +2847,13 @@ error-ex@^1.2.0:
28272847
dependencies:
28282848
is-arrayish "^0.2.1"
28292849

2850+
error-ex@^1.3.1:
2851+
version "1.3.2"
2852+
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"
2853+
integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==
2854+
dependencies:
2855+
is-arrayish "^0.2.1"
2856+
28302857
es5-ext@^0.10.14, es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14:
28312858
version "0.10.35"
28322859
resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.35.tgz#18ee858ce6a3c45c7d79e91c15fcca9ec568494f"
@@ -5290,7 +5317,7 @@ [email protected]:
52905317
dependencies:
52915318
jsonparse "~1.2.0"
52925319

5293-
json-parse-better-errors@^1.0.2:
5320+
json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2:
52945321
version "1.0.2"
52955322
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
52965323
integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==
@@ -6829,6 +6856,14 @@ parse-json@^2.2.0:
68296856
dependencies:
68306857
error-ex "^1.2.0"
68316858

6859+
parse-json@^4.0.0:
6860+
version "4.0.0"
6861+
resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0"
6862+
integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=
6863+
dependencies:
6864+
error-ex "^1.3.1"
6865+
json-parse-better-errors "^1.0.1"
6866+
68326867
parse-node-version@^1.0.0:
68336868
version "1.0.1"
68346869
resolved "https://registry.yarnpkg.com/parse-node-version/-/parse-node-version-1.0.1.tgz#e2b5dbede00e7fa9bc363607f53327e8b073189b"
@@ -7665,6 +7700,15 @@ read-pkg@^1.0.0:
76657700
normalize-package-data "^2.3.2"
76667701
path-type "^1.0.0"
76677702

7703+
read-pkg@^4.0.1:
7704+
version "4.0.1"
7705+
resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-4.0.1.tgz#963625378f3e1c4d48c85872b5a6ec7d5d093237"
7706+
integrity sha1-ljYlN48+HE1IyFhytabsfV0JMjc=
7707+
dependencies:
7708+
normalize-package-data "^2.3.2"
7709+
parse-json "^4.0.0"
7710+
pify "^3.0.0"
7711+
76687712
read@^1.0.7:
76697713
version "1.0.7"
76707714
resolved "https://registry.yarnpkg.com/read/-/read-1.0.7.tgz#b3da19bd052431a97671d44a42634adf710b40c4"
@@ -8135,6 +8179,13 @@ rxjs@^6.4.0:
81358179
dependencies:
81368180
tslib "^1.9.0"
81378181

8182+
rxjs@^6.5.2:
8183+
version "6.6.0"
8184+
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.0.tgz#af2901eedf02e3a83ffa7f886240ff9018bbec84"
8185+
integrity sha512-3HMA8z/Oz61DUHe+SdOiQyzIf4tOx5oQHmMir7IZEu6TMqCLHT4LRcmNaUS0NwOz8VLvmmBduMsoaUvMaIiqzg==
8186+
dependencies:
8187+
tslib "^1.9.0"
8188+
81388189
rxjs@^6.5.3:
81398190
version "6.5.3"
81408191
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.3.tgz#510e26317f4db91a7eb1de77d9dd9ba0a4899a3a"
@@ -8498,6 +8549,11 @@ sparkles@^1.0.0:
84988549
resolved "https://registry.yarnpkg.com/sparkles/-/sparkles-1.0.0.tgz#1acbbfb592436d10bbe8f785b7cc6f82815012c3"
84998550
integrity sha1-Gsu/tZJDbRC76PeFt8xvgoFQEsM=
85008551

8552+
spawn-command@^0.0.2-1:
8553+
version "0.0.2-1"
8554+
resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2-1.tgz#62f5e9466981c1b796dc5929937e11c9c6921bd0"
8555+
integrity sha1-YvXpRmmBwbeW3Fkpk34RycaSG9A=
8556+
85018557
spdlog@^0.11.1:
85028558
version "0.11.1"
85038559
resolved "https://registry.yarnpkg.com/spdlog/-/spdlog-0.11.1.tgz#29721b31018a5fe6a3ce2531f9d8d43e0bd6b825"
@@ -10157,7 +10213,7 @@ yargs@^13.2.4:
1015710213
y18n "^4.0.0"
1015810214
yargs-parser "^13.1.0"
1015910215

10160-
yargs@^13.3.2:
10216+
yargs@^13.3.0, yargs@^13.3.2:
1016110217
version "13.3.2"
1016210218
resolved "https://registry.yarnpkg.com/yargs/-/yargs-13.3.2.tgz#ad7ffefec1aa59565ac915f82dccb38a9c31a2dd"
1016310219
integrity sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==

0 commit comments

Comments
 (0)