-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
53 lines (53 loc) · 2.71 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"name": "blockly-react-node",
"version": "1.0.0",
"description": "Shell package to run scripts from",
"main": "index.js",
"config": {},
"repository": {
"type": "git",
"url": "git+https://github.com/sstid/brn.git"
},
"author": "Dave Welling",
"license": "MIT",
"bugs": {
"url": "https://github.com/sstid/brn/issues"
},
"homepage": "https://github.com/sstid/brn#readme",
"devDependencies": {
"inquirer": "^3.0.6",
"npm-run-all": "^4.0.2",
"react-dev-utils": "^0.5.2"
},
"scripts": {
"startDev": "npm-run-all docker-compose-down nginx-docker-build createDockerComposeFile docker-compose-dev openPages parallelServers",
"deployLocal": "npm-run-all docker-compose-down build nginx-docker-build-prod docker-compose-prod",
"openPages": "node -e \"require('./tools/devBuild').openPages()",
"parallelServers": "run-p client-start server-start nginx-start",
"docker-compose-down": "docker-compose down",
"docker-compose-dev": "docker-compose -f docker-compose.yml up -d",
"docker-compose-prod": "docker-compose -f docker-compose.prod.yml up -d",
"install-all": "npm install && npm-run-all blockly-install client-install server-install",
"build": "run-p blockly-build client-build server-docker-build",
"docker-build": "npm-run-all nginx-docker-build server-docker-build",
"mongo-run-docker": "docker run -p 27017:27017 --name brn-mongo -d mongo:3.2",
"blockly-install": "cd blockly && npm install && cd ..",
"blockly-build": "cd blockly && npm run build && cd ..",
"client-start": "cd client && npm start && cd ..",
"client-install": "cd client && npm install && cd ..",
"client-build": "cd client && npm run build && cd ..",
"server-start": "cd server && npm start && cd ..",
"server-run-docker": "docker run -p 10437:10437 -e MONGO_HOST=brn-mongo --link brn-mongo --name brn-server -d brn-server",
"server-install": "cd server && npm install && cd ..",
"server-docker-build": "cd server && npm run docker-build && cd ..",
"nginx-start": "npm-run-all nginx-copy-dev nginx-restart",
"nginx-docker-build": "docker build -t brn-nginx . ",
"nginx-docker-build-prod": "docker build -t brn-nginx -f DOCKERFILEPROD .",
"nginx-run-docker": "docker run -p 80:80 --link brn-server --name brn-nginx -d brn-nginx",
"nginx-prod": "npm-run-all nginx-copy-prod nginx-restart",
"nginx-copy-prod": "docker cp ./nginx/nginx.prod.conf brn-nginx:/etc/nginx/nginx.conf",
"nginx-copy-dev": "docker cp ./nginx/nginx.dev.conf brn-nginx:/etc/nginx/nginx.conf",
"nginx-restart": "docker exec -i brn-nginx bash -c \"nginx -s reload\"",
"createDockerComposeFile": "node -e \"require('./tools/devBuild').populateDockerComposeTemplate()\""
}
}