chore: bootstrap monorepo with shared package

This commit is contained in:
2026-05-20 20:31:02 +02:00
parent 011291cf39
commit 4d0a5aee66
6 changed files with 438 additions and 0 deletions

22
package.json Normal file
View File

@@ -0,0 +1,22 @@
{
"name": "flashcard",
"private": true,
"version": "0.1.0",
"type": "module",
"workspaces": ["packages/*"],
"scripts": {
"dev": "concurrently -k -n be,fe -c blue,green \"npm:dev:be\" \"npm:dev:fe\"",
"dev:be": "npm -w @flashcard/backend run dev",
"dev:fe": "npm -w @flashcard/frontend run dev",
"build": "npm -w @flashcard/shared run build && npm -w @flashcard/backend run build && npm -w @flashcard/frontend run build",
"start": "node packages/backend/dist/index.js",
"test": "npm -w @flashcard/backend run test && npm -w @flashcard/frontend run test",
"db:migrate": "npm -w @flashcard/backend run db:migrate",
"db:seed": "npm -w @flashcard/backend run db:seed",
"typecheck": "npm -ws run typecheck --if-present"
},
"devDependencies": {
"concurrently": "^9.0.0",
"typescript": "^5.5.0"
}
}