-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
22 lines (22 loc) · 1.27 KB
/
package.json
File metadata and controls
22 lines (22 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
"name": "traffic",
"version": "0.0.1",
"description": "Traffic - A system scaling simulator",
"scripts": {
"install:all": "npm install && cd frontend && npm install && cd ../backend && npm install",
"frontend": "cd frontend && npm run dev",
"backend": "cd backend && npm run dev",
"backend:seed": "cd backend && npm run dev:seed",
"dev": "concurrently \"npm run backend\" \"npm run frontend\"",
"dev:seed": "concurrently \"npm run backend:seed\" \"npm run frontend\"",
"build": "npm run build:frontend",
"build:frontend": "cd frontend && npm run build",
"build:prod": "rm -rf dist && mkdir -p dist && cd frontend && npm run build && cd .. && mkdir -p dist/frontend && cp -r frontend/dist/* dist/frontend/ && cp -r backend dist/backend && node -e \"const pkg = require('./package.json'); pkg.scripts = { 'start': 'NODE_ENV=production node backend/src/index.js' }; require('fs').writeFileSync('dist/package.json', JSON.stringify(pkg, null, 2));\" && cd dist && npm install --production",
"build:tar": "npm run build:prod && tar -czf shellmates-dist.tar.gz dist",
"start:prod": "NODE_ENV=production node backend/src/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"devDependencies": {
"concurrently": "^8.2.2"
}
}