-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
782 changed files
with
23,815 additions
and
185,215 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,3 @@ | ||
{ | ||
"extends": ["@commitlint/config-conventional"] | ||
} |
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 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,52 @@ | ||
name: "React Front-End CI checks" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
push: | ||
branches: | ||
- stable | ||
- unstable | ||
|
||
paths: | ||
- 'client/**' | ||
- '.github/workflows/*client.yml' | ||
|
||
env: | ||
HUSKY: 0 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Disable prepare script (husky) | ||
run: npm pkg delete scripts.prepare | ||
|
||
- name: Install dependencies | ||
run: npm ci --prefix=client --no-audit | ||
|
||
- name: Check format | ||
run: npm run format --prefix=client | ||
|
||
- name: Lint | ||
run: npm run lint --prefix=client | ||
|
||
- name: Build | ||
run: npm run build --prefix=client |
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,57 @@ | ||
name: "Nest Back-End CI checks" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
push: | ||
branches: | ||
- stable | ||
- unstable | ||
|
||
paths: | ||
- '*' | ||
- 'src/**' | ||
- 'test/**' | ||
- '.github/workflows/check.yml' | ||
|
||
env: | ||
HUSKY: 0 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Disable prepare script (husky) | ||
run: npm pkg delete scripts.prepare | ||
|
||
- name: Install dependencies | ||
run: npm ci --no-audit | ||
|
||
- name: Check format | ||
run: npm run format | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Test | ||
run: npm run test |
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,6 +1,6 @@ | ||
# compiled output | ||
/dist | ||
/public/build | ||
/client/build | ||
/node_modules | ||
|
||
# Logs | ||
|
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 @@ | ||
npx --no-install commitlint --edit $1 |
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 @@ | ||
npx lint-staged |
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,3 +1,5 @@ | ||
/.github | ||
/node_modules | ||
/dist | ||
/charts | ||
/client |
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,5 @@ | ||
{ | ||
"tabWidth": 2, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} | ||
"trailingComma": "none" | ||
} |
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,17 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"sourceMaps": true, | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"decorators": true, | ||
"dynamicImport": true | ||
}, | ||
"transform": { | ||
"legacyDecorator": true, | ||
"decoratorMetadata": true | ||
}, | ||
"baseUrl": "./" | ||
}, | ||
"minify": false | ||
} |
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,27 +1,59 @@ | ||
FROM node:14 | ||
################### | ||
# BUILD FOR LOCAL DEVELOPMENT | ||
################### | ||
|
||
FROM node:18-alpine AS build | ||
|
||
WORKDIR /usr/src/app | ||
|
||
# Copy and build NestJS server project | ||
COPY --chown=node:node package*.json ./ | ||
COPY --chown=node:node tsconfig.build.json ./ | ||
COPY --chown=node:node tsconfig.json ./ | ||
COPY --chown=node:node nest-cli.fast.json ./ | ||
COPY --chown=node:node .env ./ | ||
COPY --chown=node:node config ./config | ||
COPY --chown=node:node keycloak ./keycloak | ||
COPY --chown=node:node src ./src | ||
|
||
ENV NPM_CONFIG_LOGLEVEL=error | ||
RUN npm ci --no-audit | ||
RUN npm run build:fast | ||
RUN npm prune --production | ||
|
||
WORKDIR /var/www/ | ||
# Copy and build client project | ||
COPY --chown=node:node client/package*.json ./client/ | ||
COPY --chown=node:node client/src ./client/src | ||
COPY --chown=node:node client/public ./client/public | ||
COPY --chown=node:node client/typings ./client/typings | ||
COPY --chown=node:node client/vcs ./client/vcs | ||
COPY --chown=node:node client/tsconfig.json ./client/tsconfig.json | ||
COPY --chown=node:node client/vite.config.ts ./client/vite.config.ts | ||
COPY --chown=node:node client/index.html ./client/index.html | ||
|
||
COPY package*.json ./ | ||
ENV CYPRESS_INSTALL_BINARY=0 | ||
RUN npm ci --prefix=client --no-audit | ||
RUN npm run build --prefix=client | ||
|
||
RUN npm ci -q | ||
USER node | ||
|
||
COPY config ./config | ||
COPY tsconfig.build.json ./ | ||
COPY tsconfig.json ./ | ||
COPY nest-cli.json ./ | ||
COPY .env ./ | ||
COPY src ./src | ||
################### | ||
# PRODUCTION | ||
################### | ||
|
||
RUN npm run build | ||
RUN npm prune --production | ||
FROM node:18-alpine AS production | ||
|
||
RUN chown -R node:node /var/www/* | ||
WORKDIR /usr/src/app | ||
|
||
USER node | ||
COPY --chown=node:node .env ./ | ||
COPY --chown=node:node config ./config | ||
COPY --chown=node:node keycloak ./keycloak | ||
|
||
ENV NODE_ENV=production | ||
COPY --chown=node:node --from=build /usr/src/app/node_modules ./node_modules | ||
COPY --chown=node:node --from=build /usr/src/app/package*.json ./ | ||
COPY --chown=node:node --from=build /usr/src/app/dist ./dist | ||
|
||
EXPOSE 3000 | ||
COPY --chown=node:node --from=build /usr/src/app/client/dist ./client/dist | ||
COPY --chown=node:node --from=build /usr/src/app/client/vcs ./client/vcs | ||
|
||
CMD ["npm", "run", "start:prod"] |
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
Oops, something went wrong.