This repository has been archived by the owner on Nov 12, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from UnownHash/simplify-setup
simplify setup
- Loading branch information
Showing
24 changed files
with
8,241 additions
and
3,665 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,63 @@ | ||
{ | ||
"root": true, | ||
"ignorePatterns": [ | ||
"**/*" | ||
], | ||
"plugins": [ | ||
"@nrwl/nx" | ||
], | ||
"extends": [ | ||
"plugin:prettier/recommended" | ||
], | ||
"rules": { | ||
"react-hooks/exhaustive-deps": "off", | ||
"react/jsx-no-useless-fragment": "off" | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.ts", | ||
"*.tsx", | ||
"*.js", | ||
"*.jsx" | ||
], | ||
"rules": { | ||
"@nrwl/nx/enforce-module-boundaries": [ | ||
"error", | ||
{ | ||
"enforceBuildableLibDependency": true, | ||
"allow": [], | ||
"depConstraints": [ | ||
{ | ||
"sourceTag": "*", | ||
"onlyDependOnLibsWithTags": [ | ||
"*" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*.ts", | ||
"*.tsx" | ||
], | ||
"extends": [ | ||
"plugin:@nrwl/nx/typescript" | ||
], | ||
"rules": {} | ||
}, | ||
{ | ||
"files": [ | ||
"*.js", | ||
"*.jsx" | ||
], | ||
"extends": [ | ||
"plugin:@nrwl/nx/javascript" | ||
], | ||
"rules": {} | ||
} | ||
] | ||
} |
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,3 +7,6 @@ ecosystem.config.js | |
# Builds | ||
dist | ||
/server/server | ||
|
||
.nx/installation | ||
.nx/cache |
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,15 +1,18 @@ | ||
FROM node:18-alpine as client | ||
WORKDIR /app | ||
COPY ./package.json ./package.json | ||
COPY ./yarn.lock ./yarn.lock | ||
COPY ./.eslintrc.json ./.eslintrc.json | ||
COPY ./client ./client | ||
RUN cd client && yarn install | ||
RUN cd client && yarn build | ||
RUN yarn install | ||
RUN yarn build:client | ||
|
||
FROM golang:1.20.2-alpine3.17 as server | ||
WORKDIR /app | ||
COPY . . | ||
RUN cd server && go build -o Admin | ||
|
||
FROM golang:1.20.2-alpine3.17 | ||
COPY --from=client /app/dist ./dist | ||
COPY --from=client /app/dist/client ./dist/client | ||
COPY --from=server /app/server/Admin Admin | ||
CMD ["./Admin"] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.