-
Notifications
You must be signed in to change notification settings - Fork 57
/
package.json
109 lines (109 loc) · 5.13 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
{
"name": "pix",
"version": "4.245.0",
"private": false,
"description": "Plateforme d'évaluation et de certification des compétences numériques",
"license": "AGPL-3.0",
"author": "GIP Pix",
"engines": {
"node": "^20.18.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/1024pix/pix.git"
},
"directories": {
"doc": "docs",
"test": "tests"
},
"homepage": "https://github.com/1024pix/pix#readme",
"bugs": {
"url": "https://github.com/1024pix/pix/issues"
},
"main": "index.js",
"scripts": {
"build": "run-s ci:front build:front",
"build:admin": "(cd admin && npm run build) && mkdir -p dist && cp -R admin/dist dist/admin",
"build:certif": "(cd certif && npm run build) && mkdir -p dist && cp -R certif/dist dist/certif",
"build:front": "run-p --print-label --max-parallel 2 build:mon-pix build:orga build:certif build:admin build:junior",
"build:mon-pix": "(cd mon-pix && npm run build) && mkdir -p dist && cp -R mon-pix/dist dist/app",
"build:orga": "(cd orga && npm run build) && mkdir -p dist && cp -R orga/dist dist/orga",
"build:junior": "(cd junior && npm run build) && mkdir -p dist && cp -R junior/dist dist/junior",
"ci:admin": "cd admin && npm ci",
"ci:all": "run-p --print-label ci:api ci:front ci:audit-logger",
"ci:api": "cd api && npm ci",
"ci:audit-logger": "cd audit-logger && npm ci",
"ci:certif": "cd certif && npm ci",
"ci:front": "run-p --print-label ci:mon-pix ci:orga ci:certif ci:admin ci:junior",
"ci:mon-pix": "cd mon-pix && npm ci",
"ci:orga": "cd orga && npm ci",
"ci:junior": "cd junior && npm ci",
"compute-lead-times": "node ./scripts/compute-lead-times",
"clean": "run-p --print-label clean:api clean:audit-logger clean:mon-pix clean:orga clean:certif clean:admin clean:junior && npm run clean:root",
"clean:admin": "cd admin && npm run clean",
"clean:api": "cd api && npm run clean",
"clean:audit-logger": "cd audit-logger && npm run clean",
"clean:certif": "cd certif && npm run clean",
"clean:mon-pix": "cd mon-pix && npm run clean",
"clean:orga": "cd orga && npm run clean",
"clean:junior": "cd junior && npm run clean",
"clean:root": "rm -rf node_modules && rm -rf tmp",
"configure": "./scripts/configure.sh",
"lint": "run-p --print-label lint:*",
"lint:admin": "cd admin && npm run lint",
"lint:api": "cd api && npm run lint",
"lint:audit-logger": "cd audit-logger && npm run lint",
"lint:certif": "cd certif && npm run lint",
"lint:mon-pix": "cd mon-pix && npm run lint",
"lint:orga": "cd orga && npm run lint",
"lint:junior": "cd junior && npm run lint",
"lint:scripts": "eslint scripts",
"lint:yaml": "run-p lint:yaml:*",
"lint:yaml:dotfiles": "eslint --ext .yml .circleci && eslint --ext .yaml .github",
"lint:yaml:files": "eslint --ext .yaml --ignore-pattern compose.yaml ./*.yaml",
"lint:docs": "find ./docs -type f -name '*.md' | xargs -L1 markdown-link-check --quiet --config ./docs/link--check-config.json ",
"local:add-optional-checks": "husky",
"local:remove-optional-checks": "git config --unset core.hooksPath",
"preinstall": "npx check-engine",
"dev": "run-p --print-label dev:api dev:mon-pix dev:orga dev:junior dev:certif dev:admin",
"dev:admin": "cd admin && npm run dev",
"dev:api": "cd api && npm run dev",
"dev:certif": "cd certif && npm run dev",
"dev:mon-pix": "cd mon-pix && npm run dev",
"dev:orga": "cd orga && npm run dev",
"dev:junior": "cd junior && npm run dev",
"start": "npm run dev",
"start:admin": "npm run dev:admin",
"start:api": "npm run dev:api",
"start:certif": "npm run dev:certif",
"start:mon-pix": "npm run dev:mon-pix",
"start:orga": "npm run dev:orga",
"start:junior": "npm run dev:junior",
"test": "run-p --print-label test:*",
"test:admin": "cd admin && npm test",
"test:api": "cd api && npm run lint && npm test",
"test:api:debug": "cd api && npm run test:api:debug",
"test:certif": "cd certif && npm test",
"test:mon-pix": "cd mon-pix && npm test",
"test:orga": "cd orga && npm test",
"test:junior": "cd junior && npm test",
"domains:install": "./scripts/local-domains/install",
"domains:start": "cd ./scripts/local-domains/ && docker compose up -d",
"domains:stop": "cd ./scripts/local-domains/ && docker compose down",
"domains:trust-self-signed-certificate:mac": "cd ./scripts/local-domains/ && docker compose cp caddy:/data/caddy/pki/authorities/local/root.crt /tmp/root.crt && sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /tmp/root.crt",
"domains:trust-self-signed-certificate:linux": "cd ./scripts/local-domains/ && sudo docker cp caddy:/data/caddy/pki/authorities/local/root.crt /usr/local/share/ca-certificates/root.crt && sudo update-ca-certificates --fresh"
},
"dependencies": {
"npm-run-all2": "^6.0.0"
},
"devDependencies": {
"@1024pix/eslint-config": "^1.3.8",
"eslint": "^8.57.0",
"eslint-plugin-mocha": "^10.0.0",
"husky": "^9.0.0",
"lint-staged": "^15.0.0"
},
"peerDependencies": {
"markdown-link-check": "^3.8.6"
}
}