-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
35 lines (35 loc) · 1.75 KB
/
package.json
File metadata and controls
35 lines (35 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"name": "composure",
"version": "0.1.0",
"private": true,
"description": "An open-source, self-hostable collaborative document editor for researchers and technical writers.",
"scripts": {
"db:up": "docker compose -f docker-compose.yml -f docker-compose.db.yml up -d --wait db",
"db:down": "docker compose -f docker-compose.yml -f docker-compose.db.yml down",
"db:reset": "bash scripts/psql.sh \"DROP DATABASE IF EXISTS composure WITH (FORCE);\" && bash scripts/psql.sh \"CREATE DATABASE composure;\"",
"db:reset:test": "bash scripts/psql.sh \"DROP DATABASE IF EXISTS composure_test WITH (FORCE);\" && bash scripts/psql.sh \"CREATE DATABASE composure_test;\"",
"db:nuke": "npm run db:down && docker volume rm composure_pgdata",
"dev:frontend": "npm run dev --workspace=frontend",
"dev:backend": ". ./scripts/dev-env.sh && npm run dev --workspace=backend",
"dev:compiler:1": ". ./scripts/dev-env.sh && PORT=4000 COMPILE_DIR=$DATA_DIR/compiles/compiler-1 npm run dev --workspace=compiler",
"dev:compiler:2": ". ./scripts/dev-env.sh && PORT=4001 COMPILE_DIR=$DATA_DIR/compiles/compiler-2 npm run dev --workspace=compiler",
"dev": "npm run db:up && concurrently \"npm run dev:backend\" \"npm run dev:frontend\" \"npm run dev:compiler:1\" \"npm run dev:compiler:2\"",
"build": "npm run build --workspace=frontend && npm run build --workspace=backend",
"lint": "npm run lint --workspaces --if-present",
"check": "npm run check --workspaces --if-present",
"test": "npm test --workspaces --if-present"
},
"workspaces": [
"frontend",
"backend",
"compiler"
],
"overrides": {
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"concurrently": "^9.1.2",
"typescript": "^5.7.3"
}
}