forked from medic/cht-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·178 lines (178 loc) · 8.77 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
170
171
172
173
174
175
176
177
178
{
"name": "medic",
"version": "4.5.0",
"private": true,
"license": "AGPL-3.0-only",
"repository": {
"type": "git",
"url": "git://github.com/medic/cht-core.git"
},
"engines": {
"node": ">=16.12.0",
"npm": ">=8.3.1"
},
"workspaces": [
"./shared-libs/*"
],
"scripts": {
"postinstall": "cd webapp && ng cache clean && cd ..",
"prepare": "husky install",
"-- DEV BUILD SCRIPTS": "-----------------------------------------------------------------------------------------------",
"build-ddocs": "mkdir -p build/ddocs && cp -r ddocs/* build/ddocs/ && node scripts/build/cli setDdocsVersion && node scripts/build/cli setBuildInfo && node ./scripts/build/ddoc-compile.js primary && mkdir -p api/build/ddocs && cp build/ddocs/*.json api/build/ddocs/",
"build-dev": "./scripts/build/build-prepare.sh && npm run build-webapp-dev && ./scripts/build/copy-static-files.sh",
"build-dev-watch": "npm run build-dev && cd webapp && npm run build -- --configuration=development --watch=true & node ./scripts/build/watch.js",
"build-documentation": "./scripts/build/build-documentation.sh",
"build-webapp-dev": "cd webapp && npm run build -- --configuration=development && npm run compile",
"build-cht-form": "./scripts/build/build-prepare.sh && cd webapp && npm run build:cht-form",
"copy-api-resources": "cp -r api/src/public/* api/build/static/",
"dev-api": "./scripts/build/copy-static-files.sh && TZ=UTC nodemon --inspect=0.0.0.0:9229 --ignore 'api/build/static' --ignore 'api/build/public' --watch api --watch 'shared-libs/**/src/**' api/server.js -- --allow-cors",
"dev-sentinel": "TZ=UTC nodemon --inspect=0.0.0.0:9228 --watch sentinel --watch 'shared-libs/**/src/**' sentinel/server.js",
"local-images": "export VERSION=$(node ./scripts/build/get-version.js) && ./scripts/build/build-service-images.sh && node scripts/build/cli localDockerComposeFiles",
"update-service-worker": "node scripts/build/cli updateServiceWorker",
"-- DEV TEST SCRIPTS": "-----------------------------------------------------------------------------------------------",
"integration-all-local": "export VERSION=$(node ./scripts/build/get-version.js) && ./scripts/build/build-service-images.sh && npm run ci-integration-all",
"integration-sentinel-local": "export VERSION=$(node ./scripts/build/get-version.js) && ./scripts/build/build-service-images.sh && npm run ci-integration-sentinel",
"integration-api": "cd api && npm ci && cd .. && mocha 'api/tests/integration/**/*.js' -t 10000",
"lint": "eslint --color --cache . && ./scripts/build/blank-link-check.sh",
"test": "npm run lint && npm run unit && npm run integration-api",
"unit": "node scripts/build/cli npmCiModules && npm run unit-webapp && npm run unit-admin && npm run unit-shared-lib && npm run unit-api && npm run unit-sentinel",
"unit-admin": "node ./scripts/ci/run-karma.js",
"unit-api": "UNIT_TEST_ENV=1 mocha 'api/tests/mocha/**/*.js'",
"unit-sentinel": "UNIT_TEST_ENV=1 mocha 'sentinel/tests/**/*.js'",
"unit-shared-lib": "UNIT_TEST_ENV=1 npm test --workspaces --if-present",
"unit-webapp": "UNIT_TEST_ENV=1 mocha 'webapp/tests/mocha/**/*.spec.js' && cd webapp && npm run unit -- --watch=false && npm run unit:cht-form -- --watch=false",
"unit-webapp-continuous": "cd webapp && npm run unit -- --watch=true",
"unit-nginx": "cd nginx/tests && make test",
"unit-haproxy": "cd haproxy/tests && make test",
"wdio-cht-form": "wdio run ./tests/e2e/cht-form/wdio.conf.js",
"wdio-default-mobile-local": "export VERSION=$(node ./scripts/build/get-version.js) && ./scripts/build/build-service-images.sh && wdio run ./tests/e2e/default-mobile/wdio.conf.js --suite=all",
"wdio-local": "export VERSION=$(node ./scripts/build/get-version.js) && ./scripts/build/build-service-images.sh && wdio run ./tests/e2e/default/wdio.conf.js",
"wdio-standard-local": "export VERSION=$(node ./scripts/build/get-version.js) && ./scripts/build/build-service-images.sh && wdio run ./tests/e2e/standard/wdio.conf.js --suite=all",
"-- CI SCRIPTS ": "-----------------------------------------------------------------------------------------------",
"build": "./scripts/build/build-ci.sh",
"ci-compile": "node scripts/ci/check-versions.js && node scripts/build/cli npmCiModules && npm run lint && npm run build && npm run integration-api && npm run unit && npm run unit-nginx && npm run unit-haproxy",
"ci-integration-all": "mocha --config tests/integration/.mocharc-all.js",
"ci-integration-sentinel": "mocha --config tests/integration/.mocharc-sentinel.js",
"ci-webdriver-default": "wdio run ./tests/e2e/default/wdio.conf.js",
"ci-webdriver-default-mobile": "wdio run ./tests/e2e/default-mobile/wdio.conf.js",
"ci-webdriver-standard": "wdio run ./tests/e2e/standard/wdio.conf.js",
"publish-for-testing": "./scripts/build/build-service-images.sh && mkdir -p images && node scripts/build/cli publishServiceImages && node ./scripts/build/ddoc-compile.js staging && node ./scripts/build/push-ddoc-to-staging.js",
"test-config-default": "cd config/default && npm ci && npm run test",
"test-config-standard": "cd config/standard && npm ci && npm run ci",
"upgrade-wdio": "wdio run ./tests/e2e/upgrade/wdio.conf.js"
},
"devDependencies": {
"@angular-builders/custom-webpack": "^16.0.1",
"@angular-devkit/build-angular": "^16.2.1",
"@angular-eslint/builder": "^16.1.2",
"@angular-eslint/eslint-plugin": "^16.1.2",
"@angular-eslint/eslint-plugin-template": "^16.1.2",
"@angular-eslint/schematics": "^16.1.2",
"@angular-eslint/template-parser": "^16.1.2",
"@angular/cli": "^16.2.2",
"@angular/compiler": "^16.2.5",
"@angular/compiler-cli": "^16.2.5",
"@angular/localize": "^16.2.5",
"@faker-js/faker": "^8.0.2",
"@medic/eslint-config": "^1.1.0",
"@types/chai": "^4.3.6",
"@types/chai-as-promised": "^7.1.6",
"@types/jquery": "^3.5.19",
"@types/lodash": "^4.14.198",
"@types/lodash-es": "^4.17.9",
"@types/mocha": "^10.0.1",
"@types/node": "^20.6.2",
"@types/pouchdb": "^6.4.0",
"@types/sinon": "^10.0.16",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@wdio/allure-reporter": "^8.20.0",
"@wdio/cli": "^8.20.2",
"@wdio/devtools-service": "^8.20.0",
"@wdio/local-runner": "^8.20.0",
"@wdio/mocha-framework": "^8.3.0",
"@wdio/spec-reporter": "^8.3.0",
"allure-commandline": "^2.24.0",
"angular-jsdoc": "^1.5.1",
"angular-mocks": "^1.8.3",
"bikram-sambat": "^1.7.0",
"browserify": "^17.0.0",
"browserify-ngannotate": "^2.0.0",
"chai": "^4.3.8",
"chai-as-promised": "^7.1.1",
"chai-exclude": "^2.1.0",
"chai-shallow-deep-equal": "^1.4.6",
"cht-conf": "^3.18.3",
"clean-css-cli": "^5.6.2",
"couchdb-compile": "^1.11.2",
"csv-writer": "^1.6.0",
"deep-equal-in-any-order": "^2.0.6",
"doctoc": "^2.2.1",
"eslint": "^8.49.0",
"eslint-plugin-angular": "^4.1.0",
"eslint-plugin-async": "^0.1.1",
"eslint-plugin-compat": "^4.2.0",
"eslint-plugin-couchdb": "^0.2.0",
"eslint-plugin-jasmine": "^4.1.3",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eurodigit": "^3.1.3",
"express": "^4.18.2",
"flat": "^6.0.0",
"gaze": "^1.1.3",
"husky": "^8.0.0",
"jasmine-spec-reporter": "^7.0.0",
"jsdoc": "^4.0.2",
"jsverify": "^0.8.4",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-coverage": "^2.2.1",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-ng-html2js-preprocessor": "^1.0.0",
"karma-spec-reporter": "^0.0.36",
"less": "^4.2.0",
"lodash": "^4.17.21",
"loose-envify": "^1.4.0",
"medic-conf": "^3.2.1",
"mocha": "^10.2.0",
"module-alias": "^2.2.3",
"moment": "^2.29.4",
"moment-locales-webpack-plugin": "^1.2.0",
"mustache": "^4.2.0",
"nodemon": "^3.0.1",
"patch-package": "^8.0.0",
"postcss": "^8.4.29",
"pouchdb-adapter-http": "^7.3.1",
"pouchdb-adapter-memory": "^7.3.1",
"pouchdb-core": "^7.3.1",
"pouchdb-mapreduce": "^7.3.1",
"raw-loader": "^4.0.2",
"request": "^2.88.2",
"request-promise-native": "^1.0.9",
"rewire": "^7.0.0",
"rosie": "^2.1.0",
"sass": "^1.67.0",
"semver": "^7.5.4",
"sinon": "^16.1.0",
"tail": "^2.2.6",
"typescript": "^5.1.6",
"uglify-js": "^3.17.4",
"uuid": "^9.0.1",
"wdio-chromedriver-service": "^8.1.1",
"webpack-bundle-analyzer": "^4.9.1",
"zone.js": "^0.13.3"
},
"overrides": {
"minimist": ">=1.2.6",
"nools": {
"uglify-js": ">=2.6.0"
}
},
"dependencies": {
"google-libphonenumber": "^3.2.31"
}
}