diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 940b523..b323ea0 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -6,11 +6,11 @@ ENV PATH "/home/node/.bun/bin:${PATH}" # set node user/group USER 1000:1000 -# install bun v1.0.23 -RUN curl -fsSL https://bun.sh/install | bash -s 'bun-v1.0.23' - # workdir WORKDIR /workspaces/chat +# install bun +RUN curl -fsSL https://bun.sh/install | bash + # ports EXPOSE 5173 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5122e49..8359f38 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,14 +1,8 @@ { - "name": "chat", - "build": { - "dockerfile": "Dockerfile" - }, + "build": { "dockerfile": "Dockerfile" }, + "postCreateCommand": "bun install --frozen-lockfile", + "waitFor": "postCreateCommand", "forwardPorts": [5173], - "customizations": { - "vscode": { - "extensions": ["biomejs.biome", "bradlc.vscode-tailwindcss"] - } - }, "containerEnv": { "GH_TOKEN": "${localEnv:GH_TOKEN}" } diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f8efef6..23fe932 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,8 +21,6 @@ jobs: uses: actions/checkout@v4 - name: Setup Bun uses: oven-sh/setup-bun@v1 - with: - bun-version: '1.0.23' - name: Install deps run: bun install --frozen-lockfile - name: Lint with Biome diff --git a/.vscode/settings.json b/.vscode/settings.json index 2421a11..3f3980b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,8 @@ { - "editor.quickSuggestions": { "strings": "on" }, "editor.rulers": [88], + + // tailwind + "editor.quickSuggestions": { "strings": "on" }, "files.associations": { "*.css": "tailwindcss" }, "tailwindCSS.classAttributes": ["class", "className", "classes", "classNames"], diff --git a/biome.json b/biome.json index 128aecd..dfc0d1a 100644 --- a/biome.json +++ b/biome.json @@ -1,7 +1,7 @@ { "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", "files": { - "ignore": ["dist", "node_modules"] + "ignore": [".devcontainer/**/*.json", ".vscode/**/*.json", "dist", "node_modules"] }, "formatter": { "enabled": true, diff --git a/index.html b/index.html index 4583e16..c3bf9f6 100644 --- a/index.html +++ b/index.html @@ -7,9 +7,8 @@ - - - + +
diff --git a/package.json b/package.json index 8234106..1294c7d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "chat", - "version": "0.1.4", + "version": "0.1.5", "type": "module", "scripts": { "start": "vite", diff --git a/vite.config.ts b/vite.config.ts index 51fa44e..a4863b6 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,8 +1,8 @@ import react from '@vitejs/plugin-react-swc' import { defineConfig, splitVendorChunkPlugin } from 'vite' -export default defineConfig(({ mode }) => ({ - base: mode === 'production' ? '/chat/' : '/', +export default defineConfig(() => ({ + base: '/', build: { chunkSizeWarningLimit: 5120, target: 'esnext',