diff --git a/pentatrion/vite-bundle/6.5/manifest.json b/pentatrion/vite-bundle/6.5/manifest.json new file mode 100644 index 00000000..7c3eae70 --- /dev/null +++ b/pentatrion/vite-bundle/6.5/manifest.json @@ -0,0 +1,28 @@ +{ + "bundles": { + "Pentatrion\\ViteBundle\\PentatrionViteBundle": ["all"] + }, + "copy-from-package": { + "install/assets/": "assets/", + "install/package.json": "package.json", + "install/vite.config.js": "vite.config.js", + "install/config/routes/pentatrion_vite.yaml": "config/routes/pentatrion_vite.yaml" + }, + "gitignore": ["/node_modules/", "/%PUBLIC_DIR%/build/"], + "add-lines": [ + { + "file": "templates/base.html.twig", + "content": " {{ vite_entry_script_tags('app') }}", + "position": "after_target", + "target": "{% block javascripts %}", + "warn_if_missing": true + }, + { + "file": "templates/base.html.twig", + "content": " {{ vite_entry_link_tags('app') }}", + "position": "after_target", + "target": "{% block stylesheets %}", + "warn_if_missing": true + } + ] +} diff --git a/pentatrion/vite-bundle/6.5/post-install.txt b/pentatrion/vite-bundle/6.5/post-install.txt new file mode 100644 index 00000000..63f82beb --- /dev/null +++ b/pentatrion/vite-bundle/6.5/post-install.txt @@ -0,0 +1,12 @@ + + Getting started using pentatrion/vite-bundle + + + Configure your transformations: + 1. Add if necessary a configuration file in %CONFIG_DIR%/packages/pentatrion_vite.yaml. + 2. Verify the Vite configuration in /vite.config.js. + 3. Check vite templates https://github.com/vitejs/vite/tree/main/packages/create-vite for dependencies to add. + 4. Run npm i. + 5. Start the development server: npm run dev. + 6. Start coding into assets/app.js +