-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(typescript): cache dependencies in docker (#4650)
- Loading branch information
Showing
3 changed files
with
82 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,22 +4,46 @@ FROM base AS builder | |
|
||
RUN mkdir /yarn-cache-template | ||
RUN yarn config set cache-folder /yarn-cache-template | ||
RUN yarn add \ | ||
@types/[email protected] \ | ||
@types/[email protected] \ | ||
@types/[email protected] \ | ||
@types/[email protected] \ | ||
@types/[email protected] \ | ||
form-data@4.0.0 \ | ||
jest-environment-jsdom@29.7.0 \ | ||
jest@29.7.0 \ | ||
js-base64@3.7.2 \ | ||
node-fetch@2.7.0 \ | ||
prettier@2.7.1 \ | ||
qs@6.11.2 \ | ||
ts-jest@29.1.1 \ | ||
typescript@4.6.4 \ | ||
url-join@4.0.1 | ||
|
||
RUN yarn add \ | ||
# jest | ||
jest@29.7.0 \ | ||
@types/[email protected] \ | ||
# node fetch | ||
node-fetch@2.7.0 \ | ||
@types/[email protected] \ | ||
# node | ||
@types/[email protected] \ | ||
# qs | ||
qs@6.11.2 \ | ||
@types/[email protected] \ | ||
# url join | ||
url-join@4.0.1 \ | ||
@types/[email protected] \ | ||
# readable stream | ||
readable-stream@4.5.2 \ | ||
@types/[email protected] \ | ||
# form data | ||
form-data@4.0.0 \ | ||
# formdata-node | ||
formdata-node@6.0.3 \ | ||
# jest env jsdom | ||
jest-environment-jsdom@29.7.0 \ | ||
# js base64 | ||
"[email protected]" \ | ||
# prettier | ||
prettier@2.7.1 \ | ||
# ts jest | ||
ts-jest@29.1.1 \ | ||
# typescript | ||
"[email protected]" \ | ||
# form data encoder | ||
form-data-encoder@4.0.2 \ | ||
# webpack | ||
ts-loader@9.3.1 \ | ||
webpack@5.94.0 \ | ||
# fetch mock jest | ||
fetch-mock-jest@1.5.1 | ||
|
||
FROM base AS runner | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,48 @@ RUN apk --no-cache add git zip \ | |
&& git config --global user.name "fern" \ | ||
&& git config --global user.email "[email protected]" | ||
|
||
RUN yarn init --yes | ||
|
||
RUN yarn add \ | ||
# jest | ||
[email protected] \ | ||
@types/[email protected] \ | ||
# node fetch | ||
[email protected] \ | ||
@types/[email protected] \ | ||
# node | ||
@types/[email protected] \ | ||
# qs | ||
[email protected] \ | ||
@types/[email protected] \ | ||
# url join | ||
[email protected] \ | ||
@types/[email protected] \ | ||
# readable stream | ||
[email protected] \ | ||
@types/[email protected] \ | ||
# form data | ||
[email protected] \ | ||
# formdata-node | ||
[email protected] \ | ||
# jest env jsdom | ||
[email protected] \ | ||
# js base64 | ||
"[email protected]" \ | ||
# prettier | ||
[email protected] \ | ||
# ts jest | ||
[email protected] \ | ||
# typescript | ||
"[email protected]" \ | ||
# form data encoder | ||
[email protected] \ | ||
# webpack | ||
[email protected] \ | ||
[email protected] \ | ||
# fetch mock jest | ||
[email protected] | ||
|
||
COPY generators/typescript/utils/core-utilities/fetcher/src/ /assets/fetcher | ||
COPY generators/typescript/utils/core-utilities/callback-queue/src/ /assets/callback-queue | ||
COPY generators/typescript/utils/core-utilities/auth/src/ /assets/auth | ||
|
30 changes: 0 additions & 30 deletions
30
generators/typescript/sdk/cli/node-docker/cache_heavy_dependencies.sh
This file was deleted.
Oops, something went wrong.