diff --git a/RECIPES.md b/RECIPES.md index 2368b0a6..05699ddb 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -181,6 +181,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith | [symfony/pushover-notifier](https://packagist.org/packages/symfony/pushover-notifier) | [6.3](../../../tree/main/symfony/pushover-notifier/6.3) | `pushover-notifier`, `pushovernotifier` | | [symfony/pushy-notifier](https://packagist.org/packages/symfony/pushy-notifier) | [7.1](../../../tree/main/symfony/pushy-notifier/7.1) | `pushy-notifier`, `pushynotifier` | | [symfony/redlink-notifier](https://packagist.org/packages/symfony/redlink-notifier) | [6.4](../../../tree/main/symfony/redlink-notifier/6.4) | `redlink-notifier`, `redlinknotifier` | +| [symfony/reprise](https://packagist.org/packages/symfony/reprise) | [0.1](../../../tree/main/symfony/reprise/0.1) | `reprise` | | [symfony/requirements-checker](https://packagist.org/packages/symfony/requirements-checker) | [2.0](../../../tree/main/symfony/requirements-checker/2.0) | `req-check`, `req-checker`, `req-checks`, `reqcheck`, `reqchecker`, `reqchecks`, `requirement-check`, `requirement-checker`, `requirementcheck`, `requirementchecker`, `requirements-checker`, `requirementschecker` | | [symfony/resend-mailer](https://packagist.org/packages/symfony/resend-mailer) | [7.1](../../../tree/main/symfony/resend-mailer/7.1) | `resend-mailer`, `resendmailer` | | [symfony/ring-central-notifier](https://packagist.org/packages/symfony/ring-central-notifier) | [6.3](../../../tree/main/symfony/ring-central-notifier/6.3) | `ring-central-notifier`, `ringcentralnotifier` | @@ -208,7 +209,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith | [symfony/smsense-notifier](https://packagist.org/packages/symfony/smsense-notifier) | [7.1](../../../tree/main/symfony/smsense-notifier/7.1) | `smsense-notifier`, `smsensenotifier` | | [symfony/smsmode-notifier](https://packagist.org/packages/symfony/smsmode-notifier) | [6.3](../../../tree/main/symfony/smsmode-notifier/6.3) | `smsmode-notifier`, `smsmodenotifier` | | [symfony/spot-hit-notifier](https://packagist.org/packages/symfony/spot-hit-notifier) | [5.3](../../../tree/main/symfony/spot-hit-notifier/5.3) | `spot-hit-notifier`, `spothitnotifier` | -| [symfony/stimulus-bundle](https://packagist.org/packages/symfony/stimulus-bundle) | [2.25](../../../tree/main/symfony/stimulus-bundle/2.25) | `stimulus`, `stimulus-bundle`, `stimulusbundle` | +| [symfony/stimulus-bundle](https://packagist.org/packages/symfony/stimulus-bundle) | [3.3](../../../tree/main/symfony/stimulus-bundle/3.3) | `stimulus`, `stimulus-bundle`, `stimulusbundle` | | [symfony/sweego-mailer](https://packagist.org/packages/symfony/sweego-mailer) | [7.2](../../../tree/main/symfony/sweego-mailer/7.2) | `sweego-mailer`, `sweegomailer` | | [symfony/sweego-notifier](https://packagist.org/packages/symfony/sweego-notifier) | [7.2](../../../tree/main/symfony/sweego-notifier/7.2) | `sweego-notifier`, `sweegonotifier` | | [symfony/swiftmailer-bundle](https://packagist.org/packages/symfony/swiftmailer-bundle) | [2.5](../../../tree/main/symfony/swiftmailer-bundle/2.5) | `swiftmailer`, `swiftmailer-bundle`, `swiftmailerbundle` | diff --git a/archived/symfony.reprise/912ce6c6bd6b81afac04525159bfcceb08fdd9fe.json b/archived/symfony.reprise/912ce6c6bd6b81afac04525159bfcceb08fdd9fe.json new file mode 100644 index 00000000..23300c9e --- /dev/null +++ b/archived/symfony.reprise/912ce6c6bd6b81afac04525159bfcceb08fdd9fe.json @@ -0,0 +1,177 @@ +{ + "manifests": { + "symfony/reprise": { + "manifest": { + "bundles": { + "Symfony\\Reprise\\RepriseBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "assets/": "assets/", + "config/": "%CONFIG_DIR%/" + }, + "conflict": { + "symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0", + "symfony/framework-bundle": "<6.4" + }, + "gitignore": [ + "/node_modules/", + "/%PUBLIC_DIR%/build/" + ], + "add-lines": [ + { + "file": "templates/base.html.twig", + "content": " {{ reprise_entry_link_tags('app') }}", + "position": "after_target", + "target": "{% block stylesheets %}", + "warn_if_missing": true + }, + { + "file": "templates/base.html.twig", + "content": " {{ reprise_entry_script_tags('app') }}", + "position": "after_target", + "target": "{% block javascripts %}", + "warn_if_missing": true + } + ], + "post-install-output": [ + "", + " ", + " Symfony Reprise ", + " ", + "", + " A few frontend steps remain to wire up your bundler.", + " The commands below use npm (or pnpm, yarn, ...).", + "", + " * If you don't have a bundler yet, install Vite or Rsbuild:", + "", + " npm install --save-dev vite", + " # or", + " npm install --save-dev @rsbuild/core", + "", + " * Install the Reprise plugin:", + "", + " npm install --save-dev @symfony/reprise", + "", + " * Register the plugin in your bundler config:", + "", + " // vite.config.js", + " import { defineConfig } from 'vite'", + " import Symfony from '@symfony/reprise/vite'", + "", + " export default defineConfig({", + " build: {", + " rollupOptions: {", + " input: {", + " app: './assets/app.js',", + " },", + " },", + " },", + " plugins: [", + " Symfony({", + " // Enable support for Stimulus Controller and Symfony UX", + " // stimulus: './assets/controllers.json',", + " }),", + " ],", + " })", + "", + " // rsbuild.config.js", + " import { defineConfig } from '@rsbuild/core'", + " import Symfony from '@symfony/reprise/rsbuild'", + "", + " export default defineConfig({", + " source: {", + " entry: {", + " app: './assets/app.js',", + " },", + " },", + " plugins: [", + " Symfony({", + " // Enable support for Stimulus Controller and Symfony UX", + " // stimulus: './assets/controllers.json',", + " }),", + " ],", + " })", + "", + " * Render your assets from Twig with reprise_entry_link_tags('app') and", + " reprise_entry_script_tags('app') (already added to templates/base.html.twig for you).", + "", + " * Build your assets:", + "", + " npx vite build # or: npx rsbuild build", + " npx vite # dev server (or: npx rsbuild dev)", + "", + " * Read the documentation: https://github.com/symfony/reprise" + ] + }, + "files": { + "assets/app.js": { + "contents": [ + "/*", + " * 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! \ud83c\udf89');", + "" + ], + "executable": false + }, + "assets/styles/app.css": { + "contents": [ + "body {", + " background-color: skyblue;", + "}", + "" + ], + "executable": false + }, + "config/packages/reprise.yaml": { + "contents": [ + "# 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