From ab66452e6f1387ac3a98a7f2c0db54ba8a853a83 Mon Sep 17 00:00:00 2001 From: Hugues Tavernier Date: Fri, 3 Sep 2021 21:18:35 +0200 Subject: [PATCH] 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 --- pentatrion/vite-bundle/0.1/manifest.json | 11 +++++++++++ pentatrion/vite-bundle/0.1/post-install.txt | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pentatrion/vite-bundle/0.1/manifest.json create mode 100644 pentatrion/vite-bundle/0.1/post-install.txt diff --git a/pentatrion/vite-bundle/0.1/manifest.json b/pentatrion/vite-bundle/0.1/manifest.json new file mode 100644 index 00000000..44c2b2e1 --- /dev/null +++ b/pentatrion/vite-bundle/0.1/manifest.json @@ -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/"] +} diff --git a/pentatrion/vite-bundle/0.1/post-install.txt b/pentatrion/vite-bundle/0.1/post-install.txt new file mode 100644 index 00000000..d72e267b --- /dev/null +++ b/pentatrion/vite-bundle/0.1/post-install.txt @@ -0,0 +1,13 @@ + + Getting started using pentatrion/vite-bundle + + + Configure your transformations: + 1. Verify and uncomment the configuration in %CONFIG_DIR%/packages/pentatrion_vite.yaml. + 2. Verify the Vite configuration in /vite.config.js. + 3. Install npm and run npm i. + 4. Add JS Twig function {{ vite_entry_script_tags('app.js') }} into your base.html.twig. + 5. Add CSS Twig function {{ vite_entry_link_tags('app.js') }} into your base.html.twig. + 6. Start the development server: npm run dev. + 7. Start coding into assets/app.js +