Files
symfony-flex-recipes-contrib/skipthedragon.inertia-bundle.1.0.json
T
github-action[bot]andgithub-action[bot] 76d11ad1dc Update Flex endpoint
2024-04-11 07:40:30 +00:00

81 lines
4.7 KiB
JSON

{
"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": [
" <bg=blue;fg=white> </>",
" <bg=blue;fg=white> Getting started using </><bg=blue;fg=white;options=bold>skipthedragon/inertia-bundle</><bg=blue;fg=white> </>",
" <bg=blue;fg=white> </>",
"",
" <fg=blue;options=bold>Configure</> <fg=blue>your transformations:</>",
" 1. React stack: <comment>symfony console inertia:install react --ssr --bundler=webpack</> for Webpack or <comment>symfony console inertia:install react --ssr --bundler=vite</> for Vite.",
" 2. Vue stack: <comment>symfony console inertia:install vue --ssr --bundler=webpack</> for Webpack or <comment>symfony console inertia:install vue --ssr --bundler=vite</> for Vite.",
" 2. Svelte stack: <comment>symfony console inertia:install svelte --ssr --bundler=webpack</> for Webpack or <comment>symfony console inertia:install svelte --ssr --bundler=vite</> for Vite.",
" 3. Adjust the configuration in <comment>%CONFIG_DIR%/packages/inertia.yaml</> according to your needs.",
" 4. Start coding into <comment>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"
}
}
}