mirror of
https://github.com/symfony/recipes.git
synced 2026-09-17 10:06:28 +03:00
* Adding new recipes for Encore, Stimulus & AssetMapper * StimulusBundle 1.0 -> 2.9 * updating namespace * moving encore recipe changes to 2.0 * conflict with older version of flex * adding ux_controller_link_tags() to recipe * adding documentation to importmap * updating message to match core * Adding ux translator * fixing translations path * Documenting the new add-lines configurator * Fixing translator initial version * shorten to just var * remove ux alias - there is no one package to install UX packages currently * fixing wrong package name
40 lines
1.2 KiB
JSON
40 lines
1.2 KiB
JSON
{
|
|
"bundles": {
|
|
"Symfony\\UX\\Translator\\UxTranslatorBundle": ["all"]
|
|
},
|
|
"conflict": {
|
|
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
|
},
|
|
"copy-from-recipe": {
|
|
"assets/": "assets/",
|
|
"config/": "%CONFIG_DIR%/",
|
|
"var/": "var/"
|
|
},
|
|
"add-lines": [
|
|
{
|
|
"file": "assets/translator.js",
|
|
"content": "import { localeFallbacks } from '../var/translations/configuration';",
|
|
"position": "top",
|
|
"requires": "symfony/webpack-encore-bundle"
|
|
},
|
|
{
|
|
"file": "assets/translator.js",
|
|
"content": "import { localeFallbacks } from '@app/translations/configuration';",
|
|
"position": "top",
|
|
"requires": "symfony/asset-mapper"
|
|
},
|
|
{
|
|
"file": "assets/translator.js",
|
|
"content": "export * from '../var/translations';",
|
|
"position": "bottom",
|
|
"requires": "symfony/webpack-encore-bundle"
|
|
},
|
|
{
|
|
"file": "assets/translator.js",
|
|
"content": "export * from '@app/translations';",
|
|
"position": "bottom",
|
|
"requires": "symfony/asset-mapper"
|
|
}
|
|
]
|
|
}
|