-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
191 lines (191 loc) · 13.8 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
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"name": "d2-reports",
"description": "DHIS2 Reports",
"version": "0.1.3",
"license": "GPL-3.0",
"author": "EyeSeeTea team",
"homepage": ".",
"repository": {
"type": "git",
"url": "git+https://github.com/eyeseetea/d2-reports.git"
},
"dependencies": {
"@dhis2/app-runtime": "3.2.5",
"@dhis2/d2-i18n": "1.1.0",
"@dhis2/d2-i18n-extract": "1.0.8",
"@dhis2/d2-i18n-generate": "1.2.0",
"@dhis2/d2-ui-core": "7.3.3",
"@dhis2/d2-ui-forms": "7.3.3",
"@dhis2/ui": "7.16.2",
"@dhis2/ui-core": "6.24.0",
"@dhis2/ui-widgets": "6.24.0",
"@eyeseetea/d2-api": "1.9.3",
"@eyeseetea/d2-ui-components": "2.6.10",
"@material-ui/core": "4.12.3",
"@material-ui/icons": "4.11.2",
"@material-ui/styles": "4.11.4",
"argparse": "2.0.1",
"axios": "0.24.0",
"classnames": "2.3.1",
"csv-writer": "1.6.0",
"d2": "31.10.2",
"d2-manifest": "1.0.0",
"date-fns": "^2.29.2",
"date-fns-tz": "^1.3.7",
"dotenv-flow": "3.2.0",
"font-awesome": "4.7.0",
"jszip": "^3.10.1",
"lodash": "4.17.21",
"node-html-parser": "5.1.0",
"postcss-rtl": "1.7.3",
"purify-ts": "0.16.3",
"purify-ts-extra-codec": "0.6.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-router-dom": "6.0.2",
"react-scripts": "4.0.3",
"styled-components": "5.3.3",
"styled-jsx": "4.0.1"
},
"scripts": {
"start": "react-scripts start",
"craco-start": "craco start",
"prebuild": "yarn localize && yarn test",
"build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp && react-scripts build && yarn run manifest && cp -r i18n icon.png build",
"build-default": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest_mal.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"authorities-monitoring-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_authorities_monitoring && react-scripts build && yarn run authorities-monitoring-manifest && cp -r i18n icon.png build",
"authorities-monitoring-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn authorities-monitoring-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"csy-audit-emergency-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_csy_audit_emergency && react-scripts build && yarn run csy-audit-emergency-manifest && cp -r i18n icon.png build",
"csy-audit-emergency-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn csy-audit-emergency-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"csy-audit-trauma-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_csy_audit_trauma && react-scripts build && yarn run csy-audit-trauma-manifest && cp -r i18n icon.png build",
"csy-audit-trauma-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn csy-audit-trauma-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"csy-summary-mortality-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_csy_summary_mortality && react-scripts build && yarn run csy-summary-mortality-manifest && cp -r i18n icon.png build",
"csy-summary-mortality-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn csy-summary-mortality-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"csy-summary-patient-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_csy_summary_patient && react-scripts build && yarn run csy-summary-patient-manifest && cp -r i18n icon.png build",
"csy-summary-patient-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn csy-summary-patient-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"data-quality-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_data_quality && react-scripts build && yarn run data-quality-manifest && cp -r i18n icon.png build",
"data-quality-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn data-quality-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"mal-subscription-status-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_mal_subscription && react-scripts build && yarn run mal-subscription-manifest && cp -r i18n icon.png build",
"mal-subscription-status-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn mal-subscription-status-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"nhwa-build-folder": "rm -rf build/ && d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_nhwa && react-scripts build && yarn run nhwa-manifest && cp -r i18n icon.png build",
"nhwa-build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn nhwa-build-folder && rm -f $npm_package_name.zip && cd build && rm -f manifest.json mal-favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"mal-build-folder": "rm -rf build/ && yarn run mal-manifest && react-scripts build && yarn run mal-build-manifest && cp -r i18n mal-icon.png build",
"mal-build": "yarn mal-build-folder && rm -f $npm_package_name.zip && cd build && mv manifest_mal.json manifest.json && mv mal-favicon.ico favicon.ico && zip --quiet -r ../$npm_package_name.zip *",
"glass-admin-build-folder": "rm -rf build/ && yarn run glass-admin-manifest && react-scripts build && yarn run glass-admin-build-manifest && cp -r i18n glass-icon.png build",
"glass-admin-build": "yarn glass-admin-build-folder && rm -f d2-reports-glass-admin.zip && cd build && mv manifest_glass.json manifest.json && mv glass-favicon.ico favicon.ico && zip --quiet -r ../d2-reports-glass-admin.zip *",
"glass-build-folder": "rm -rf build/ && yarn run glass-manifest && react-scripts build && yarn run glass-build-manifest && cp -r i18n glass-icon.png build",
"glass-submission-build": "yarn glass-build-folder && rm -f d2-reports-glass.zip && cd build && mv manifest_glass.json manifest.json && mv glass-favicon.ico favicon.ico && zip --quiet -r ../d2-reports-glass.zip *",
"build-report": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' yarn build && gulp build-report",
"build": "REACT_APP_DHIS2_BASE_URL='' REACT_APP_DHIS2_AUTH='' npx ts-node -P tsconfig-cli.json src/scripts/build.ts",
"build-nhwa-metadata": "npx ts-node -P tsconfig-cli.json src/scripts/build-nhwa-metadata.ts",
"post-metadata": "npx ts-node -P tsconfig-cli.json src/scripts/post-metadata.ts",
"build-mal-metadata": "npx ts-node -P tsconfig-cli.json src/scripts/build-mal-metadata.ts",
"test": "jest --passWithNoTests",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
"eject": "react-scripts eject",
"prettify": "prettier \"./**/*.{js,jsx,json,css,ts,tsx}\" --write",
"extract-pot": "yarn d2-i18n-extract -p src/ -o i18n/",
"localize": "yarn update-po && d2-i18n-generate -n d2-reports -p ./i18n/ -o ./src/locales/",
"update-po": "yarn extract-pot && for pofile in i18n/*.po; do msgmerge --backup=off -U $pofile i18n/en.pot; done",
"prepare": "husky install",
"manifest": "d2-manifest package.json build/manifest.webapp",
"authorities-monitoring-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_authorities_monitoring",
"csy-audit-emergency-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_csy_audit_emergency",
"csy-audit-trauma-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_csy_audit_trauma",
"csy-summary-mortality-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_csy_summary_mortality",
"csy-summary-patient-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_csy_summary_patient",
"data-quality-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_data_quality",
"mal-subscription-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_mal_subscription",
"nhwa-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_nhwa",
"mal-manifest": "d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_mal --manifest.icons.48='mal-icon.png' --manifest.name='DHIS2 MAL Approval Report' --manifest.description='DHIS2 MAL Approval Report'",
"mal-build-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_mal --manifest.icons.48 mal-icon.png --manifest.name='DHIS2 MAL Approval Report' --manifest.description='DHIS2 MAL Approval Report'",
"glass-admin-manifest": "d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_glass_admin --manifest.icons.48='glass-icon.png' --manifest.name='DHIS2 GLASS Admin Maintenance Report' --manifest.description='DHIS2 GLASS Admin Maintenance Report'",
"glass-admin-build-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_glass_admin --manifest.icons.48 glass-icon.png --manifest.name='DHIS2 GLASS Admin Maintenance Report' --manifest.description='DHIS2 GLASS Admin Maintenance Report'",
"glass-manifest": "d2-manifest package.json manifest.webapp --manifest.version=$npm_package_reportVersions_glass --manifest.icons.48='glass-icon.png' --manifest.name='DHIS2 GLASS Submission Report' --manifest.description='DHIS2 GLASS Submission Report'",
"glass-build-manifest": "d2-manifest package.json build/manifest.webapp --manifest.version=$npm_package_reportVersions_glass --manifest.icons.48 glass-icon.png --manifest.name='DHIS2 GLASS Submission Report' --manifest.description='DHIS2 GLASS Submission Report'"
},
"reportVersions": {
"authorities-monitoring": "1.0.0",
"csy-audit-emergency": "1.0.0",
"csy-audit-trauma": "1.0.0",
"csy-summary-mortality": "1.0.0",
"csy-summary-patient": "1.0.0",
"data-quality": "1.0.0",
"glass-admin": "1.0.0",
"glass-submission": "1.0.3",
"glass": "1.0.3",
"mal": "0.1.3",
"mal-subscription": "1.0.0",
"nhwa": "1.0.0"
},
"husky": {
"hooks": {
"pre-push": "yarn prettify && yarn lint && yarn update-po && yarn test",
"post-merge": "./.githooks/dep-check"
}
},
"devDependencies": {
"@babel/core": "7.16.0",
"@babel/preset-typescript": "7.16.0",
"@testing-library/jest-dom": "5.15.0",
"@testing-library/react": "12.1.2",
"@types/argparse": "2.0.10",
"@types/axios-mock-adapter": "1.10.0",
"@types/classnames": "2.3.1",
"@types/jest": "27.0.2",
"@types/lodash": "4.14.177",
"@types/material-ui": "0.21.12",
"@types/md5": "2.3.1",
"@types/node": "16.11.7",
"@types/react": "17.0.35",
"@types/react-dom": "17.0.11",
"@types/react-router-dom": "5.3.2",
"@types/styled-components": "5.1.17",
"@typescript-eslint/eslint-plugin": "5.4.0",
"@typescript-eslint/parser": "5.4.0",
"@welldone-software/why-did-you-render": "6.2.3",
"axios-mock-adapter": "1.20.0",
"babel-core": "6.26.3",
"babel-eslint": "10.1.0",
"child_process": "1.0.2",
"craco": "0.0.3",
"eslint": "8.2.0",
"eslint-config-prettier": "8.3.0",
"eslint-config-react-app": "6.0.0",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-import": "2.25.3",
"eslint-plugin-jsx-a11y": "6.5.1",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-react": "7.27.0",
"eslint-plugin-react-hooks": "4.3.0",
"eslint-plugin-unused-imports": "2.0.0",
"gulp": "4.0.2",
"gulp-inline-source": "4.0.0",
"gulp-replace": "1.1.3",
"http-proxy-middleware": "2.0.1",
"husky": "7.0.4",
"jest": "27.3.1",
"prettier": "2.4.1",
"react-test-renderer": "17.0.2",
"ts-jest": "27.0.7",
"ts-node": "10.4.0",
"typescript": "4.5.2",
"wait-on": "6.0.0"
},
"manifest.webapp": {
"name": "DHIS2 Reports",
"description": "DHIS2 Reports",
"icons": {
"48": "icon.png"
},
"developer": {
"url": "https://www.eyeseetea.com/",
"name": "EyeSeeTea team"
},
"activities": {
"dhis": {
"href": "*"
}
}
}
}