From edafc78c91e0b47c84d6aa3ffc3c8065429d1de5 Mon Sep 17 00:00:00 2001 From: Hugo Alliaume Date: Mon, 13 Jul 2026 16:31:15 +0200 Subject: [PATCH] [Reprise][StimulusBundle] Add recipe for symfony/reprise --- symfony/reprise/0.1/assets/app.js | 9 +++ symfony/reprise/0.1/assets/styles/app.css | 3 + .../reprise/0.1/config/packages/reprise.yaml | 34 ++++++++ symfony/reprise/0.1/manifest.json | 38 +++++++++ symfony/reprise/0.1/post-install.txt | 67 +++++++++++++++ .../3.3/assets/controllers.json | 4 + .../controllers/csrf_protection_controller.js | 81 +++++++++++++++++++ .../assets/controllers/hello_controller.js | 16 ++++ .../3.3/assets/stimulus_bootstrap.js | 2 + symfony/stimulus-bundle/3.3/manifest.json | 69 ++++++++++++++++ symfony/stimulus-bundle/3.3/post-install.txt | 14 ++++ 11 files changed, 337 insertions(+) create mode 100644 symfony/reprise/0.1/assets/app.js create mode 100644 symfony/reprise/0.1/assets/styles/app.css create mode 100644 symfony/reprise/0.1/config/packages/reprise.yaml create mode 100644 symfony/reprise/0.1/manifest.json create mode 100644 symfony/reprise/0.1/post-install.txt create mode 100644 symfony/stimulus-bundle/3.3/assets/controllers.json create mode 100644 symfony/stimulus-bundle/3.3/assets/controllers/csrf_protection_controller.js create mode 100644 symfony/stimulus-bundle/3.3/assets/controllers/hello_controller.js create mode 100644 symfony/stimulus-bundle/3.3/assets/stimulus_bootstrap.js create mode 100644 symfony/stimulus-bundle/3.3/manifest.json create mode 100644 symfony/stimulus-bundle/3.3/post-install.txt diff --git a/symfony/reprise/0.1/assets/app.js b/symfony/reprise/0.1/assets/app.js new file mode 100644 index 00000000..d3233d68 --- /dev/null +++ b/symfony/reprise/0.1/assets/app.js @@ -0,0 +1,9 @@ +/* + * Welcome to your app's main JavaScript file! + * + * This file will be included onto the page via the reprise_entry_script_tags('app') Twig function, + * which should already be in your base.html.twig. + */ +import './styles/app.css'; + +console.log('This log comes from assets/app.js - welcome to Symfony Reprise! 🎉'); diff --git a/symfony/reprise/0.1/assets/styles/app.css b/symfony/reprise/0.1/assets/styles/app.css new file mode 100644 index 00000000..dd6181a1 --- /dev/null +++ b/symfony/reprise/0.1/assets/styles/app.css @@ -0,0 +1,3 @@ +body { + background-color: skyblue; +} diff --git a/symfony/reprise/0.1/config/packages/reprise.yaml b/symfony/reprise/0.1/config/packages/reprise.yaml new file mode 100644 index 00000000..8e89516c --- /dev/null +++ b/symfony/reprise/0.1/config/packages/reprise.yaml @@ -0,0 +1,34 @@ +# Reprise works with zero configuration. Every option below is shown at its +# default value; uncomment the block and tweak what you need. +# See https://github.com/symfony/reprise/blob/main/doc/index.rst#configuration +# reprise: + # Directory the @symfony/reprise plugin writes entrypoints.json and manifest.json into. + # output_path: '%kernel.project_dir%/public/build' + + # Throw when entrypoints.json or a requested entry is missing, instead of rendering nothing. + # strict_mode: true + + # A framework.assets package name used to resolve entry URLs. null uses the default package. + # asset_package: null + + # crossorigin attribute set alongside SRI integrity: false, 'anonymous' or 'use-credentials'. + # crossorigin: false + + # Register rendered assets as WebLink HTTP/2 Link: preload headers (needs symfony/web-link). + # preload: true + + # Default attributes added to every rendered