forked from MTES-MCT/potentiel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
202 lines (202 loc) · 8.51 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
200
201
202
{
"name": "potentiel.beta.gouv.fr",
"version": "0.0.0",
"sideEffects": false,
"description": "Suivi des Projets d'Energies Renouvelables",
"main": "index.js",
"workspaces": [
"./packages/libraries/tsconfig/",
"./packages/libraries/keycloak-cjs/",
"./packages/libraries/monitoring/",
"./packages/libraries/monads/",
"./packages/libraries/core-domain/",
"./packages/libraries/core-domain-views/",
"./packages/libraries/pg-helpers/",
"./packages/libraries/pg-event-sourcing/",
"./packages/libraries/file-storage/",
"./packages/libraries/email-sender/",
"./packages/libraries/legacy-permissions",
"./packages/libraries/mediateur-middlewares",
"./packages/libraries/projection",
"./packages/domain/core",
"./packages/domain/core-views/",
"./packages/domain/common",
"./packages/domain/core",
"./packages/domain/common",
"./packages/domain/utilisateur",
"./packages/domain/document",
"./packages/domain/candidature",
"./packages/domain/appel-offre",
"./packages/domain/lauréat",
"./packages/domain/tâche",
"./packages/domain-usecases/",
"./packages/domain-views/",
"./packages/specifications",
"./packages/domain-inmemory-referential/",
"./packages/infrastructure/pg-event-sourcing",
"./packages/infrastructure/pg-projections",
"./packages/infrastructure/document-builder",
"./packages/infrastructure/domain-adapters",
"./packages/infrastructure/notifications",
"./packages/infrastructure/projectors",
"./packages/applications/*"
],
"scripts": {
"type:check": "tsc --noEmit",
"build": "npm run build:packages && npm run build:front && npm run build:css && npm run build:back && npm run build:migrations",
"build:back": "tsc --build tsconfig.build.json && cp -R src/public dist/src && cp -R src/views/template dist/src/views",
"build:css": "tailwindcss -i ./src/views/index.css -o ./src/public/css/index.css",
"build:front": "webpack --config=webpack.config.js",
"build:migrations": "tsc --build tsconfig.migrations.json",
"build:packages": "npm run build --workspaces --if-present",
"build-storybook": "storybook build",
"prepare": "husky install",
"lint": "eslint ./src --ext .ts,.tsx",
"format": "prettier '**/*.{ts,tsx,css}' --write",
"migrate": "sequelize-cli db:migrate",
"migrate:undo": "sequelize-cli db:migrate:undo",
"seed": "sequelize-cli db:seed:all",
"dev": "npm run dev --workspaces --if-present",
"start:dev": "docker compose --profile app up -d && until docker exec potentiel_db pg_isready -U potadmindb -d potentiel; do sleep 1; done && npm run migrate && npm run seed && npm run build:packages && concurrently \"ts-node-dev --transpile-only src/index.ts\" \"webpack --config=webpack.config.js --watch\" \"npm run build:css -- --watch\"",
"stop:dev": "docker compose --profile app down --remove-orphans",
"start": "npm run migrate && node ./dist/src/index.js",
"specs": "export APPLICATION_STAGE=test && export COMPOSE_PROJECT_NAME=potentiel_tests && docker compose --profile test down --remove-orphans && docker compose --profile test up -d && until docker exec potentiel_db_tests_integration pg_isready -U testuser -d potentiel_test; do sleep 1; done && npm run build:packages && npm run build:migrations && npm run migrate && npm run specs --workspaces --if-present -- --tags \"not @NotImplemented\"",
"specs:select": "npm run specs -- --tags @select",
"version": "ts-node-dev .github/getPatchVersion.ts",
"test:legacy": "export APPLICATION_STAGE=test && export COMPOSE_PROJECT_NAME=potentiel_tests && docker compose --profile test down --remove-orphans && docker compose --profile test up -d && until docker exec potentiel_db_tests_integration pg_isready -U testuser -d potentiel_test; do sleep 1; done && npm run build:packages && npm run build:migrations && npm run migrate && jest --config=jest.config.js --detectOpenHandles",
"test:packages": "export APPLICATION_STAGE=test && export COMPOSE_PROJECT_NAME=potentiel_tests && docker compose --profile test down --remove-orphans && docker compose --profile test up -d && until docker exec potentiel_db_tests_integration pg_isready -U testuser -d potentiel_test; do sleep 1; done && npm run build:packages && npm run build:migrations && npm run migrate && npm run test --workspaces --if-present",
"test:dev:legacy": "export APPLICATION_STAGE=test && jest --config=jest.config.js --detectOpenHandles",
"storybook": "export BASE_URL=http://localhost:6006 && storybook dev -p 6006"
},
"repository": {
"type": "git",
"url": "git+https://github.com/MTES-MCT/potentiel.git"
},
"author": "L'équipe Potentiel <[email protected]> (https://potentiel.beta.gouv.fr/)",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/MTES-MCT/potentiel/issues"
},
"homepage": "https://github.com/MTES-MCT/potentiel#readme",
"dependencies": {
"@aws-sdk/client-s3": "^3.405.0",
"@aws-sdk/lib-storage": "^3.405.0",
"@headlessui/react": "^1.7.17",
"@hqoss/monads": "^0.5.0",
"@json2csv/plainjs": "^6.1.3",
"@keycloak/keycloak-admin-client": "^21.1.2",
"@react-pdf/renderer": "^3.1.13",
"@sentry/node": "^7.66.0",
"@types/mime-types": "^2.1.1",
"aws-sdk": "^2.1450.0",
"chalk": "^5.3.0",
"concat-stream": "^2.0.0",
"connect-ensure-login": "^0.1.1",
"connect-session-sequelize": "^7.1.7",
"cookie-parser": "^1.4.6",
"csv-parse": "^5.5.0",
"date-fns": "^2.30.0",
"docxtemplater": "^3.38.0",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"express-async-handler": "^1.2.0",
"express-session": "^1.17.3",
"helmet": "^6.2.0",
"iconv-lite": "^0.6.3",
"ioredis": "^4.28.5",
"isemail": "^3.2.0",
"json2csv": "^5.0.7",
"jsonwebtoken": "^9.0.2",
"keycloak-connect": "^21.1.2",
"mediateur": "^0.1.2",
"mime-types": "^2.1.35",
"minisearch": "^5.1.0",
"mkdirp": "^1.0.4",
"moment": "^2.29.4",
"moment-timezone": "^0.5.43",
"morgan": "^1.10.0",
"multer": "^1.4.5-lts.1",
"neverthrow": "^6.0.0",
"next": "^14.0.1",
"node-mailjet": "^6.0.5",
"passport": "^0.6.0",
"passport-local": "^1.0.0",
"path-browserify": "^1.0.1",
"pg": "^8.11.3",
"pg-connection-string": "^2.6.2",
"pg-hstore": "^2.3.4",
"pizzip": "^3.1.4",
"querystring": "^0.2.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.11.0",
"runtypes": "^6.7.0",
"sanitize-filename": "^1.6.3",
"sequelize": "^6.32.1",
"sequelize-cli": "^6.6.1",
"tailwindcss": "^3.3.3",
"util": "^0.12.5",
"utility-types": "^3.10.0",
"uuid": "^9.0.0",
"winston": "^3.10.0",
"yup": "^0.32.11"
},
"devDependencies": {
"@fullhuman/postcss-purgecss": "^5.0.0",
"@jest/globals": "^29.6.4",
"@storybook/addon-actions": "^7.4.5",
"@storybook/addon-essentials": "^7.4.5",
"@storybook/addon-interactions": "^7.4.5",
"@storybook/addon-links": "^7.4.5",
"@storybook/react": "^7.4.5",
"@storybook/react-webpack5": "^7.4.5",
"@storybook/testing-library": "^0.2.1",
"@types/express": "^4.17.17",
"@types/express-session": "^1.17.7",
"@types/ioredis": "^4.28.10",
"@types/morgan": "^1.9.5",
"@types/multer": "^1.4.7",
"@types/node": "^18.17.14",
"@types/node-mailjet": "^3.3.9",
"@types/passport": "^1.0.12",
"@types/pg": "^8.10.2",
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"@types/uuid": "^9.0.3",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"concurrently": "^7.6.0",
"dotenv-cli": "^6.0.0",
"esbuild-loader": "^2.21.0",
"eslint": "^8.48.0",
"eslint-config-prettier": "^8.10.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-storybook": "^0.6.14",
"eslint-plugin-unused-imports": "^2.0.0",
"glob": "^8.1.0",
"husky": "^8.0.3",
"jest": "^29.6.4",
"jest-diff": "^29.6.4",
"lint-staged": "^13.3.0",
"node-polyfill-webpack-plugin": "^2.0.1",
"postcss-cli": "^10.1.0",
"postcss-import": "^15.1.0",
"postcss-prefix-selector": "^1.16.0",
"prettier": "^2.8.8",
"pretty-format": "^29.6.3",
"prompts": "^2.4.2",
"storybook": "^7.4.5",
"storybook-addon-turbo-build": "^2.0.1",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-node-dev": "^2.0.0",
"typescript": "^5.2.2",
"wait-for-expect": "^3.0.2",
"webpack": "^5.88.2",
"webpack-cli": "^4.10.0"
},
"engines": {
"node": "^18.0.0"
}
}