diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..1bd96a9d --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,46 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "Node.js & TypeScript", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm", + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, + "ghcr.io/devcontainers/features/common-utils:2": { + "installOhMyZsh": true, + "installOhMyZshConfig": true + } + }, + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "yarn install", + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "extensions": [ + "johnpapa.Angular2", + "ms-vscode-remote.remote-containers", + "mikestead.dotenv", + "usernamehw.errorlens", + "ms-vscode-remote.vscode-remote-extensionpack", + "ms-vscode.remote-explorer", + "wayou.vscode-todo-highlight", + "ms-vscode-remote.remote-wsl", + "Angular.ng-template", + "streetsidesoftware.code-spell-checker", + "oouo-diogo-perdigao.docthis", + "nrwl.angular-console", + "esbenp.prettier-vscode" + ] + } + } + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 23bb127e..cfc38023 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,16 +9,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '16.17.0' + node-version: '20.18.1' - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: npm-cache with: path: '**/node_modules' @@ -82,7 +82,7 @@ jobs: shopt -u nullglob - name: Upload Build Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ github.sha }} path: dist/ diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a00db418..fdf2a637 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,16 +10,16 @@ jobs: steps: - name: Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '16.17.0' + node-version: '20.18.1' - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: npm-cache with: path: '**/node_modules' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 56764dab..b8748862 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,7 +49,7 @@ jobs: path: artifacts - name: Docker login - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} @@ -57,7 +57,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ${{ env.REGISTRY }}/Supreme-Gaming/${{ matrix.image }} flavor: | @@ -68,7 +68,7 @@ jobs: type=sha - name: Build and push Docker images - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v6 with: context: ./artifacts/apps/${{ matrix.image }} push: true diff --git a/.prettierrc b/.prettierrc index 75df93d8..67efa0c9 100644 --- a/.prettierrc +++ b/.prettierrc @@ -3,7 +3,6 @@ "semi": true, "singleQuote": true, "arrowParens": "always", - "endOfLine": "crlf", "overrides": [ { "files": "*.html", @@ -14,3 +13,4 @@ } ] } + diff --git a/apps/data-api-nest/src/Dockerfile b/apps/data-api-nest/src/Dockerfile index 15fea21e..832d5cfd 100644 --- a/apps/data-api-nest/src/Dockerfile +++ b/apps/data-api-nest/src/Dockerfile @@ -1,11 +1,11 @@ -FROM node:16.17.0 as builder +FROM node:20.18.1 as builder ENV NODE_ENV=production WORKDIR /app COPY package*.json ./ RUN npm i --omit=dev COPY . ./ -FROM node:16.17.0-alpine +FROM node:20.18.1-alpine WORKDIR /app COPY --from=builder /app . CMD ["node", "main.js"] \ No newline at end of file diff --git a/apps/supreme-discord-community-bot-node/src/Dockerfile b/apps/supreme-discord-community-bot-node/src/Dockerfile index 15fea21e..832d5cfd 100644 --- a/apps/supreme-discord-community-bot-node/src/Dockerfile +++ b/apps/supreme-discord-community-bot-node/src/Dockerfile @@ -1,11 +1,11 @@ -FROM node:16.17.0 as builder +FROM node:20.18.1 as builder ENV NODE_ENV=production WORKDIR /app COPY package*.json ./ RUN npm i --omit=dev COPY . ./ -FROM node:16.17.0-alpine +FROM node:20.18.1-alpine WORKDIR /app COPY --from=builder /app . CMD ["node", "main.js"] \ No newline at end of file diff --git a/apps/supreme-discord-ticket-bot-node/src/Dockerfile b/apps/supreme-discord-ticket-bot-node/src/Dockerfile index 15fea21e..832d5cfd 100644 --- a/apps/supreme-discord-ticket-bot-node/src/Dockerfile +++ b/apps/supreme-discord-ticket-bot-node/src/Dockerfile @@ -1,11 +1,11 @@ -FROM node:16.17.0 as builder +FROM node:20.18.1 as builder ENV NODE_ENV=production WORKDIR /app COPY package*.json ./ RUN npm i --omit=dev COPY . ./ -FROM node:16.17.0-alpine +FROM node:20.18.1-alpine WORKDIR /app COPY --from=builder /app . CMD ["node", "main.js"] \ No newline at end of file