diff --git a/nytodev/inertia-bundle/3.0/config/packages/inertia.yaml b/nytodev/inertia-bundle/3.0/config/packages/inertia.yaml new file mode 100644 index 00000000..45b97749 --- /dev/null +++ b/nytodev/inertia-bundle/3.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/3.0/manifest.json b/nytodev/inertia-bundle/3.0/manifest.json new file mode 100644 index 00000000..4d124c43 --- /dev/null +++ b/nytodev/inertia-bundle/3.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/3.0/post-install.txt b/nytodev/inertia-bundle/3.0/post-install.txt new file mode 100644 index 00000000..9f916bed --- /dev/null +++ b/nytodev/inertia-bundle/3.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