diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..89609e8b --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,13 @@ +FROM mcr.microsoft.com/devcontainers/typescript-node:18 + +USER node + +WORKDIR /app/ + +COPY --chown=node:node package*.json ./ + +RUN npm install + +COPY --chown=node:node . . + +EXPOSE 3000 diff --git a/.devcontainer/compose.yml b/.devcontainer/compose.yml new file mode 100644 index 00000000..464741fc --- /dev/null +++ b/.devcontainer/compose.yml @@ -0,0 +1,12 @@ + +services: + app: + build: + context: .. + dockerfile: .devcontainer/Dockerfile + volumes: + - ..:/app:cached + command: sleep infinity + +volumes: + node_modules: diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..64542965 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,23 @@ + +{ + "name": "systemcore-blocks-interface", + "dockerComposeFile": "compose.yml", + "service": "app", + "remoteUser": "node", + "workspaceFolder": "/app/", + "customizations": { + "vscode": { + "extensions": [ + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "bradlc.vscode-tailwindcss", + "ms-python.python" + ] + } + }, + "forwardPorts": [ + 3000 + ], + "postCreateCommand": "npm install", + "postAttachCommand": "npm run start" +} diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..e70b43eb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +.git/ +node_modules/ +*.log diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..6313b56c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..8d85e46d --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,21 @@ + + +## Description + + +## Motivation and Context + + + +## How Has This Been Tested? + + + + +## Screenshots (if appropriate): + +## Types of changes + +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would change API specifications or require data migrations) diff --git a/vite.config.mts b/vite.config.mts index 9a285b3a..8876d0b3 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -1,5 +1,6 @@ /// /// + import { defineConfig } from "vitest/config"; import { viteStaticCopy } from "vite-plugin-static-copy"; import { playwright } from '@vitest/browser-playwright' @@ -24,6 +25,7 @@ export default defineConfig({ }), ], server: { + host: true, port: 3000, }, define: {