add recipe for pentatrion/vite-bundle (#1189)

* add recipe for vite-bundle

* change vite version constraint and yaml config

* fix assets directory

* remove aliases

* fix list numbers

* move conf files from recipe to package

* move config files from recipe to package
This commit is contained in:
Hugues Tavernier
2021-09-03 21:18:35 +02:00
committed by GitHub
parent 9bc6e3d34c
commit ab66452e6f
2 changed files with 24 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
{
"bundles": {
"Pentatrion\\ViteBundle\\PentatrionViteBundle": ["all"]
},
"copy-from-package": {
"install/assets/": "assets/",
"install/package.json": "package.json",
"install/vite.config.js": "vite.config.js"
},
"gitignore": ["/node_modules/", "/%PUBLIC_DIR%/build/"]
}
@@ -0,0 +1,13 @@
<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. Verify and uncomment the configuration in <comment>%CONFIG_DIR%/packages/pentatrion_vite.yaml</>.
2. Verify the Vite configuration in <comment>/vite.config.js</>.
3. Install npm and run <comment>npm i</>.
4. Add JS Twig function <comment>{{ vite_entry_script_tags('app.js') }}</> into your base.html.twig.
5. Add CSS Twig function <comment>{{ vite_entry_link_tags('app.js') }}</> into your base.html.twig.
6. Start the development server: <comment>npm run dev</>.
7. Start coding into <comment>assets/app.js</>