chore: bootstrap monorepo with shared package
This commit is contained in:
22
package.json
Normal file
22
package.json
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user