-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: proxy service * chore: docker publish github action * Create spotty-bikes-dress.md * chore: release Signed-off-by: zaida04 <zaida04@users.noreply.github.com> Signed-off-by: zaida04 <zaida04@users.noreply.github.com> Co-authored-by: zaida04 <zaida04@users.noreply.github.com>
- Loading branch information
Showing
17 changed files
with
324 additions
and
15 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
*.env |
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
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ coverage/ | |
.npmrc | ||
*.tsbuildinfo | ||
*.log | ||
*.env | ||
|
||
.vscode/ | ||
.idea/ | ||
|
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
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
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
packages: | ||
- "packages/**" | ||
- "services/**" |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM node:16-alpine | ||
LABEL name "guildedjs rest proxy builder" | ||
WORKDIR /opt/build | ||
|
||
RUN apk add --update \ | ||
&& apk add --no-cache --virtual .build-deps curl \ | ||
&& curl -L https://unpkg.com/@pnpm/self-installer | node | ||
|
||
COPY tsconfig.json package.json pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
COPY ./packages/rest/. ./packages/rest/ | ||
COPY ./packages/guilded-api-typings/. ./packages/guilded-api-typings/. | ||
|
||
COPY ./services/proxy/package.json ./services/proxy/tsconfig.json ./services/proxy/ | ||
RUN pnpm install -r --frozen-lockfile | ||
|
||
COPY ./services/proxy/src/. ./services/proxy/src/ | ||
RUN pnpm run build && rm -rf node_modules/ && pnpm install --prod --ignore-scripts | ||
|
||
FROM node:16-alpine | ||
LABEL name "guildedjs rest proxy" | ||
WORKDIR /usr/app | ||
|
||
COPY --from=0 ./opt/build ./ | ||
|
||
WORKDIR /usr/app/services/proxy | ||
CMD ["node", "dist/index.js"] |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"watch": ["src"], | ||
"ext": "ts,json", | ||
"exec": "npx tsc && node dist/index.js", | ||
"legacyWatch": true | ||
} |
Oops, something went wrong.