This repository has been archived by the owner on Apr 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
113 lines (113 loc) · 5.4 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"name": "@orbiting/backends",
"description": "Backends used to power Republik",
"author": "Patrick Recher <[email protected]>",
"license": "AGPL-3.0",
"version": "1.0.0",
"engines": {
"node": "14.x",
"yarn": "^1.22.4"
},
"private": true,
"main": "index.js",
"homepage": "https://github.com/orbiting/backends#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/orbiting/backends.git"
},
"bugs": {
"url": "https://github.com/orbiting/backends/issues"
},
"workspaces": [
"packages/*",
"servers/*"
],
"lint-staged": {
"*.{js,ts,tsx}": [
"eslint --fix",
"prettier --write"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {},
"devDependencies": {
"@types/jest": "^26.0.13",
"@types/node": "^14.0.27",
"@typescript-eslint/eslint-plugin": "^4.1.0",
"@typescript-eslint/parser": "^4.1.0",
"commitizen": "^4.1.2",
"concurrently": "^5.3.0",
"coveralls": "^3.1.0",
"cz-conventional-changelog": "^3.2.0",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jest": "^24.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"foreman": "^3.0.0",
"husky": "^4.2.5",
"jest": "^26.0.1",
"jest-environment-node": "^26.0.1",
"lint-staged": "^10.2.9",
"prettier": "^2.1.1",
"typescript": "^4.0.2"
},
"scripts": {
"start": "if [ -z \"$SERVER\" ]; then cd servers/graphql; else cd servers/$SERVER; fi && yarn start",
"start:scheduler": "cd servers/graphql && yarn start:scheduler",
"dev": "nf --procfile Procfile-dev start",
"dev:setup": "yarn migrate:db:create && yarn migrate:up && yarn migrate:db:import && yarn pull:elasticsearch --flush && yarn populate",
"dev:tsc": "tsc -w",
"cloc": "find . -name '*.js' -not -path \"*/node_modules*\" -not -path \"./node_modules*\" | xargs wc -l",
"commit": "git-cz",
"heroku-postbuild": "if [ -z \"$SERVER\" ]; then yarn migrate:up; fi",
"auth:role:user": "node packages/auth/script/roleUser",
"auth:role:users": "node packages/auth/script/roleUsers",
"translations": "cd packages/translate && yarn translations && cd -",
"pull:elasticsearch": "packages/search/script/pullElasticsearch.js",
"pull:images": "packages/publikator/script/copyImages.js",
"populate:membershipStats:evolution": "packages/republik/script/MembershipStats/evolution/populate.js",
"populate:membershipStats:lastSeen": "packages/republik/script/MembershipStats/lastSeen/populate.js",
"populate:membershipStats:ages": "packages/republik/script/MembershipStats/ages/populate.js",
"populate:membershipStats:names": "packages/republik/script/MembershipStats/names/populate.js",
"populate:membershipStats:geo": "packages/republik/script/MembershipStats/geo/populate.js",
"populate:membershipStats:geoCities": "packages/republik/script/MembershipStats/geoCities/populate.js",
"populate:revenueStats:segments": "packages/republik/script/RevenueStats/segments/populate.js",
"populate:collections:evolution": "packages/collections/script/stats/evolution.js",
"populate:collections:last": "packages/collections/script/stats/last.js",
"populate:discussions:evolution": "packages/discussions/script/stats/evolution.js",
"populate:discussions:last": "packages/discussions/script/stats/last.js",
"populate": "yarn populate:membershipStats:evolution; yarn populate:membershipStats:lastSeen; yarn populate:membershipStats:ages; yarn populate:membershipStats:names; yarn populate:membershipStats:geo; yarn populate:membershipStats:geoCities; yarn populate:revenueStats:segments; yarn populate:collections:evolution; yarn populate:collections:last; yarn populate:discussions:evolution; yarn populate:discussions:last;",
"migrate:db:create": "packages/migrations/script/db/create.js",
"migrate:db:import": "packages/migrations/script/db/import.js",
"migrate:create": "packages/migrations/script/create.js",
"migrate:up": "db-migrate up --migrations-dir packages/migrations/migrations",
"migrate:down": "db-migrate down --migrations-dir packages/migrations/migrations --verbose",
"db:seed": "packages/republik-crowdfundings/seeds/script/seed.js",
"notifications:send": "cd packages/republik && node ../push-notifications/script/sendNotification.js",
"databroom": "node packages/databroom/script/run.js --verbose",
"test": "TZ=Europe/Amsterdam jest --verbose --detectOpenHandles --forceExit",
"test:unit": "TZ=Europe/Amsterdam jest --verbose --detectOpenHandles --forceExit --testPathPattern \"\\.(u)|(unit)\\.jest\"",
"test:integration": "TZ=Europe/Amsterdam jest --verbose --detectOpenHandles --forceExit --testPathPattern \"\\.(int)|(integration)\\.jest\"",
"test:dev": "concurrently 'yarn dev:tsc' 'sleep 5 && yarn test:unit --watch'",
"test:cover": "TZ=Europe/Amsterdam jest --collectCoverage --detectOpenHandles --forceExit",
"test:reportCover": "cat ./tests/coverage/lcov.info | coveralls",
"tsc": "tsc",
"postinstall": "tsc",
"sg:link": "packages/styleguide/scripts/sg_link.sh",
"sg:unlink": "packages/styleguide/scripts/sg_unlink.sh"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}