-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
169 lines (169 loc) · 6.09 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
161
162
163
164
165
166
167
168
169
{
"name": "@opencrvs/countryconfig",
"version": "1.3.0-beta",
"description": "OpenCRVS country configuration for reference data",
"license": "MPL-2.0",
"husky": {
"hooks": {
"pre-commit": "yarn precommit"
}
},
"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": "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 db-populate.sh",
"populate:config": "ts-node -r tsconfig-paths/register src/features/config/scripts/populate-default-config.ts",
"db:backup:create": "bash create-backup.sh",
"db:backup:restore": "bash restore-backup.sh",
"db:clear:all": "bash 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 && yarn prettier --write src/data-generator/gateway.ts"
},
"devDependencies": {
"@graphql-codegen/add": "^3.1.1",
"@graphql-codegen/cli": "^3.3.1",
"@graphql-codegen/introspection": "^3.0.1",
"@graphql-codegen/typescript": "^3.0.4",
"@graphql-codegen/typescript-operations": "^3.0.4",
"@types/bcryptjs": "^2.4.2",
"@types/google-libphonenumber": "^7.4.23",
"@types/hapi__inert": "^5.2.3",
"@types/iconv": "^3.0.1",
"@types/jsonwebtoken": "^8.5.8",
"@typescript-eslint/eslint-plugin": "^4.5.0",
"@typescript-eslint/parser": "^5.39.0",
"cypress-xpath": "^2.0.1",
"dotenv": "^6.1.0",
"eslint": "^7.11.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "1.0.0-rc.13",
"jest": "^26.6.0",
"jest-fetch-mock": "^3.0.3",
"json2csv": "^4.3.0",
"jsonwebtoken": "^9.0.0",
"lint-staged": "^7.1.0",
"niceware": "^2.0.2",
"nodemon": "^2.0.22",
"prettier": "^2.5.1",
"ts-jest": "^26.5.6",
"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/jwt-decode": "^2.2.1",
"@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.6.2",
"@types/pino": "^5.14.0",
"@types/string-similarity": "^3.0.0",
"@types/uuid": "^3.4.4",
"app-module-path": "^2.2.0",
"bcryptjs": "^2.4.3",
"chalk": "^2.4.1",
"contentful": "^8.1.1",
"country-data": "^0.0.31",
"cross-env": "^6.0.3",
"csv2json": "^1.4.2",
"cypress": "9.6.1",
"date-fns": "^2.28.0",
"google-libphonenumber": "^3.2.32",
"graphql": "^16.3.0",
"graphql-tag": "^2.12.6",
"hapi-auth-jwt2": "10.4.0",
"hapi-pino": "^6.3.0",
"hapi-sentry": "^3.1.0",
"iconv": "^3.0.1",
"joi": "^17.4.0",
"jwt-decode": "^2.2.0",
"lodash": "^4.17.21",
"mime-types": "^2.1.24",
"mongoose": "^5.1.5",
"node-fetch": "^2.6.1",
"opener": "^1.5.1",
"p-queue": "^6.6.2",
"pino": "^5.14.0",
"regex-to-strings": "^2.1.0",
"short-uuid": "^4.1.0",
"string-similarity": "^3.0.0",
"ts-node": "6.1.1",
"tsconfig-paths": "^3.8.0",
"typescript": "^4.5.5",
"uuid": "^3.3.2",
"whatwg-fetch": "^3.0.0"
},
"lint-staged": {
"src/**/*.{ts,graphql}": [
"eslint --fix",
"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"
}
}