From 0990bd8db2420b2db31aa0d4101407b770bcdd42 Mon Sep 17 00:00:00 2001 From: Tony BLARD <56875519+nytodev@users.noreply.github.com> Date: Wed, 8 Apr 2026 22:08:08 +0200 Subject: [PATCH] Add recipe for nytodev/inertia-bundle 2.0 (#1968) * Add recipe for nytodev/inertia-bundle 2.0 * re-trigger CI --------- Co-authored-by: tony-poisson --- .../2.0/config/packages/inertia.yaml | 8 +++++++ nytodev/inertia-bundle/2.0/manifest.json | 24 +++++++++++++++++++ nytodev/inertia-bundle/2.0/post-install.txt | 13 ++++++++++ 3 files changed, 45 insertions(+) create mode 100644 nytodev/inertia-bundle/2.0/config/packages/inertia.yaml create mode 100644 nytodev/inertia-bundle/2.0/manifest.json create mode 100644 nytodev/inertia-bundle/2.0/post-install.txt diff --git a/nytodev/inertia-bundle/2.0/config/packages/inertia.yaml b/nytodev/inertia-bundle/2.0/config/packages/inertia.yaml new file mode 100644 index 00000000..45b97749 --- /dev/null +++ b/nytodev/inertia-bundle/2.0/config/packages/inertia.yaml @@ -0,0 +1,8 @@ +inertia: + # The root Twig template used to render the full HTML page on first visit. + root_view: 'base.html.twig' + + # Enable Server-Side Rendering via an external Node.js SSR server. + # Requires symfony/http-client: composer require symfony/http-client + ssr_enabled: false + ssr_url: 'http://127.0.0.1:13714' diff --git a/nytodev/inertia-bundle/2.0/manifest.json b/nytodev/inertia-bundle/2.0/manifest.json new file mode 100644 index 00000000..4d124c43 --- /dev/null +++ b/nytodev/inertia-bundle/2.0/manifest.json @@ -0,0 +1,24 @@ +{ + "bundles": { + "Nytodev\\InertiaBundle\\InertiaBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "add-lines": [ + { + "file": "templates/base.html.twig", + "content": " {{ inertiaHead(page) }}", + "position": "after_target", + "target": "{% block javascripts %}", + "warn_if_missing": true + }, + { + "file": "templates/base.html.twig", + "content": " {{ inertia(page) }}", + "position": "after_target", + "target": "{% block body %}", + "warn_if_missing": true + } + ] +} diff --git a/nytodev/inertia-bundle/2.0/post-install.txt b/nytodev/inertia-bundle/2.0/post-install.txt new file mode 100644 index 00000000..9f916bed --- /dev/null +++ b/nytodev/inertia-bundle/2.0/post-install.txt @@ -0,0 +1,13 @@ + + Welcome to nytodev/inertia-bundle + + + Next steps: + + 1. Install your frontend stack (React, Vue or Svelte): + npm install @inertiajs/react (or vue / svelte) + + 2. Adjust config/packages/inertia.yaml to match your setup. + + 3. Read the documentation: + https://github.com/nytodev/inertia-bundle