diff --git a/symfony/ux-react/2.9/config/routes/ux_autocomplete.yaml b/symfony/ux-react/2.9/config/routes/ux_autocomplete.yaml new file mode 100644 index 00000000..da6b261a --- /dev/null +++ b/symfony/ux-react/2.9/config/routes/ux_autocomplete.yaml @@ -0,0 +1,3 @@ +ux_autocomplete: + resource: '@AutocompleteBundle/config/routes.php' + prefix: '/autocomplete' diff --git a/symfony/ux-react/2.9/manifest.json b/symfony/ux-react/2.9/manifest.json new file mode 100644 index 00000000..11454feb --- /dev/null +++ b/symfony/ux-react/2.9/manifest.json @@ -0,0 +1,36 @@ +{ + "bundles": { + "Symfony\\UX\\React\\ReactBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "add-lines": [ + { + "file": "webpack.config.js", + "content": "\n .enableReactPreset()", + "position": "after_target", + "target": ".splitEntryChunks()" + }, + { + "file": "assets/app.js", + "content": "import { registerReactControllerComponents } from '@symfony/ux-react';", + "position": "top", + "warn_if_missing": true + }, + { + "file": "assets/app.js", + "content": "registerReactControllerComponents(require.context('./react/controllers', true, /\\.(j|t)sx?$/));", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/webpack-encore-bundle" + }, + { + "file": "assets/app.js", + "content": "registerReactControllerComponents();", + "position": "bottom", + "warn_if_missing": true, + "requires": "symfony/asset-mapper" + } + ] +}