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 507b27af..bb542071 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -1,10 +1,10 @@ /// /// +import react from "@vitejs/plugin-react"; +import path from "path"; import { defineConfig } from "vite"; import { viteStaticCopy } from "vite-plugin-static-copy"; -import react from "@vitejs/plugin-react"; import tsconfigPaths from "vite-tsconfig-paths"; -import path from "path"; export default defineConfig({ plugins: [react(), tsconfigPaths(), viteStaticCopy({ @@ -17,6 +17,7 @@ export default defineConfig({ }), ], server: { + host: true, port: 3000, }, define: {