Skip to content

Commit a70459d

Browse files
authored
Merge pull request #42 from lukix/fix-dependencies-installation-in-docker-containers
Fixes to setting up a project for development
2 parents 1ea0a1a + 3807b38 commit a70459d

File tree

4 files changed

+102
-3
lines changed

4 files changed

+102
-3
lines changed

client/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM node:14.16.0
22
WORKDIR /app
33
COPY package.json /app/package.json
4+
COPY yarn.lock /app/yarn.lock
45
RUN yarn

server/Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM node:14.16.0
22
WORKDIR /app
33
COPY package.json /app/package.json
4+
COPY yarn.lock /app/yarn.lock
45
RUN yarn

server/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"scripts": {
77
"start": "node out/index.js",
8-
"dev": "concurrently \"tsc --watch\" \"nodemon --watch out out/index.js\"",
8+
"dev": "concurrently \"tsc --watch\" \"wait-on out/index.js && nodemon --watch out out/index.js\"",
99
"build": "tsc",
1010
"test": "jest",
1111
"lint": "eslint \"./src/*\"",
@@ -40,7 +40,8 @@
4040
"prettier": "^2.2.1",
4141
"pretty-quick": "^3.1.0",
4242
"ts-jest": "^26.5.4",
43-
"typescript": "^4.2.3"
43+
"typescript": "^4.2.3",
44+
"wait-on": "^7.2.0"
4445
},
4546
"engines": {
4647
"node": "14.16.x"

server/yarn.lock

+97-1
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,18 @@
478478
minimatch "^3.0.4"
479479
strip-json-comments "^3.1.1"
480480

481+
"@hapi/hoek@^9.0.0", "@hapi/hoek@^9.3.0":
482+
version "9.3.0"
483+
resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb"
484+
integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ==
485+
486+
"@hapi/topo@^5.1.0":
487+
version "5.1.0"
488+
resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012"
489+
integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg==
490+
dependencies:
491+
"@hapi/hoek" "^9.0.0"
492+
481493
"@istanbuljs/load-nyc-config@^1.0.0":
482494
version "1.0.0"
483495
resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.0.0.tgz#10602de5570baea82f8afbfa2630b24e7a8cfe5b"
@@ -700,6 +712,23 @@
700712
"@nodelib/fs.scandir" "2.1.4"
701713
fastq "^1.6.0"
702714

715+
"@sideway/address@^4.1.5":
716+
version "4.1.5"
717+
resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.5.tgz#4bc149a0076623ced99ca8208ba780d65a99b9d5"
718+
integrity sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q==
719+
dependencies:
720+
"@hapi/hoek" "^9.0.0"
721+
722+
"@sideway/formula@^3.0.1":
723+
version "3.0.1"
724+
resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.1.tgz#80fcbcbaf7ce031e0ef2dd29b1bfc7c3f583611f"
725+
integrity sha512-/poHZJJVjx3L+zVD6g9KgHfYnb443oi7wLu/XKojDviHy6HOEOA6z1Trk5aR1dGcmPenJEgb2sK2I80LeS3MIg==
726+
727+
"@sideway/pinpoint@^2.0.0":
728+
version "2.0.0"
729+
resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df"
730+
integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==
731+
703732
"@sindresorhus/is@^0.14.0":
704733
version "0.14.0"
705734
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
@@ -1254,6 +1283,15 @@ aws4@^1.8.0:
12541283
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.9.0.tgz#24390e6ad61386b0a747265754d2a17219de862c"
12551284
integrity sha512-Uvq6hVe90D0B2WEnUqtdgY1bATGz3mw33nH9Y+dmA+w5DHvUmBgkr5rM/KCHpCsiFNRUfokW/szpPPgMK2hm4A==
12561285

1286+
axios@^1.6.1:
1287+
version "1.7.2"
1288+
resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.2.tgz#b625db8a7051fbea61c35a3cbb3a1daa7b9c7621"
1289+
integrity sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw==
1290+
dependencies:
1291+
follow-redirects "^1.15.6"
1292+
form-data "^4.0.0"
1293+
proxy-from-env "^1.1.0"
1294+
12571295
babel-jest@^26.6.3:
12581296
version "26.6.3"
12591297
resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.6.3.tgz#d87d25cb0037577a0c89f82e5755c5d293c01056"
@@ -1673,7 +1711,7 @@ color-name@~1.1.4:
16731711
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
16741712
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
16751713

1676-
combined-stream@^1.0.6, combined-stream@~1.0.6:
1714+
combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6:
16771715
version "1.0.8"
16781716
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
16791717
integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
@@ -2531,6 +2569,11 @@ flatted@^3.1.0:
25312569
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.1.tgz#c4b489e80096d9df1dfc97c79871aea7c617c469"
25322570
integrity sha512-zAoAQiudy+r5SvnSw3KJy5os/oRJYHzrzja/tBDqrZtNhUw8bt6y8OBzMWcjWr+8liV8Eb6yOhw8WZ7VFZ5ZzA==
25332571

2572+
follow-redirects@^1.15.6:
2573+
version "1.15.6"
2574+
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b"
2575+
integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==
2576+
25342577
for-in@^1.0.2:
25352578
version "1.0.2"
25362579
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
@@ -2541,6 +2584,15 @@ forever-agent@~0.6.1:
25412584
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
25422585
integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=
25432586

2587+
form-data@^4.0.0:
2588+
version "4.0.0"
2589+
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
2590+
integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
2591+
dependencies:
2592+
asynckit "^0.4.0"
2593+
combined-stream "^1.0.8"
2594+
mime-types "^2.1.12"
2595+
25442596
form-data@~2.3.2:
25452597
version "2.3.3"
25462598
resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6"
@@ -3653,6 +3705,17 @@ jest@^26.6.3:
36533705
import-local "^3.0.2"
36543706
jest-cli "^26.6.3"
36553707

3708+
joi@^17.11.0:
3709+
version "17.13.1"
3710+
resolved "https://registry.yarnpkg.com/joi/-/joi-17.13.1.tgz#9c7b53dc3b44dd9ae200255cc3b398874918a6ca"
3711+
integrity sha512-vaBlIKCyo4FCUtCm7Eu4QZd/q02bWcxfUO6YSXAZOWF6gzcLBeba8kwotUdYJjDLW8Cz8RywsSOqiNJZW0mNvg==
3712+
dependencies:
3713+
"@hapi/hoek" "^9.3.0"
3714+
"@hapi/topo" "^5.1.0"
3715+
"@sideway/address" "^4.1.5"
3716+
"@sideway/formula" "^3.0.1"
3717+
"@sideway/pinpoint" "^2.0.0"
3718+
36563719
js-tokens@^4.0.0:
36573720
version "4.0.0"
36583721
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
@@ -4105,6 +4168,11 @@ minimist@^1.2.5:
41054168
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
41064169
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
41074170

4171+
minimist@^1.2.8:
4172+
version "1.2.8"
4173+
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
4174+
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
4175+
41084176
minipass@^3.0.0:
41094177
version "3.1.3"
41104178
resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.1.3.tgz#7d42ff1f39635482e15f9cdb53184deebd5815fd"
@@ -4730,6 +4798,11 @@ proxy-addr@~2.0.5:
47304798
forwarded "~0.1.2"
47314799
ipaddr.js "1.9.0"
47324800

4801+
proxy-from-env@^1.1.0:
4802+
version "1.1.0"
4803+
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2"
4804+
integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==
4805+
47334806
psl@^1.1.28:
47344807
version "1.6.0"
47354808
resolved "https://registry.yarnpkg.com/psl/-/psl-1.6.0.tgz#60557582ee23b6c43719d9890fb4170ecd91e110"
@@ -5042,6 +5115,13 @@ rxjs@^6.5.2:
50425115
dependencies:
50435116
tslib "^1.9.0"
50445117

5118+
rxjs@^7.8.1:
5119+
version "7.8.1"
5120+
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543"
5121+
integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==
5122+
dependencies:
5123+
tslib "^2.1.0"
5124+
50455125
[email protected], safe-buffer@~5.1.0, safe-buffer@~5.1.1:
50465126
version "5.1.2"
50475127
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
@@ -5722,6 +5802,11 @@ tslib@^1.8.1, tslib@^1.9.0:
57225802
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a"
57235803
integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==
57245804

5805+
tslib@^2.1.0:
5806+
version "2.6.2"
5807+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
5808+
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
5809+
57255810
tsutils@^3.17.1:
57265811
version "3.17.1"
57275812
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759"
@@ -5950,6 +6035,17 @@ w3c-xmlserializer@^2.0.0:
59506035
dependencies:
59516036
xml-name-validator "^3.0.0"
59526037

6038+
wait-on@^7.2.0:
6039+
version "7.2.0"
6040+
resolved "https://registry.yarnpkg.com/wait-on/-/wait-on-7.2.0.tgz#d76b20ed3fc1e2bebc051fae5c1ff93be7892928"
6041+
integrity sha512-wCQcHkRazgjG5XoAq9jbTMLpNIjoSlZslrJ2+N9MxDsGEv1HnFoVjOCexL0ESva7Y9cu350j+DWADdk54s4AFQ==
6042+
dependencies:
6043+
axios "^1.6.1"
6044+
joi "^17.11.0"
6045+
lodash "^4.17.21"
6046+
minimist "^1.2.8"
6047+
rxjs "^7.8.1"
6048+
59536049
walker@^1.0.7, walker@~1.0.5:
59546050
version "1.0.7"
59556051
resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb"

0 commit comments

Comments
 (0)