-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathpackage.json
More file actions
234 lines (234 loc) · 9.84 KB
/
Copy pathpackage.json
File metadata and controls
234 lines (234 loc) · 9.84 KB
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
{
"name": "pages-core",
"private": true,
"version": "0.27.0",
"description": "",
"keywords": [],
"dependencies": {
"@aws-sdk/client-s3": "^3.1011.0",
"@bull-board/api": "6.6.1",
"@bull-board/express": "^6.14.2",
"@fastify/busboy": "^3.1.1",
"@json2csv/plainjs": "^7.0.1",
"@octokit/rest": "20.1.2",
"@smithy/config-resolver": "^4.4.0",
"@supercharge/promise-pool": "^1.5.0",
"@tanstack/react-query": "^5.59.20",
"@uswds/uswds": "^3.8.1",
"axios": "^1.18.0",
"bullmq": "^5.7.0",
"cfenv": "^1.2.3",
"connect-flash": "^0.1.1",
"connect-redis": "^6.1.1",
"connect-session-sequelize": "^7.1.7",
"cors": "^2.8.5",
"csurf": "^1.2.2",
"db-migrate": "^0.11.14",
"db-migrate-pg": "^1.5.2",
"deep-extend": "^0.6",
"express": "^5.0.1",
"express-rate-limit": "^7.4.1",
"express-session": "^1.18.2",
"express-slow-down": "^2.0.3",
"express-winston": "^4.2.0",
"fast-xml-parser": "^5.3.6",
"globals": "^15.12.0",
"helmet": "^4.6.0",
"inflection": "^1.13.1",
"ioredis": "^4.27.6",
"js-yaml": "^4.3.1",
"json-templates": "^5.1.0",
"jsonwebtoken": "^9.0.3",
"lodash": "^4.17.22",
"lodash.merge": "^4.6.2",
"moment": "^2.29.2",
"multer": "^2.2.0",
"nunjucks": "^3.2.4",
"passport": "^0.7.0",
"passport-github": "^1.1.0",
"passport-gitlab2": "^5.0.0",
"passport-oauth2": "^1.8.0",
"pretty-bytes": "^6.1.1",
"rate-limit-redis": "^4.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-highlight": "^0.15.0",
"react-notification-system-redux": "^2.0.1",
"react-redux": "8.1.2",
"react-router-dom": "^6.30.3",
"redux": "^4.2.1",
"redux-devtools-extension": "^2.13.2",
"redux-form": "^8.3.10",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0",
"sequelize": "^6.37.8",
"urlsafe-base64": "^1.0.0",
"validator": "^13.15.23",
"winston": "^3.11.0",
"yamljs": "^0.3.0"
},
"scripts": {
"build": "webpack --config webpack.config.js",
"build:dev": "NODE_ENV='development' webpack --config webpack.config.js",
"build:test": "NODE_ENV='test' webpack --config webpack.config.js",
"dc:build": "docker compose build",
"dc:up": "docker compose up",
"dc:dev": "docker compose -f ./docker-compose.yml -f ./docker-compose.uaa.yml --env-file ./services/local/docker.env up",
"dc:down": "docker compose down",
"dc:app:install": "docker compose run --rm app npm install",
"dc:admin:install": "docker compose run --rm admin-client npm install",
"dc:migrate": "docker compose --env-file ./services/local/docker.env run --rm app npm run migrate:up",
"dc:seed": "docker compose --env-file ./services/local/docker.env run --rm app npm run create-dev-data",
"dc:test": "docker compose --env-file ./services/local/docker.env run --rm app npm run test",
"dc:lint": "docker compose run --rm app npm run lint",
"dc:format": "docker compose run --rm app npm run format",
"dc:coverage": "docker compose run --rm app npm run test:cover",
"dc:coverage:serve": "docker compose run --rm --service-ports app npm run serve-coverage",
"dc:uaa:build": "docker compose -f ./docker-compose.yml -f ./docker-compose.uaa.yml --env-file ./services/local/docker.env build",
"dc:uaa:up": "docker compose -f ./docker-compose.yml -f ./docker-compose.uaa.yml --env-file ./services/local/docker.env up",
"dc:gitlab:build": "docker compose -f ./docker-compose.yml -f ./docker-compose.uaa.yml -f ./docker-compose.gitlab.yml --env-file ./services/local/docker.env build",
"dc:gitlab:up": "docker compose -f ./docker-compose.yml -f ./docker-compose.uaa.yml -f ./docker-compose.gitlab.yml --env-file ./services/local/docker.env up",
"start": "node index.js",
"start-workers": "node ./api/workers/index.js",
"start-bull-board:cg": "node -r ./api/bull-board/cfEnv.js ./api/bull-board/index.js",
"start-bull-board:local": "DOTENV_CONFIG_PATH=./api/bull-board/.env node -r dotenv/config ./api/bull-board/index.js",
"start-route-service": "node ./api/route-service/app.js",
"debug": "node --inspect index.js",
"watch:api": "nodemon index.js --config nodemon.json",
"watch:frontend": "webpack --config webpack.config.js --watch",
"watch": "NODE_ENV=development concurrently \"npm run watch:api\" \"npm run watch:frontend\"",
"test": "npm run test:prepare && npm run test:server && npm run test:rtl",
"test:cleandb": "NODE_ENV=test node migrate.js reset",
"test:prepare": "NODE_ENV=test npm run migrate:up && npm run build:test",
"test:server": "NODE_ENV=test JWT_SECRET=shh USER_AUDITOR=user_auditor mocha --exit --timeout 2500 --recursive ./test/api",
"test:server:cover": "NODE_ENV=test JWT_SECRET=shh USER_AUDITOR=user_auditor nyc --report-dir ./coverage/server mocha --exit --timeout 2500 --recursive ./test/api",
"test:server:file": "NODE_ENV=test JWT_SECRET=shh USER_AUDITOR=user_auditor mocha --exit --timeout 2500 test/api/bootstrap.test.js",
"test:server:watch": "NODE_ENV=test JWT_SECRET=shh USER_AUDITOR=user_auditor mocha --timeout 2500 --recursive ./test/api -w",
"test:rtl": "jest --testRegex='[^t]/frontend/.*\\.test\\.jsx?' --coverage=true --collectCoverageFrom='frontend/**/*.{js,jsx}'",
"test:rtl:file": "jest",
"lint": "eslint",
"format": "prettier . --write",
"format:check": "prettier . --check",
"format:lint": "npm run format && npm run lint",
"format:check:lint": "npm run format:check && npm run lint",
"migrate:create": "node migrate.js create",
"migrate:up": "node migrate.js up || true",
"migrate:down": "node migrate.js down",
"migrate:test": "NODE_ENV=test node migrate.js up --dry-run",
"migrate:test:up": "NODE_ENV=test node migrate.js up",
"migrate:test:down": "NODE_ENV=test node migrate.js down",
"migrate:reset": "node migrate.js reset",
"export:sites": "node ./scripts/exportSitesAsCsv.js",
"serve-coverage": "serve -n -l 8080 ./coverage",
"update-local-config": "node ./scripts/update-local-config.js",
"create-dev-data": "NODE_ENV=development DOTENV_CONFIG_PATH=./services/local/docker.env node -r dotenv/config ./scripts/create-dev-data.js",
"update-proxy-db": "node ./scripts/proxy-edge.js",
"archive-build-logs": "node ./scripts/archive-build-logs.js",
"migrate-build-logs": "node ./scripts/migrate-build-logs.js",
"migrate-site-repo": "node ./scripts/migrate-site-repo.js",
"send-email": "node ./scripts/send-email.js",
"bootstrap-admins": "node ./scripts/bootstrap-admins.js",
"remove-bucket-website-configs": "node ./scripts/remove-bucket-website-configs.js",
"check-object-paths": "node ./scripts/check-object-paths.js",
"queued-builds-check": "node ./scripts/queued-builds-check.js",
"test:e2e": "npm run playwright test",
"create-test-users": "DOTENV_CONFIG_PATH=.env node -r dotenv/config ./scripts/create-test-users.js",
"remove-test-users": "DOTENV_CONFIG_PATH=.env node -r dotenv/config ./scripts/remove-test-users.js",
"run-scans-for-build": "node ./scripts/run-scans-for-build.js",
"mock-cf-api": "DOTENV_CONFIG_PATH=./services/local/docker.env node -r dotenv/config --watch-path=./services/local/mock-cf-api ./services/local/mock-cf-api/index.js"
},
"main": "index.js",
"repository": {
"type": "git",
"url": "git://github.com/cloud.gov/pages-core.git"
},
"author": "dhcole",
"license": "CC0-1.0",
"devDependencies": {
"@babel/core": "^7.23.3",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.23.3",
"@babel/preset-react": "^7.23.3",
"@babel/register": "^7.22.15",
"@playwright/test": "^1.57.0",
"@smithy/util-stream": "^3.1.9",
"@svgr/webpack": "8.1.0",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^20.9.0",
"@typescript-eslint/utils": "^8.58.0",
"autoprefixer": "^10.4.16",
"aws-sdk-client-mock": "^4.0.2",
"babel-loader": "^9",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.1",
"concurrently": "^10.0.3",
"cookie": "^0.7.0",
"copy-webpack-plugin": "^14.0.0",
"css-loader": "^6.8.1",
"date-fns": "^2.30.0",
"dotenv": "^16.3.1",
"eslint": "9.39.4",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-webpack": "^0.13.9",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-mocha": "^10.5.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-sonarjs": "^3.0.1",
"eslint-plugin-svelte": "^2.46.1",
"eslint-plugin-testing-library": "^6.4.0",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.0.5",
"jest-fixed-jsdom": "^0.0.9",
"json-schema-deref-sync": "^0.14.0",
"jsonschema": "^1.4.0",
"mini-css-extract-plugin": "^2.7.6",
"mocha": "11.7.5",
"mock-fs": "^4.13.0",
"nock": "14.0.1",
"nodemon": "^3.0.1",
"nyc": "^15.1.0",
"playwright": "^1.57.0",
"postcss": "^8.5.1",
"postcss-loader": "^8.1.1",
"prettier": "^3.3.3",
"promise-props": "^1.0.0",
"prop-types": "^15.5.10",
"proxyquire": "^2.1.3",
"sass": "^1.89.2",
"sass-loader": "^16.0.5",
"serve": "^14.2.6",
"sinon": "^10.0.0",
"supertest": "^7.1.4",
"webpack": "^5.x.x",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^6.0.1",
"webpack-manifest-plugin": "^5.0.1"
},
"engines": {
"node": "^24.x.x",
"npm": "^11.10.0"
},
"lint-staged": {
"*.js": "eslint",
"*.jsx": "eslint"
},
"resolutions": {
"**/cheerio": "1.0.0-rc.12",
"cookie": "^0.7.0",
"nanoid": "^3.3.8",
"lodash": "^4.17.22",
"js-yaml": "^4.1.1",
"@smithy/config-resolver": "^4.4.0",
"fast-xml-parser": "^5.3.6",
"dottie": "^2.0.7",
"qs": "^6.14.2",
"diff": "^4.0.4",
"svgo": "^3.3.4",
"immutable": "^5.1.8",
"flatted": "^3.4.0"
}
}