feat(m1): project foundation setup - Next.js 15, Tailwind, tooling, CI

- Configure Next.js 15 (App Router, Node.js runtime, serverExternalPackages for better-sqlite3/bcrypt)

- Add Tailwind CSS, PostCSS, tsconfig with @/* alias

- Create app structure (layout, page, globals.css)

- Create directory structure (lib, repositories, services, components, tests)

- Configure Vitest (alias, coverage), Playwright

- Add dependencies: next, react, better-sqlite3, bcrypt, react-markdown, etc.

- Add .env.example, CI workflow, next-env.d.ts

- Remove boilerplate src/example files
This commit is contained in:
2026-06-24 23:47:27 +02:00
parent 80e195b3dc
commit 9253164fd3
18 changed files with 12229 additions and 130 deletions

View File

@ -1,36 +1,58 @@
{
"name": "opencode-spec-driven-boilerplate",
"name": "opengroupware",
"version": "0.1.0",
"description": "Spec-driven development boilerplate for opencode",
"description": "Simple project-based groupware built with Next.js 15, TypeScript, and SQLite",
"type": "module",
"scripts": {
"prepare": "husky",
"build": "tsc",
"dev": "tsc --watch",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint .",
"format": "npx prettier --write .",
"format": "prettier --write .",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"test:e2e": "playwright test",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui"
"migrate": "tsx lib/db/run-migrations.ts"
},
"keywords": [
"spec-driven-development",
"opencode",
"template"
"groupware",
"nextjs",
"sqlite"
],
"author": "",
"author": "Ken Yasue",
"license": "MIT",
"dependencies": {
"bcrypt": "^5.1.1",
"better-sqlite3": "^11.3.0",
"next": "^15.1.0",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-markdown": "^9.0.1",
"rehype-sanitize": "^6.0.0",
"remark-gfm": "^4.0.0"
},
"devDependencies": {
"@playwright/test": "^1.49.0",
"@types/bcrypt": "^5.0.2",
"@types/better-sqlite3": "^7.6.11",
"@types/node": "^20.11.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
"@vitest/coverage-v8": "^2.0.0",
"@vitest/ui": "^2.0.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.0.0",
"eslint-config-next": "^15.1.0",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.0.0",
"lint-staged": "^15.2.0",
"postcss": "^8.4.49",
"prettier": "^3.2.0",
"tailwindcss": "^3.4.15",
"tsx": "^4.19.2",
"typescript": "~5.3.0",
"typescript-eslint": "^8.0.0",
"vitest": "^2.0.0"