-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
103 lines (103 loc) · 4.59 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
{
"name": "ecobalyse",
"version": "2.3.0",
"description": "Accélérer l'affichage environnemental de la filière textile française",
"author": "Ecobalyse <[email protected]>",
"license": "MIT",
"private": true,
"engines": {
"node": "20.17"
},
"browserslist": [
"last 2 versions",
"not dead"
],
"scripts": {
"build": "npm run server:build && rimraf dist && npm run build:init && parcel build index.html --public-url ./",
"build:init": "./bin/update-version.sh && mkdir -p dist && cp -r public/* dist/ && npm run db:build",
"build:standalone-app": "npm run build && npm run server:build && cp server-app.js dist/ && cp openapi.yaml dist/",
"decrypt": "./bin/decrypt",
"encrypt": "./bin/encrypt",
"db:build": "./bin/build-db && npm run db:check",
"db:check": "elm make src/CheckDb.elm --optimize --output=check-db-app.js 1> /dev/null && node check-db.js",
"db:validate": "npx ajv validate --spec=draft2019 -c ajv-formats -s tests/processes-schema.json -d 'public/data/**/processes**.json'",
"lint:openapi": "npx swagger-cli validate openapi.yaml",
"lint:prettier": "prettier --config .prettierrc --check",
"lint:prettier:all": "npm run lint:prettier -- .",
"lint:ruff:all": "npm run lint:ruff:check && npm run lint:ruff:format",
"lint:ruff:check": "pipenv run ruff check --force-exclude --extend-select I",
"lint:ruff:format": "npm run fix:ruff:format -- --check",
"lint:all": "npm run lint:prettier:all && npm run lint:ruff:all && npm run lint:openapi",
"fix:prettier": "npm run lint:prettier -- --write",
"fix:prettier:all": "npm run lint:prettier -- --write .",
"fix:ruff:all": "npm run fix:ruff:check && npm run fix:ruff:format",
"fix:ruff:check": "npm run lint:ruff:check -- --fix",
"fix:ruff:format": "pipenv run ruff format --force-exclude",
"fix:all": "npm run fix:ruff:all && npm run fix:prettier:all",
"format:json": "npx [email protected] --write . && pipenv run ruff check --select I --fix && pipenv run ruff format",
"postinstall": "./bin/run-transcrypt.sh",
"processes:build": "elm make src/ComputeAggregated.elm --output=compute-aggregated-app.js 1> /dev/null && node compute-aggregated.js",
"server:build": "npm run db:build && elm make src/Server.elm --optimize --output=server-app.js",
"server:dev": "npm run server:build && nodemon server.js --config nodemon.json",
"server:debug": "elm make src/Server.elm --output=server-app.js && nodemon server.js --config nodemon.json",
"server:start": "node server.js",
"start:backend": "cd backend && pipenv run ./update.sh && pipenv run ./manage.py runserver 0.0.0.0:8002",
"start:parcel": "parcel serve index.html --no-cache",
"start:dev": "npm run build:init && concurrently -k -n \"parcel,server,backend\" -c \"green,cyan,yellow\" \"npm run start:parcel\" \"npm run server:dev\" \"npm run start:backend\"",
"start": "PARCEL_ELM_NO_DEBUG=1 npm run start:dev",
"test:backend": "pipenv run pytest",
"test:client": "NODE_ENV=test npm run db:build && npx elm-test",
"test:review": "npx elm-review",
"test:server": "npm run server:build && NODE_ENV=test jest",
"test:server-ci": "concurrently -k -s first -n \"django,test\" \"npm run start:backend\" \"while ! lsof -i:8002; do sleep 1; done && npm run server:build && jest\"",
"test": "npm run test:client && npm run test:backend && npm run test:server"
},
"dependencies": {
"@sentry/browser": "^8.44.0",
"@sentry/node": "^8.44.0",
"@sentry/profiling-node": "^8.44.0",
"@sentry/tracing": "^7.119.0",
"cors": "^2.8.5",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"express-rate-limit": "^7.4.1",
"helmet": "^8.0.0",
"js-yaml": "^4.1.0",
"piwik": "^1.0.10"
},
"devDependencies": {
"@apidevtools/swagger-cli": "^4.0.4",
"@parcel/transformer-elm": "^2.13.2",
"@parcel/transformer-image": "^2.13.2",
"@parcel/transformer-sass": "^2.13.2",
"ajv-cli": "^5.0.0",
"ajv-formats": "^3.0.1",
"bootstrap": "^5.3.3",
"concurrently": "^9.1.0",
"elm": "^0.19.1-6",
"elm-format": "^0.8.7",
"elm-json": "^0.2.13",
"elm-review": "^2.12.0",
"elm-test": "0.19.1-revision12",
"highcharts": "^11.4.8",
"jest": "^29.7.0",
"nodemon": "^3.1.7",
"npm-check-updates": "^17.1.11",
"parcel": "^2.13.2",
"prettier": "^3.4.2",
"prettier-plugin-sort-json": "^4.0.0",
"process": "^0.11.10",
"rimraf": "^6.0.1",
"supertest": "^7.0.0",
"svgo": "^3.3.2",
"uuid": "^11.0.3"
},
"cacheDirectories": [
"node_modules",
"elm-stuff",
".elm"
],
"jest": {
"testTimeout": 100
}
}