-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
35 lines (35 loc) · 2.13 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
24
25
26
27
28
29
30
31
32
33
34
35
{
"name": "opera",
"version": "1.0.0",
"author": "justinthelaw",
"license": "MIT",
"scripts": {
"check:all": "npm run lint:all && npm run test:all",
"install:all": "npm run create:venv && npm run install:forge && npm run install:server && npm run install:client",
"start:all": "chmod +x scripts/start:all.sh && scripts/start:all.sh",
"test:all": "npm run test:client && npm run test:server && npm run acceptance:run",
"stop:all": "chmod +x scripts/stop:all.sh && scripts/stop:all.sh",
"freeze:all": "npm run freeze:forge && npm run freeze:server",
"start:client": "cd client && npm start",
"start:server": "cd server && . .venv/bin/activate && python3 main.py",
"acceptance:run": "chmod +x scripts/acceptance:run.sh && scripts/acceptance:run.sh",
"acceptance:open": "chmod +x scripts/acceptance:open.sh && scripts/acceptance:open.sh",
"test:client": "cd client && npm test",
"test:server": "cd server && . .venv/bin/activate && python3 -m unittest discover -s tests -p '*Test.py' && deactivate",
"lint:client": "cd client && npm run lint:all",
"lint:acceptance": "cd acceptance && npm run lint:all",
"lint:all": "npm run lint:client && npm run lint:acceptance",
"build:client": "cd client && npm run build",
"config:copy": "cp config/.env.example config/.env.local",
"create:venv": "npm run remove:pycache && cd server && rm -rf .venv && python3 -m venv .venv && cd ../forge && rm -rf .venv && python3 -m venv .venv ",
"remove:pycache": "rm -rf **/*/__pycache__",
"install:server": "cd server && . .venv/bin/activate && pip install --upgrade pip && pip3 install -r requirements.txt && deactivate",
"install:forge": "cd forge && . .venv/bin/activate && pip install --upgrade pip && pip3 install -r requirements.txt && deactivate",
"install:client": "cd client && npm install && cd ../acceptance && npm install",
"freeze:server": "cd server && . .venv/bin/activate && pip3 freeze > requirements.txt && deactivate",
"freeze:forge": "cd forge && . .venv/bin/activate && pip3 freeze > requirements.txt && deactivate"
},
"dependencies": {
"@types/draft-js": "^0.11.17"
}
}