Skip to content

Commit

Permalink
feat: set up pnpm in root package.json
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Petetot <[email protected]>
  • Loading branch information
er-lim and bpetetot committed Dec 17, 2024
1 parent b08dfe5 commit 8b27216
Showing 1 changed file with 13 additions and 56 deletions.
69 changes: 13 additions & 56 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,71 +22,28 @@
},
"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",
"prebuild": "mkdir -p dist",
"build": "pnpm --parallel --recursive --if-present build && cp -R admin/dist dist/admin && cp -R junior/dist dist/junior && cp -R mon-pix/dist dist/app && cp -R orga/dist dist/orga && cp -R certif/dist dist/certif",
"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": "pnpm clean:workspaces && pnpm clean:root",
"clean:workspaces": "pnpm --parallel --recursive --if-present 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": "pnpm lint:*",
"lint:scripts": "eslint scripts",
"lint:yaml": "run-p lint:yaml:*",
"lint:yaml": "pnpm /^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",
"preinstall": "pnpm dlx check-engine",
"dev": "pnpm --parallel --recursive --if-present dev",
"start": "pnpm --parallel --recursive --if-present start",
"test": "pnpm /^test:.*/",
"test:packages": "pnpm --filter test --workspaces --if-present",
"test:api": "pnpm --filter api lint && pnpm --filter api test",
"test:api:debug": "pnpm --filter api test:api:debug",
"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",
Expand Down

0 comments on commit 8b27216

Please sign in to comment.