-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
160 lines (160 loc) · 5.9 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"name": "@opencrvs/countryconfig",
"version": "1.1.0",
"description": "OpenCRVS country configuration for reference data",
"license": "MPL-2.0",
"scripts": {
"dev": "bash dev.sh",
"e2e": "cypress run",
"open:e2e": "CYPRESS_COUNTRYCONFIG_URL=http://localhost:3040/ CYPRESS_GATEWAY_URL=http://localhost:7070/ CYPRESS_LOGIN_URL=http://localhost:3020/ CYPRESS_CLIENT_URL=http://localhost:3000/ CYPRESS_AUTH_URL=http://localhost:4040/ cypress open",
"openqa:e2e": "CYPRESS_COUNTRYCONFIG_URL=https://countryconfig.farajaland-qa.opencrvs.org/ CYPRESS_GATEWAY_URL=https://gateway.farajaland-qa.opencrvs.org/ CYPRESS_LOGIN_URL=https://login.farajaland-qa.opencrvs.org/ CYPRESS_CLIENT_URL=https://register.farajaland-qa.opencrvs.org/ CYPRESS_AUTH_URL=https://auth.farajaland-qa.opencrvs.org/ cypress open",
"openstaging:e2e": "CYPRESS_COUNTRYCONFIG_URL=https://countryconfig.farajaland-staging.opencrvs.org/ CYPRESS_GATEWAY_URL=https://gateway.farajaland-staging.opencrvs.org/ CYPRESS_LOGIN_URL=https://login.farajaland-staging.opencrvs.org/ CYPRESS_CLIENT_URL=https://register.farajaland-staging.opencrvs.org/ CYPRESS_AUTH_URL=https://auth.farajaland-staging.opencrvs.org/ cypress open",
"test:watch": "jest --watch",
"open:cov": "yarn test && opener coverage/index.html",
"precommit": "tslint --project ./tsconfig.json && lint-staged",
"test": "jest --silent --noStackTrace --coverage && yarn test:compilation",
"test:compilation": "tsc --noEmit",
"start": "cross-env NODE_ENV=development nodemon --exec ts-node -r tsconfig-paths/register src/index.ts",
"start:prod": "ts-node --transpile-only -r tsconfig-paths/register src/index.ts",
"db:populate": "bash createReferenceData.sh",
"populate:config": "ts-node -r tsconfig-paths/register src/features/config/scripts/populate-default-config.ts",
"db:backup:create": "REPLICAS=0 ./backup-metadata.sh",
"db:backup:restore": "REPLICAS=0 ./restore-metadata.sh",
"db:clear:all": "REPLICAS=0 ./clear-all-data.sh",
"contentful:prepare:import": "ts-node -r tsconfig-paths/register src/features/languages/scripts/contentfulImport.ts",
"compose:push:version": "export COUNTRY_CONFIG_VERSION=`git log -1 --pretty=format:%h` && bash build-and-push.sh && unset COUNTRY_CONFIG_VERSION",
"compose:push:release": "export COUNTRY_CONFIG_VERSION=`git describe --tags --abbrev=0` && bash build-and-push.sh && unset COUNTRY_CONFIG_VERSION",
"data-generator": "ts-node -r tsconfig-paths/register -T src/data-generator/index.ts",
"data-generator:generate-types": "graphql-codegen --config codegen.yml"
},
"devDependencies": {
"@graphql-codegen/add": "^3.1.1",
"@graphql-codegen/cli": "2.6.2",
"@graphql-codegen/introspection": "2.1.1",
"@graphql-codegen/typescript": "2.4.5",
"@graphql-codegen/typescript-operations": "^2.3.7",
"@types/hapi__inert": "^5.2.3",
"@types/jsonwebtoken": "^8.5.8",
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^5.39.0",
"eslint-plugin-prettier": "^4.0.0",
"csv2json": "^1.4.2",
"cypress-xpath": "^2.0.1",
"dotenv": "^6.1.0",
"json2csv": "^4.3.0",
"jsonwebtoken": "^8.3.0",
"niceware": "^2.0.2",
"zod": "^3.17.3"
},
"dependencies": {
"@faker-js/faker": "^6.0.0-alpha.5",
"@hapi/boom": "^9.1.1",
"@hapi/hapi": "^20.0.1",
"@hapi/inert": "^6.0.3",
"@types/chalk": "^2.2.0",
"@types/code": "^4.0.3",
"@types/csv2json": "^1.4.0",
"@types/dotenv": "^6.1.0",
"@types/fhir": "^0.0.30",
"@types/geojson": "^7946.0.4",
"@types/hapi-pino": "^6.3.0",
"@types/hapi__boom": "^9.0.1",
"@types/hapi__hapi": "^20.0.0",
"@types/jest": "^24.0.13",
"@types/json2csv": "^4.2.0",
"@types/lodash": "^4.14.117",
"@types/mime-types": "^2.1.0",
"@types/mongoose": "^5.0.16",
"@types/node": "^10.12.5",
"@types/node-fetch": "^2.3.4",
"@types/pino": "^5.14.0",
"@types/string-similarity": "^3.0.0",
"@types/uuid": "^3.4.4",
"app-module-path": "^2.2.0",
"chalk": "^2.4.1",
"contentful": "^8.1.1",
"country-data": "^0.0.31",
"cross-env": "^6.0.3",
"crypto": "^1.0.1",
"cypress": "9.6.1",
"date-fns": "^2.28.0",
"eslint": "^7.11.0",
"eslint-config-prettier": "^8.3.0",
"graphql": "^16.3.0",
"graphql-tag": "^2.12.6",
"hapi-auth-jwt2": "10.2.0",
"hapi-pino": "^6.3.0",
"hapi-sentry": "^3.1.0",
"jest": "24.7.1",
"jest-fetch-mock": "^2.1.2",
"joi": "^17.4.0",
"lint-staged": "^7.1.0",
"lodash": "^4.17.21",
"mime-types": "^2.1.24",
"mongoose": "^5.1.5",
"node-fetch": "^2.6.1",
"nodemon": "^1.18.5",
"nyc": "^13.1.0",
"opener": "^1.5.1",
"p-queue": "^6.6.2",
"pino": "^5.14.0",
"prettier": "^2.5.1",
"regex-to-strings": "^2.1.0",
"short-uuid": "^4.1.0",
"string-similarity": "^3.0.0",
"ts-jest": "^24.0.2",
"ts-node": "6.1.1",
"tsconfig-paths": "^3.8.0",
"tslint": "^5.17.0",
"tslint-config-prettier": "^1.12.0",
"tslint-microsoft-contrib": "^6.2.0",
"typescript": "^4.5.5",
"typestyle": "^1.3.7",
"uuid": "^3.3.2",
"whatwg-fetch": "^3.0.0"
},
"lint-staged": {
"src/**/*.{ts,graphql}": [
"prettier --write",
"git add"
]
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"coverageReporters": [
"json",
"lcov",
"text",
"html"
],
"modulePaths": [
"<rootDir>"
],
"moduleNameMapper": {
"@countryconfig/(.*)": "<rootDir>/src/$1"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"setupFiles": [
"./test/setupJest.ts"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"testEnvironment": "node",
"testPathIgnorePatterns": [
"/node_modules/",
"cypress"
]
},
"resolutions": {
"minimist": "^1.2.2",
"acorn": "^6.4.1"
}
}