forked from venn-city/graphql-clou
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
62 lines (62 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"name": "@venncity/graphql-clou",
"version": "1.0.0",
"private": true,
"author": "Venn Engineering",
"description": "a mono-repo for sequelize-based graphql opencrud data-access packages",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
},
"db_port": 5432
},
"scripts": {
"preinstall": "node ./scripts/verifyNodeVersion.js",
"postinstall": "patch-package",
"commit": "git-cz",
"exec-changed": "./scripts/executeOnChanged.js",
"bootstrap": "lerna bootstrap && lerna run build",
"new:package": "hygen package new",
"lint": "npx eslint --fix",
"test": "lerna exec yarn test",
"test:ci": "export JEST_JUNIT_OUTPUT=`pwd`/reports/junit/ && yarn exec-changed lerna exec --concurrency 1 'JEST_JUNIT_OUTPUT=$JEST_JUNIT_OUTPUT/\\$LERNA_PACKAGE_NAME-test-results.xml yarn test:ci'",
"db:bootstrap:local": "docker-compose down && yarn db:start && yarn db:createSchema && yarn db:migrate",
"db:bootstrap": "yarn db:createSchema && yarn db:migrate",
"db:createSchema": "wait-on -d 10000 tcp:$npm_package_config_db_port && PGPASSWORD=postgres psql -d venn -U postgres -h localhost -p $npm_package_config_db_port -c \"CREATE SCHEMA IF NOT EXISTS venn;\"",
"db:migrate": "wait-on tcp:$npm_package_config_db_port && NODE_ENV=test sequelize-cli db:migrate",
"db:seed": "NODE_ENV=test sequelize-cli db:seed:all",
"db:start": "DB_PORT=$npm_package_config_db_port docker-compose up -d",
"db:stop": "DB_PORT=$npm_package_config_db_port docker-compose down"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"npm run lint",
"git add"
]
},
"license": "ISC",
"workspaces": [
"packages/*",
"packages/demo/*"
],
"dependencies": {
"@venncity/coverage-police": "^1.1.19"
},
"devDependencies": {
"commitizen": "^4.0.3",
"cz-conventional-changelog": "^3.0.2",
"dotenv": "^8.2.0",
"husky": "^3.0.9",
"lerna": "^4.0.0",
"lint-staged": "^9.4.2",
"typescript": "^3.6.4",
"wait-on": "^3.3.0",
"sequelize": "^6.13.0",
"patch-package": "^6.4.7"
}
}