-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
26 lines (26 loc) · 1.3 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
{
"private": true,
"name": "snack-pack",
"version": "1.0.0",
"author": "Bob Menacho <[email protected]>",
"repository": "https://github.com/ybbobdev/snack-pack.git",
"license": "MIT",
"workspaces": [
"packages/*"
],
"scripts": {
"secrets": "[ -f \"secrets\" ] && echo \"secrets exists\" || echo \"export POSTGRES_USERNAME=snack\nexport POSTGRES_PASSWORD=pack\nexport [email protected]\nexport PGADMIN_PASSWORD=pack\" > secrets",
"docker": "source secrets && docker-compose up",
"api": "source secrets && yarn workspace api dev",
"site": "source secrets && yarn workspace site dev",
"dev": "source secrets && concurrently --kill-others-on-fail \"yarn site\" \"yarn api\"",
"all": "yarn && yarn secrets && concurrently --kill-others-on-fail \"source secrets && yarn docker\" \"source secrets && yarn dev\"",
"docker:clean": "[ \"$(docker ps -a | grep sp-db)\" ] && docker rm sp-db -f && [ \"$(docker ps -a | grep sp-pg)\" ] && docker rm sp-pg -f",
"docker:clean:data": "rm -rf postgres-data && rm -rf pgadmin-data",
"clean": "find . -name node_modules -type d -print0|xargs -0 rm -r --",
"clean:all": "yarn docker:clean && yarn docker:clean:data && yarn clean"
},
"dependencies": {
"concurrently": "^6.1.0"
}
}