-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
199 lines (199 loc) · 9.69 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
192
193
194
195
196
197
198
199
{
"name": "forms-gov",
"version": "0.0.1-SNAPSHOT",
"private": true,
"description": "Description for formsGov",
"license": "UNLICENSED",
"scripts": {
"app:start": "./gradlew",
"backend:build-cache": "npm run backend:info && npm run backend:nohttp:test && npm run ci:e2e:package",
"backend:doc:test": "./gradlew javadoc -x webapp",
"backend:info": "./gradlew -v",
"backend:nohttp:test": "./gradlew checkstyleNohttp -x webapp",
"backend:start": "./gradlew -x webapp",
"backend:unit:test": "./gradlew test integrationTest -x webapp -Dlogging.level.ROOT=OFF -Dlogging.level.org.zalando=OFF -Dlogging.level.tech.jhipster=OFF -Dlogging.level.gov.gsa.forms=OFF -Dlogging.level.org.springframework=OFF -Dlogging.level.org.springframework.web=OFF -Dlogging.level.org.springframework.security=OFF",
"ci:backend:test": "npm run backend:info && npm run backend:doc:test && npm run backend:nohttp:test && npm run backend:unit:test",
"ci:e2e:package": "npm run java:$npm_package_config_packaging:$npm_package_config_default_environment -- -Pe2e -Denforcer.skip=true",
"postci:e2e:package": "cp build/libs/*.$npm_package_config_packaging e2e.$npm_package_config_packaging",
"ci:e2e:prepare": "npm run ci:e2e:prepare:docker",
"ci:e2e:prepare:docker": "npm run docker:db:up && npm run docker:others:up && docker ps -a",
"ci:e2e:run": "concurrently -k -s first \"npm run ci:e2e:server:start\" \"npm run e2e:headless\"",
"preci:e2e:server:start": "npm run docker:db:await --if-present && npm run docker:others:await --if-present",
"ci:e2e:server:start": "java -jar e2e.$npm_package_config_packaging --spring.profiles.active=$npm_package_config_default_environment -Dlogging.level.ROOT=OFF -Dlogging.level.org.zalando=OFF -Dlogging.level.tech.jhipster=OFF -Dlogging.level.gov.gsa.forms=OFF -Dlogging.level.org.springframework=OFF -Dlogging.level.org.springframework.web=OFF -Dlogging.level.org.springframework.security=OFF --logging.level.org.springframework.web=ERROR",
"ci:e2e:teardown": "npm run ci:e2e:teardown:docker",
"ci:e2e:teardown:docker": "npm run docker:db:down --if-present && npm run docker:others:down && docker ps -a",
"ci:frontend:test": "npm run webapp:build:$npm_package_config_default_environment && npm run test-ci",
"ci:server:await": "echo \"Waiting for server at port $npm_package_config_backend_port to start\" && wait-on http-get://localhost:$npm_package_config_backend_port/management/health && echo \"Server at port $npm_package_config_backend_port started\"",
"ci:server:package": "npm run java:$npm_package_config_packaging:$npm_package_config_default_environment",
"clean-www": "rimraf build/resources/main/static/app/{src,build/}",
"cleanup": "rimraf build/resources/main/static/",
"cypress": "cypress open",
"cypress:audits": "cypress open --config-file cypress-audits.json",
"docker:app:up": "docker-compose -f src/main/docker/app.yml up -d",
"docker:db:up": "echo \"Docker for db no not configured for application formsGov\"",
"docker:keycloak:down": "docker-compose -f src/main/docker/keycloak.yml down -v --remove-orphans",
"docker:keycloak:up": "docker-compose -f src/main/docker/keycloak.yml up -d",
"docker:others:await": "echo \"Waiting for keycloak to start\" && wait-on http-get://localhost:9080/auth/realms/jhipster -t 30000 && echo \"keycloak started\" || echo \"keycloak not running, make sure oauth2 server is running\"",
"docker:others:down": "npm run docker:keycloak:down",
"predocker:others:up": "",
"docker:others:up": "npm run docker:keycloak:up",
"e2e": "npm run e2e:cypress:headed --",
"e2e:cypress": "cypress run --browser chrome --record ${CYPRESS_ENABLE_RECORD:-false}",
"e2e:cypress:audits": "cypress run --browser chrome --record ${CYPRESS_ENABLE_RECORD:-false} --config-file cypress-audits.json",
"e2e:cypress:audits:headless": "npm run e2e:cypress -- --config-file cypress-audits.json",
"e2e:cypress:headed": "npm run e2e:cypress -- --headed",
"e2e:dev": "concurrently -k -s first \"./gradlew\" \"npm run e2e\"",
"e2e:devserver": "concurrently -k -s first \"npm run backend:start\" \"npm start\" \"wait-on http-get://localhost:9000 && npm run e2e:headless -- -c baseUrl=http://localhost:9000\"",
"pree2e:headless": "npm run ci:server:await",
"e2e:headless": "npm run e2e:cypress --",
"java:docker": "./gradlew bootJar jibDockerBuild",
"java:docker:dev": "npm run java:docker -- -Pdev,webapp",
"java:docker:prod": "npm run java:docker -- -Pprod",
"java:jar": "./gradlew bootJar -x test -x integrationTest",
"java:jar:dev": "npm run java:jar -- -Pdev,webapp",
"java:jar:prod": "npm run java:jar -- -Pprod",
"java:war": "./gradlew bootWar -Pwar -x test -x integrationTest",
"java:war:dev": "npm run java:war -- -Pdev,webapp",
"java:war:prod": "npm run java:war -- -Pprod",
"jest": "jest --coverage --logHeapUsage --maxWorkers=2 --config jest.conf.js",
"jest:update": "npm run jest -- --updateSnapshot",
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
"lint:fix": "npm run lint -- --fix",
"prepare": "husky install",
"prettier:check": "prettier --check \"{,src/**/,webpack/}*.{md,json,yml,html,cjs,mjs,js,ts,tsx,css,scss,java}\"",
"prettier:format": "prettier --write \"{,src/**/,webpack/}*.{md,json,yml,html,cjs,mjs,js,ts,tsx,css,scss,java}\"",
"start": "npm run webapp:dev --",
"start-tls": "npm run webapp:dev -- --env.tls",
"pretest": "npm run lint",
"test": "npm run jest --",
"test-ci": "npm run lint && npm run jest:update --",
"test:watch": "npm run jest -- --watch",
"webapp:build": "npm run clean-www && npm run webapp:build:dev --",
"webapp:build:dev": "webpack --config webpack/webpack.dev.js --env stats=minimal",
"webapp:build:prod": "webpack --config webpack/webpack.prod.js --progress=profile",
"webapp:dev": "npm run webpack-dev-server -- --config webpack/webpack.dev.js --env stats=minimal",
"webapp:dev-verbose": "npm run webpack-dev-server -- --config webpack/webpack.dev.js --progress=profile --env stats=normal",
"webapp:prod": "npm run clean-www && npm run webapp:build:prod --",
"webapp:test": "npm run test --",
"webpack-dev-server": "webpack serve"
},
"config": {
"backend_port": "8080",
"default_environment": "prod",
"packaging": "jar"
},
"dependencies": {
"@cmsgov/design-system": "^2.9.0",
"@formio/uswds": "^2.4.0",
"@fortawesome/fontawesome-svg-core": "1.2.36",
"@fortawesome/free-solid-svg-icons": "5.15.4",
"@fortawesome/react-fontawesome": "0.1.16",
"@reduxjs/toolkit": "1.6.2",
"@trussworks/react-uswds": "^2.4.0",
"axios": "0.21.4",
"bootstrap": "4.6.0",
"bootswatch": "5.1.3",
"dayjs": "1.10.7",
"formiojs": "^4.13.8",
"lodash": "4.17.21",
"path-browserify": "1.0.1",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-formio": "^4.3.0",
"react-hook-form": "7.17.4",
"react-iframe": "^1.8.0",
"react-jhipster": "0.17.0",
"react-loadable": "5.5.0",
"react-loading-overlay": "^1.0.1",
"react-redux": "7.2.5",
"react-redux-loading-bar": "5.0.2",
"react-router-dom": "5.3.0",
"react-spinners": "^0.11.0",
"react-toastify": "8.0.3",
"react-transition-group": "4.4.2",
"reactstrap": "8.10.0",
"redux": "4.1.1",
"redux-thunk": "2.3.0",
"tslib": "2.3.1",
"uuid": "8.3.2"
},
"devDependencies": {
"@testing-library/react": "12.1.2",
"@types/jest": "27.0.2",
"@types/lodash": "4.14.175",
"@types/node": "16.11.1",
"@types/react": "17.0.30",
"@types/react-dom": "17.0.9",
"@types/react-redux": "7.1.19",
"@types/react-router-dom": "5.3.1",
"@types/redux": "3.6.31",
"@types/webpack-env": "1.16.3",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"autoprefixer": "10.3.7",
"browser-sync": "2.27.5",
"browser-sync-webpack-plugin": "2.3.0",
"concurrently": "6.3.0",
"copy-webpack-plugin": "9.0.1",
"core-js": "3.18.3",
"cross-env": "7.0.3",
"css-loader": "6.4.0",
"css-minimizer-webpack-plugin": "3.1.1",
"cypress": "8.6.0",
"cypress-audit": "1.1.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-cypress": "2.12.1",
"eslint-plugin-react": "7.26.1",
"eslint-webpack-plugin": "3.0.1",
"fork-ts-checker-webpack-plugin": "6.3.4",
"generator-jhipster": "7.3.1",
"html-webpack-plugin": "5.4.0",
"husky": "7.0.2",
"identity-obj-proxy": "3.0.0",
"jest": "27.3.0",
"jest-junit": "13.0.0",
"jest-sonar-reporter": "2.0.0",
"json-loader": "0.5.7",
"lighthouse": "8.5.1",
"lint-staged": "11.2.3",
"mini-css-extract-plugin": "2.4.2",
"postcss-loader": "6.2.0",
"prettier": "2.4.1",
"prettier-plugin-java": "1.5.0",
"prettier-plugin-packagejson": "2.2.13",
"react-infinite-scroller": "1.2.4",
"redux-mock-store": "1.5.4",
"rimraf": "3.0.2",
"sass": "1.43.2",
"sass-loader": "12.2.0",
"simple-progress-webpack-plugin": "2.0.0",
"sinon": "11.1.2",
"source-map-loader": "3.0.0",
"sourcemap-istanbul-instrumenter-loader": "0.2.0",
"style-loader": "3.3.0",
"swagger-ui-dist": "4.1.3",
"terser-webpack-plugin": "5.2.4",
"thread-loader": "3.0.4",
"ts-jest": "27.0.7",
"ts-loader": "9.2.6",
"typescript": "4.4.4",
"wait-on": "6.0.0",
"webpack": "5.58.2",
"webpack-cli": "4.9.1",
"webpack-dev-server": "4.3.1",
"webpack-merge": "5.8.0",
"webpack-notifier": "1.14.1",
"workbox-webpack-plugin": "6.3.0"
},
"engines": {
"node": ">=14.17.6"
},
"cacheDirectories": [
"node_modules"
],
"jestSonar": {
"reportPath": "build/test-results/jest",
"reportFile": "TESTS-results-sonar.xml"
}
}