-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into #527-account-delete
- Loading branch information
Showing
144 changed files
with
4,587 additions
and
2,126 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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
/node_modules | ||
/dist | ||
.env | ||
.env.test | ||
.env.production | ||
.env.development | ||
.DS_store | ||
*.code-workspace | ||
*.swp | ||
/logs/*.log | ||
.vscode | ||
|
||
# AdminJS 관련 디렉토리 | ||
.adminjs |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules/ | ||
dist/ | ||
package.json | ||
tsconfig.json | ||
.prettierrc.json | ||
.eslintrc.cjs | ||
nodemon.json |
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,80 @@ | ||
module.exports = { | ||
env: { | ||
es2021: true, | ||
node: true, | ||
}, | ||
extends: [ | ||
"plugin:@typescript-eslint/recommended", | ||
"airbnb-base", | ||
"airbnb-typescript/base", | ||
"plugin:mocha/recommended", | ||
"prettier", | ||
], | ||
overrides: [ | ||
{ | ||
env: { | ||
node: true, | ||
mocha: true, | ||
}, | ||
files: [".eslintrc.{js,cjs}"], | ||
parserOptions: { | ||
sourceType: "script", | ||
}, | ||
}, | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
project: "./tsconfig.json", | ||
}, | ||
plugins: ["import", "@typescript-eslint", "mocha"], | ||
rules: { | ||
"import/extensions": [ | ||
"error", | ||
"ignorePackages", | ||
{ | ||
js: "never", // temporary fix for #159 | ||
ts: "never", | ||
}, | ||
], | ||
"import/named": "error", | ||
"import/no-extraneous-dependencies": [ | ||
"error", | ||
{ | ||
packageDir: "./", | ||
}, | ||
], | ||
"mocha/no-mocha-arrows": "off", | ||
"no-console": "error", | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
patterns: [ | ||
{ | ||
group: ["../*"], | ||
message: | ||
"Usage of relative parent imports is not allowed. Use path alias instead.", | ||
}, | ||
], | ||
}, | ||
], | ||
radix: ["error", "as-needed"], | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"error", | ||
{ | ||
prefer: "type-imports", | ||
}, | ||
], | ||
}, | ||
settings: { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [".ts"], | ||
}, | ||
"import/resolver": { | ||
typescript: { | ||
project: ["./tsconfig.json"], | ||
}, | ||
}, | ||
}, | ||
}; |
This file was deleted.
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,4 +1,7 @@ | ||
/node_modules | ||
/dist | ||
/dump | ||
.env | ||
.env.test | ||
.env.production | ||
.env.development | ||
|
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,5 @@ | ||
node_modules | ||
build | ||
node_modules/ | ||
dist/ | ||
package.json | ||
tsconfig.json | ||
nodemon.json |
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 |
---|---|---|
@@ -1,21 +1,45 @@ | ||
FROM node:18-alpine | ||
# | ||
# First stage: build the app | ||
# | ||
FROM node:18-alpine AS builder | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# Install curl(for taxi-watchtower) and pnpm | ||
RUN apk update && apk add curl && npm install --global [email protected] | ||
# Install pnpm | ||
RUN npm install --global [email protected] | ||
|
||
# pnpm fetch does require only lockfile | ||
COPY pnpm-lock.yaml . | ||
RUN pnpm fetch | ||
|
||
COPY . . | ||
RUN pnpm install --offline | ||
RUN pnpm build | ||
|
||
# | ||
# Second stage: run the app | ||
# | ||
FROM node:18-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# Install pnpm | ||
RUN npm install --global [email protected] | ||
|
||
# Install curl for taxi-watchtower | ||
RUN apk update && apk add curl | ||
|
||
# Note: devDependencies are not fetched | ||
# devDependencies are not fetched | ||
COPY pnpm-lock.yaml . | ||
RUN pnpm fetch --prod | ||
|
||
# Copy repository and install dependencies | ||
ADD . ./ | ||
COPY package.json . | ||
RUN pnpm install --offline --prod | ||
|
||
# Copy the built app from the previous stage | ||
COPY --from=builder /usr/src/app/dist ./dist | ||
|
||
# Run container | ||
EXPOSE 80 | ||
ENV PORT 80 | ||
CMD ["pnpm", "run", "serve"] | ||
CMD ["pnpm", "serve"] |
This file was deleted.
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,7 +1,10 @@ | ||
{ | ||
"ignore": ["node_modules/*"], | ||
"env": { | ||
"TZ": "Asia/Seoul", | ||
"NODE_ENV": "development" | ||
} | ||
} | ||
"ignore": ["node_modules"], | ||
"watch": ["src", ".env.development"], | ||
"ext": "js,json,ts", | ||
"exec": "ts-node --require tsconfig-paths/register src", | ||
"env": { | ||
"TZ": "Asia/Seoul", | ||
"NODE_ENV": "development" | ||
} | ||
} |
Oops, something went wrong.