From 33a651aac29ca5ff77610dbc34eb3fc4c9ff4be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20B=C3=A9gaudeau?= Date: Thu, 2 Jan 2025 15:52:37 +0100 Subject: [PATCH] [releng] Ensure that the turporepo start task is marked as persistent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Bégaudeau --- CHANGELOG.adoc | 1 + .../charts/frontend/sirius-components-charts/package.json | 2 +- packages/core/frontend/sirius-components-core/package.json | 2 +- .../core/frontend/sirius-components-omnibox/package.json | 2 +- packages/deck/frontend/sirius-components-deck/package.json | 2 +- .../frontend/sirius-components-diagrams/package.json | 2 +- .../sirius-components-formdescriptioneditors/package.json | 2 +- .../forms/frontend/sirius-components-forms/package.json | 2 +- .../sirius-components-widget-reference/package.json | 2 +- .../gantt/frontend/sirius-components-gantt/package.json | 2 +- .../portals/frontend/sirius-components-portals/package.json | 2 +- .../frontend/sirius-components-selection/package.json | 2 +- .../sirius-web/frontend/sirius-web-application/package.json | 2 +- packages/sirius-web/frontend/sirius-web-papaya/package.json | 2 +- packages/sirius-web/frontend/sirius-web-table/package.json | 2 +- .../tables/frontend/sirius-components-tables/package.json | 2 +- .../trees/frontend/sirius-components-trees/package.json | 2 +- .../frontend/sirius-components-validation/package.json | 2 +- turbo.json | 6 +++++- 19 files changed, 23 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index e7cfdee03a..7a5ee45aa3 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -17,6 +17,7 @@ === Dependency update - [releng] Upgrade `turbo` to version 2.3.3 (from 1.13.3 before). +The `start` task used in our turbo configuration is now marked as `persistent` and as a result we have separated the `start` script from `sirius-web` used to run the frontend in dev from from the `start` script from other packages used to build them in development mode by remaning the later to `build-dev`. === Bug fixes diff --git a/packages/charts/frontend/sirius-components-charts/package.json b/packages/charts/frontend/sirius-components-charts/package.json index da4e451d58..d9a74142a2 100644 --- a/packages/charts/frontend/sirius-components-charts/package.json +++ b/packages/charts/frontend/sirius-components-charts/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/core/frontend/sirius-components-core/package.json b/packages/core/frontend/sirius-components-core/package.json index 778863728b..41bdc3a3e3 100644 --- a/packages/core/frontend/sirius-components-core/package.json +++ b/packages/core/frontend/sirius-components-core/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/core/frontend/sirius-components-omnibox/package.json b/packages/core/frontend/sirius-components-omnibox/package.json index 697ae9a1d5..ea6ea92f74 100644 --- a/packages/core/frontend/sirius-components-omnibox/package.json +++ b/packages/core/frontend/sirius-components-omnibox/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/deck/frontend/sirius-components-deck/package.json b/packages/deck/frontend/sirius-components-deck/package.json index e112d42e57..c21390c08e 100644 --- a/packages/deck/frontend/sirius-components-deck/package.json +++ b/packages/deck/frontend/sirius-components-deck/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/diagrams/frontend/sirius-components-diagrams/package.json b/packages/diagrams/frontend/sirius-components-diagrams/package.json index 737c0471c7..eda542794d 100644 --- a/packages/diagrams/frontend/sirius-components-diagrams/package.json +++ b/packages/diagrams/frontend/sirius-components-diagrams/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/formdescriptioneditors/frontend/sirius-components-formdescriptioneditors/package.json b/packages/formdescriptioneditors/frontend/sirius-components-formdescriptioneditors/package.json index e969703b79..eab3528c82 100644 --- a/packages/formdescriptioneditors/frontend/sirius-components-formdescriptioneditors/package.json +++ b/packages/formdescriptioneditors/frontend/sirius-components-formdescriptioneditors/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/forms/frontend/sirius-components-forms/package.json b/packages/forms/frontend/sirius-components-forms/package.json index 7a2367ae23..50359fa3fd 100644 --- a/packages/forms/frontend/sirius-components-forms/package.json +++ b/packages/forms/frontend/sirius-components-forms/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/forms/frontend/sirius-components-widget-reference/package.json b/packages/forms/frontend/sirius-components-widget-reference/package.json index 7959fc7dd7..baf5366d8f 100644 --- a/packages/forms/frontend/sirius-components-widget-reference/package.json +++ b/packages/forms/frontend/sirius-components-widget-reference/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/gantt/frontend/sirius-components-gantt/package.json b/packages/gantt/frontend/sirius-components-gantt/package.json index a2a6a8662d..b8f81034b0 100644 --- a/packages/gantt/frontend/sirius-components-gantt/package.json +++ b/packages/gantt/frontend/sirius-components-gantt/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/portals/frontend/sirius-components-portals/package.json b/packages/portals/frontend/sirius-components-portals/package.json index 13fe295d6e..0b3bdb3186 100644 --- a/packages/portals/frontend/sirius-components-portals/package.json +++ b/packages/portals/frontend/sirius-components-portals/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/selection/frontend/sirius-components-selection/package.json b/packages/selection/frontend/sirius-components-selection/package.json index ee655ae711..66fbbe449c 100644 --- a/packages/selection/frontend/sirius-components-selection/package.json +++ b/packages/selection/frontend/sirius-components-selection/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/sirius-web/frontend/sirius-web-application/package.json b/packages/sirius-web/frontend/sirius-web-application/package.json index fbf0d338ec..49e163504c 100644 --- a/packages/sirius-web/frontend/sirius-web-application/package.json +++ b/packages/sirius-web/frontend/sirius-web-application/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/sirius-web/frontend/sirius-web-papaya/package.json b/packages/sirius-web/frontend/sirius-web-papaya/package.json index 08204ea091..99e537de75 100644 --- a/packages/sirius-web/frontend/sirius-web-papaya/package.json +++ b/packages/sirius-web/frontend/sirius-web-papaya/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/sirius-web/frontend/sirius-web-table/package.json b/packages/sirius-web/frontend/sirius-web-table/package.json index 4c3c49e7f4..12256c071f 100644 --- a/packages/sirius-web/frontend/sirius-web-table/package.json +++ b/packages/sirius-web/frontend/sirius-web-table/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/tables/frontend/sirius-components-tables/package.json b/packages/tables/frontend/sirius-components-tables/package.json index 302cdd5f99..4421888cd3 100644 --- a/packages/tables/frontend/sirius-components-tables/package.json +++ b/packages/tables/frontend/sirius-components-tables/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/trees/frontend/sirius-components-trees/package.json b/packages/trees/frontend/sirius-components-trees/package.json index c47be31cbf..52c3300b48 100644 --- a/packages/trees/frontend/sirius-components-trees/package.json +++ b/packages/trees/frontend/sirius-components-trees/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/packages/validation/frontend/sirius-components-validation/package.json b/packages/validation/frontend/sirius-components-validation/package.json index 9a5b9fd36f..9a67bcd168 100644 --- a/packages/validation/frontend/sirius-components-validation/package.json +++ b/packages/validation/frontend/sirius-components-validation/package.json @@ -23,7 +23,7 @@ } }, "scripts": { - "start": "vite build --mode 'development' && tsc", + "build-dev": "vite build --mode 'development' && tsc", "build": "vite build && tsc", "format": "prettier --write \"src/**/*.{js,ts,tsx,css}\"", "format-lint": "prettier --list-different \"src/**/*.{js,ts,tsx,css}\"", diff --git a/turbo.json b/turbo.json index 203c6cc89a..0536127868 100644 --- a/turbo.json +++ b/turbo.json @@ -20,8 +20,12 @@ "publish:local": { "dependsOn": ["build"] }, + "build-dev": { + "dependsOn": ["format-lint", "^build-dev"] + }, "start": { - "dependsOn": ["format-lint", "^start"] + "dependsOn": ["format-lint", "^build-dev"], + "persistent": true } } }