Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# ===== client/.env =====
35 changes: 0 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,6 @@ jobs:
- run: npm ci
- run: npm run test:run

test-server:
name: Server Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: server/package-lock.json
- run: npm ci
- run: npm test
env:
NODE_ENV: test
CORS_ALLOWED_ORIGINS: http://localhost:5173

# ── 2. Lint ───────────────────────────────────────────────────────────────
lint-client:
name: Client Lint
Expand All @@ -58,22 +39,6 @@ jobs:
- run: npm ci
- run: npm run lint

lint-server:
name: Server Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: server/package-lock.json
- run: npm ci
- run: npm run lint

# ── 3. Format ─────────────────────────────────────────────────────────────
format-check:
name: Format Check
Expand Down
149 changes: 15 additions & 134 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,140 +4,21 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.*
!.env.example

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
node_modules
dist
.output

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp directory
.temp

# Sveltekit cache directory
.svelte-kit/

# vitepress build output
**/.vitepress/dist

# vitepress cache directory
**/.vitepress/cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Firebase cache directory
.firebase/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# pnpm
.pnpm-store

# yarn v3
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# Vite files
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.vite/
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
102 changes: 18 additions & 84 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,79 +1,38 @@
// NOTE: tasks.json is JSONC (comments allowed). This configuration is client-only.
{
"version": "2.0.0",
"tasks": [
// ── Development ────────────────────────────────────────────
{
"label": "💻 Client: Dev",
"label": "💻 Dev",
"type": "npm",
"script": "dev",
"path": "client",
"path": ".",
"presentation": {
"group": "dev-env",
"reveal": "always",
"panel": "dedicated",
"focus": false
}
},
{
"label": "🖥️ Server: Dev",
"type": "npm",
"script": "dev",
"path": "server",
"presentation": {
"group": "dev-env",
"reveal": "always",
"panel": "dedicated",
"focus": true
}
},
{
"label": "🚀 Dev: Start All",
"dependsOn": ["💻 Client: Dev", "🖥️ Server: Dev"],
"dependsOrder": "parallel",
"presentation": {
"reveal": "silent"
}
},

// ── Testing ────────────────────────────────────────────────
{
"label": "🧪 Client: Tests (watch)",
"label": "🧪 Tests (watch)",
"type": "npm",
"script": "test:watch",
"path": "client",
"path": ".",
"presentation": {
"group": "testing",
"panel": "dedicated",
"reveal": "always"
}
},
{
"label": "🧪 Client: Tests (run once)",
"label": "🧪 Tests (run once)",
"type": "npm",
"script": "test:run",
"path": "client",
"presentation": {
"group": "testing",
"panel": "dedicated",
"reveal": "always"
}
},
{
"label": "🧪 Server: Tests (watch)",
"type": "npm",
"script": "test:watch",
"path": "server",
"presentation": {
"group": "testing",
"panel": "dedicated",
"reveal": "always"
}
},
{
"label": "🧪 Server: Tests (run once)",
"type": "npm",
"script": "test",
"path": "server",
"path": ".",
"presentation": {
"group": "testing",
"panel": "dedicated",
Expand All @@ -83,34 +42,10 @@

// ── Linting ────────────────────────────────────────────────
{
"label": "🔍 Client: Lint (check)",
"type": "npm",
"script": "lint",
"path": "client",
"presentation": {
"group": "quality",
"panel": "dedicated",
"reveal": "always"
},
"problemMatcher": ["$eslint-stylish"]
},
{
"label": "🔍 Server: Lint (check)",
"label": "🔍 Lint (check)",
"type": "npm",
"script": "lint",
"path": "server",
"presentation": {
"group": "quality",
"panel": "dedicated",
"reveal": "always"
},
"problemMatcher": ["$eslint-stylish"]
},
{
"label": "🔧 Client: Lint (fix)",
"type": "npm",
"script": "lint:fix",
"path": "client",
"path": ".",
"presentation": {
"group": "quality",
"panel": "dedicated",
Expand All @@ -119,10 +54,10 @@
"problemMatcher": ["$eslint-stylish"]
},
{
"label": "🔧 Server: Lint (fix)",
"label": "🔧 Lint (fix)",
"type": "npm",
"script": "lint:fix",
"path": "server",
"path": ".",
"presentation": {
"group": "quality",
"panel": "dedicated",
Expand All @@ -131,7 +66,7 @@
"problemMatcher": ["$eslint-stylish"]
},

// ── Formatting ─────────────────────────────────────────────
// ── Formatting ──────────────────────────────────────────────
{
"label": "🎨 Format: Check",
"type": "npm",
Expand All @@ -155,14 +90,12 @@
}
},

// ── CI Verify (mirrors all 6 CI jobs locally) ──────────────
// ── CI Verify (mirrors local client tasks) ────────────────
{
"label": "✅ CI: Verify All",
"dependsOn": [
"🧪 Client: Tests (run once)",
"🧪 Server: Tests (run once)",
"🔍 Client: Lint (check)",
"🔍 Server: Lint (check)",
"🎨 Format: Check",
"🏗️ Client: Build"
],
Expand All @@ -172,24 +105,25 @@
}
},

// ── Build ──────────────────────────────────────────────────
// ── Build ───────────────────────────────────────────────────
{
"label": "🏗️ Client: Build",
"label": "🏗️ Build",
"type": "npm",
"script": "build",
"path": "client",
"path": ".",
"presentation": {
"group": "build",
"panel": "dedicated",
"reveal": "always"
}
},

// ── Setup ──────────────────────────────────────────────────
// ── Setup ───────────────────────────────────────────────────
{
"label": "🛠️ Setup: Install All",
"type": "npm",
"script": "install:all",
"path": ".",
"presentation": {
"reveal": "always",
"panel": "shared"
Expand Down
Loading
Loading