From 0725f7c9a9fc8c01cc77e4f77a403ceda81ce1c0 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Wed, 12 Nov 2025 08:24:59 +0100 Subject: [PATCH 1/4] [FrameworkBundle] Add `symfony-cli.yaml` file --- symfony/framework-bundle/7.4/manifest.json | 5 +++-- symfony/framework-bundle/7.4/symfony-cli.yaml | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 symfony/framework-bundle/7.4/symfony-cli.yaml diff --git a/symfony/framework-bundle/7.4/manifest.json b/symfony/framework-bundle/7.4/manifest.json index 00fae168f..487f36426 100644 --- a/symfony/framework-bundle/7.4/manifest.json +++ b/symfony/framework-bundle/7.4/manifest.json @@ -3,10 +3,11 @@ "Symfony\\Bundle\\FrameworkBundle\\FrameworkBundle": ["all"] }, "copy-from-recipe": { + ".editorconfig": ".editorconfig", + "symfony-cli.yaml": "symfony-cli.yaml", "config/": "%CONFIG_DIR%/", "public/": "%PUBLIC_DIR%/", - "src/": "%SRC_DIR%/", - ".editorconfig": ".editorconfig" + "src/": "%SRC_DIR%/" }, "composer-scripts": { "cache:clear": "symfony-cmd", diff --git a/symfony/framework-bundle/7.4/symfony-cli.yaml b/symfony/framework-bundle/7.4/symfony-cli.yaml new file mode 100644 index 000000000..8c78c5b02 --- /dev/null +++ b/symfony/framework-bundle/7.4/symfony-cli.yaml @@ -0,0 +1,12 @@ +# This configuration file is used by the Symfony CLI tool. +# See https://symfony.com/doc/current/setup/symfony_cli.html for more information. + +# Automatically open the application in the browser after starting the server +open: true + +http: + # Use Gzip compression + use_gzip: true + +# Processes that automatically run with the server (https://symfony.com/doc/current/setup/symfony_cli.html#configuring-workers) +workers: From eaee64a7454a7a8d19e68f249a0df14052d5480a Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Wed, 12 Nov 2025 08:25:13 +0100 Subject: [PATCH 2/4] [WebpackEncoreBundle] Add workers in `symfony-cli.yaml` file --- symfony/webpack-encore-bundle/2.0/manifest.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/symfony/webpack-encore-bundle/2.0/manifest.json b/symfony/webpack-encore-bundle/2.0/manifest.json index 16f8dcd46..c5b098446 100644 --- a/symfony/webpack-encore-bundle/2.0/manifest.json +++ b/symfony/webpack-encore-bundle/2.0/manifest.json @@ -33,6 +33,13 @@ "position": "after_target", "target": "{% block stylesheets %}", "warn_if_missing": true + }, + { + "file": "symfony-cli.yaml", + "content": " # Watch and build front assets using Webpack Encore\n npm_encore_watch:\n cmd: ['npm', 'run', 'watch']\n # Or instead, run the Webpack Dev Server (https://symfony.com/doc/current/frontend/encore/dev-server.html)\n #npm_encore_dev_server:\n # cmd: ['npm', 'run', 'dev-server']", + "position": "after_target", + "target": "workers:", + "warn_if_missing": false } ] } From 5a953de755a45b4f4b72b564832ddf2a29c138a5 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Wed, 12 Nov 2025 08:31:47 +0100 Subject: [PATCH 3/4] [SymfonyCastsSassBundle] Add worker in `symfony-cli.yaml` file --- symfonycasts/sass-bundle/0.5/manifest.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/symfonycasts/sass-bundle/0.5/manifest.json b/symfonycasts/sass-bundle/0.5/manifest.json index 20adf8aaf..4da6a1646 100644 --- a/symfonycasts/sass-bundle/0.5/manifest.json +++ b/symfonycasts/sass-bundle/0.5/manifest.json @@ -18,6 +18,13 @@ "warn_if_missing": true, "target": " missing_import_mode: strict", "content": " excluded_patterns:\n - '**/assets/styles/**/_*.scss'" + }, + { + "file": "symfony-cli.yaml", + "content": " # Watch and build Sass files\n sass:\n cmd: ['symfony', 'console', 'sass:build', '--watch']", + "position": "after_target", + "target": "workers:", + "warn_if_missing": false } ], "conflict": { From c04096545e9e6d9eadb2bc9dfd6d4525b61e30f6 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Wed, 12 Nov 2025 08:31:56 +0100 Subject: [PATCH 4/4] [SymfonyCastsTailwindBundle] Add worker in `symfony-cli.yaml` file --- symfonycasts/tailwind-bundle/0.8/manifest.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/symfonycasts/tailwind-bundle/0.8/manifest.json b/symfonycasts/tailwind-bundle/0.8/manifest.json index d6d6bdd7e..50dc85dbc 100644 --- a/symfonycasts/tailwind-bundle/0.8/manifest.json +++ b/symfonycasts/tailwind-bundle/0.8/manifest.json @@ -5,5 +5,14 @@ "copy-from-recipe": { "config/": "%CONFIG_DIR%/" }, - "aliases": ["tailwind", "tailwindcss"] + "aliases": ["tailwind", "tailwindcss"], + "add-lines": [ + { + "file": "symfony-cli.yaml", + "content": " # Watch and build CSS files using Tailwind CSS\n tailwind:\n cmd: ['symfony', 'console', 'tailwind:build', '--watch']", + "position": "after_target", + "target": "workers:", + "warn_if_missing": false + } + ] }