Update/vite bundle 7 (#1652)

* update recipe for ViteBundle 7

* update recipe for ViteBundle v7 to v6.4.7

* vite-bundle fix typo error

* changing vite-bundle version from patch to minor
This commit is contained in:
Hugues Tavernier
2024-08-03 13:45:51 +02:00
committed by GitHub
parent 75254f6697
commit d8de5757bf
2 changed files with 40 additions and 0 deletions

View File

@@ -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
}
]
}

View File

@@ -0,0 +1,12 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> Getting started using </><bg=blue;fg=white;options=bold>pentatrion/vite-bundle</><bg=blue;fg=white> </>
<bg=blue;fg=white> </>
<fg=blue;options=bold>Configure</> <fg=blue>your transformations:</>
1. Add if necessary a configuration file in <comment>%CONFIG_DIR%/packages/pentatrion_vite.yaml</>.
2. Verify the Vite configuration in <comment>/vite.config.js</>.
3. Check vite templates https://github.com/vitejs/vite/tree/main/packages/create-vite for dependencies to add.
4. Run <comment>npm i</>.
5. Start the development server: <comment>npm run dev</>.
6. Start coding into <comment>assets/app.js</>