Adding svelte and vue

This commit is contained in:
Ryan Weaver
2023-06-07 14:02:35 -04:00
parent c3d89cece8
commit cd61c4094b
4 changed files with 84 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"bundles": {
"Symfony\\UX\\Svelte\\SvelteBundle": ["all"]
}
}
+37
View File
@@ -0,0 +1,37 @@
{
"bundles": {
"Symfony\\UX\\Svelte\\SvelteBundle": ["all"]
},
"conflict": {
"symfony/webpack-encore-bundle": "<2.0",
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
},
"add-lines": [
{
"file": "webpack.config.js",
"content": "\n .enableSvelte()",
"position": "after_target",
"target": ".splitEntryChunks()"
},
{
"file": "assets/app.js",
"content": "import { registerSvelteControllerComponents } from '@symfony/ux-svelte';",
"position": "top",
"warn_if_missing": true
},
{
"file": "assets/app.js",
"content": "registerSvelteControllerComponents(require.context('./svelte/controllers', true, /\\.svelte$/));",
"position": "bottom",
"warn_if_missing": true,
"requires": "symfony/webpack-encore-bundle"
},
{
"file": "assets/app.js",
"content": "registerSvelteControllerComponents();",
"position": "bottom",
"warn_if_missing": true,
"requires": "symfony/asset-mapper"
}
]
}
+5
View File
@@ -0,0 +1,5 @@
{
"bundles": {
"Symfony\\UX\\Vue\\VueBundle": ["all"]
}
}
+37
View File
@@ -0,0 +1,37 @@
{
"bundles": {
"Symfony\\UX\\Vue\\VueBundle": ["all"]
},
"conflict": {
"symfony/webpack-encore-bundle": "<2.0",
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
},
"add-lines": [
{
"file": "webpack.config.js",
"content": "\n .enableVueLoader()",
"position": "after_target",
"target": ".splitEntryChunks()"
},
{
"file": "assets/app.js",
"content": "import { registerVueControllerComponents } from '@symfony/ux-vue';",
"position": "top",
"warn_if_missing": true
},
{
"file": "assets/app.js",
"content": "registerVueControllerComponents(require.context('./vue/controllers', true, /\\.vue$/));",
"position": "bottom",
"warn_if_missing": true,
"requires": "symfony/webpack-encore-bundle"
},
{
"file": "assets/app.js",
"content": "registerVueControllerComponents();",
"position": "bottom",
"warn_if_missing": true,
"requires": "symfony/asset-mapper"
}
]
}