-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
23 lines (23 loc) · 1.22 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"name": "solid",
"version": "0.0.1",
"description": "A polling platform.",
"scripts": {
"dev": "concurrently \"npm run redis\" \"npm run postgres\" \"cd backend && npm run start:dev\" \"cd frontend && npm run dev\"",
"postgres": "docker run -p 5432:5432 -e POSTGRES_USER=solid -e POSTGRES_PASSWORD=solid postgres:14-alpine",
"redis": "docker run -p 6379:6379 redis:7-alpine",
"setup": "npm install && cd frontend && npm install && cd ../backend && npm install",
"precommit": "concurrently \"cd backend && npm run test && npm run lint\" \"cd frontend && npm run lint\"",
"codegen:full": "npm run copytypes && curl http://localhost:3000/docs-json > frontend/src/api/swagger.json && cd backend && npx prettier --write ../frontend/src/api/swagger.json && cd ../frontend && npm run codegen",
"copytypes": "cd backend/src/types && for f in *; do echo -e '/* Edit this file in backend/src/types */\n' > ../../../frontend/src/types/$f && cat $f >> ../../../frontend/src/types/$f; done"
},
"repository": {
"type": "git",
"url": "git+https://github.com/solid-polls/solid.git"
},
"license": "MIT",
"homepage": "https://github.com/solid-polls/solid",
"devDependencies": {
"concurrently": "^7.2.1"
}
}