From 65b14f083acc78c9e1bf0de8127ac80e83e94bf0 Mon Sep 17 00:00:00 2001 From: Nicolas Lepage <19571875+nlepage@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:16:55 +0100 Subject: [PATCH] feat: ci:front and build:front tasks use new env variables CI_FRONT_TASKS and BUILD_FRONT_TASKS --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3398cb575a1..8748eaae68d 100644 --- a/package.json +++ b/package.json @@ -25,19 +25,21 @@ "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:front": "run-p --print-label --max-parallel 2 ${BUILD_FRONT_TASKS-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", + "build:none": "mkdir -p dist && echo No build task", "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:front": "run-p --print-label ${CI_FRONT_TASKS-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", + "ci:none": "echo No ci task", "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", @@ -106,4 +108,4 @@ "peerDependencies": { "markdown-link-check": "^3.8.6" } -} +} \ No newline at end of file