diff --git a/RECIPES.md b/RECIPES.md index 5e295a43..183c2c5e 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -499,6 +499,7 @@ Additional recipes can be found on the [Main Recipes Repository](https://github. | [siganushka/region-bundle](https://packagist.org/packages/siganushka/region-bundle) | [0.1](siganushka/region-bundle/0.1) | | [silasjoisten/sonata-multiupload-bundle](https://packagist.org/packages/silasjoisten/sonata-multiupload-bundle) | [3.4](silasjoisten/sonata-multiupload-bundle/3.4) | | [simply-stream/twitch-api-bundle](https://packagist.org/packages/simply-stream/twitch-api-bundle) | [0.1](simply-stream/twitch-api-bundle/0.1) | +| [skipthedragon/inertia-bundle](https://packagist.org/packages/skipthedragon/inertia-bundle) | [1.0](skipthedragon/inertia-bundle/1.0) | | [slot/mandrill-bundle](https://packagist.org/packages/slot/mandrill-bundle) | [1.1](slot/mandrill-bundle/1.1) | | [snc/redis-bundle](https://packagist.org/packages/snc/redis-bundle) | [2.0](snc/redis-bundle/2.0) | | [soljian/steam-authentication-bundle](https://packagist.org/packages/soljian/steam-authentication-bundle) | [1.0](soljian/steam-authentication-bundle/1.0) | diff --git a/archived/skipthedragon.inertia-bundle/1a4b069057491f799e12a412810180eefd622fcf.json b/archived/skipthedragon.inertia-bundle/1a4b069057491f799e12a412810180eefd622fcf.json new file mode 100644 index 00000000..66e9ece1 --- /dev/null +++ b/archived/skipthedragon.inertia-bundle/1a4b069057491f799e12a412810180eefd622fcf.json @@ -0,0 +1,80 @@ +{ + "manifests": { + "skipthedragon/inertia-bundle": { + "manifest": { + "bundles": { + "Rompetomp\\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": "\n {{ inertia(page) }}\n ", + "position": "after_target", + "target": "{% block body %}", + "warn_if_missing": true + } + ], + "post-install-output": [ + " ", + " Getting started using skipthedragon/inertia-bundle ", + " ", + "", + " Configure your transformations:", + " 1. React stack: symfony console inertia:install react --ssr --bundler=webpack for Webpack or symfony console inertia:install react --ssr --bundler=vite for Vite.", + " 2. Vue stack: symfony console inertia:install vue --ssr --bundler=webpack for Webpack or symfony console inertia:install vue --ssr --bundler=vite for Vite.", + " 2. Svelte stack: symfony console inertia:install svelte --ssr --bundler=webpack for Webpack or symfony console inertia:install svelte --ssr --bundler=vite for Vite.", + " 3. Adjust the configuration in %CONFIG_DIR%/packages/inertia.yaml according to your needs.", + " 4. Start coding into assets/js/pages/" + ] + }, + "files": { + "config/packages/inertia.yaml": { + "contents": [ + "inertia:", + " # |--------------------------------------------------------------------------", + " # | Root View", + " # |--------------------------------------------------------------------------", + " # |", + " # | This option configures the root view that will be used by Inertia to render", + " # | your application's pages. By default, Inertia will use the \"base\" view.", + " # | learn more here: https://github.com/SkipTheDragon/inertia-bundle/blob/master/docs/configuration.md", + " root_view: 'base.html.twig'", + "", + "", + " # |--------------------------------------------------------------------------", + " # | Server-side Rendering", + " # |--------------------------------------------------------------------------", + " # |", + " # | These options configures if and how Inertia uses Server Side Rendering", + " # | to pre-render the initial visits made to your application's pages.", + " # |", + " # | You can specify a custom SSR bundle path, or omit it to let Inertia", + " # | try and automatically detect it for you.", + " # |", + " # | Do note that enabling these options will NOT automatically make SSR work,", + " # | as a separate rendering service needs to be available. To learn more,", + " # | please visit https://inertiajs.com/server-side-rendering", + " ssr:", + " enabled: false", + " url: 'http://127.0.0.1:13714/render'", + "" + ], + "executable": false + } + }, + "ref": "1a4b069057491f799e12a412810180eefd622fcf" + } + } +} diff --git a/index.json b/index.json index 45a86293..a18a5679 100644 --- a/index.json +++ b/index.json @@ -1584,6 +1584,9 @@ "simply-stream/twitch-api-bundle": [ "0.1" ], + "skipthedragon/inertia-bundle": [ + "1.0" + ], "slot/mandrill-bundle": [ "1.1" ], diff --git a/skipthedragon.inertia-bundle.1.0.json b/skipthedragon.inertia-bundle.1.0.json new file mode 100644 index 00000000..66e9ece1 --- /dev/null +++ b/skipthedragon.inertia-bundle.1.0.json @@ -0,0 +1,80 @@ +{ + "manifests": { + "skipthedragon/inertia-bundle": { + "manifest": { + "bundles": { + "Rompetomp\\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": "\n {{ inertia(page) }}\n ", + "position": "after_target", + "target": "{% block body %}", + "warn_if_missing": true + } + ], + "post-install-output": [ + " ", + " Getting started using skipthedragon/inertia-bundle ", + " ", + "", + " Configure your transformations:", + " 1. React stack: symfony console inertia:install react --ssr --bundler=webpack for Webpack or symfony console inertia:install react --ssr --bundler=vite for Vite.", + " 2. Vue stack: symfony console inertia:install vue --ssr --bundler=webpack for Webpack or symfony console inertia:install vue --ssr --bundler=vite for Vite.", + " 2. Svelte stack: symfony console inertia:install svelte --ssr --bundler=webpack for Webpack or symfony console inertia:install svelte --ssr --bundler=vite for Vite.", + " 3. Adjust the configuration in %CONFIG_DIR%/packages/inertia.yaml according to your needs.", + " 4. Start coding into assets/js/pages/" + ] + }, + "files": { + "config/packages/inertia.yaml": { + "contents": [ + "inertia:", + " # |--------------------------------------------------------------------------", + " # | Root View", + " # |--------------------------------------------------------------------------", + " # |", + " # | This option configures the root view that will be used by Inertia to render", + " # | your application's pages. By default, Inertia will use the \"base\" view.", + " # | learn more here: https://github.com/SkipTheDragon/inertia-bundle/blob/master/docs/configuration.md", + " root_view: 'base.html.twig'", + "", + "", + " # |--------------------------------------------------------------------------", + " # | Server-side Rendering", + " # |--------------------------------------------------------------------------", + " # |", + " # | These options configures if and how Inertia uses Server Side Rendering", + " # | to pre-render the initial visits made to your application's pages.", + " # |", + " # | You can specify a custom SSR bundle path, or omit it to let Inertia", + " # | try and automatically detect it for you.", + " # |", + " # | Do note that enabling these options will NOT automatically make SSR work,", + " # | as a separate rendering service needs to be available. To learn more,", + " # | please visit https://inertiajs.com/server-side-rendering", + " ssr:", + " enabled: false", + " url: 'http://127.0.0.1:13714/render'", + "" + ], + "executable": false + } + }, + "ref": "1a4b069057491f799e12a412810180eefd622fcf" + } + } +}