mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Update Flex endpoint
This commit is contained in:
+5
-3
@@ -33,6 +33,7 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
| [symfony/allmysms-notifier](https://packagist.org/packages/symfony/allmysms-notifier) | [5.3](symfony/allmysms-notifier/5.3) | `allmysms-notifier`, `allmysmsnotifier` |
|
||||
| [symfony/amazon-mailer](https://packagist.org/packages/symfony/amazon-mailer) | [4.4](symfony/amazon-mailer/4.4) | `amazon-mailer`, `amazonmailer` |
|
||||
| [symfony/amazon-sns-notifier](https://packagist.org/packages/symfony/amazon-sns-notifier) | [5.4](symfony/amazon-sns-notifier/5.4) | `amazon-sns-notifier`, `amazonsnsnotifier` |
|
||||
| [symfony/asset-mapper](https://packagist.org/packages/symfony/asset-mapper) | [6.3](symfony/asset-mapper/6.3) | `asset-mapper`, `assetmapper`, `importmap` |
|
||||
| [symfony/bandwidth-notifier](https://packagist.org/packages/symfony/bandwidth-notifier) | [6.3](symfony/bandwidth-notifier/6.3) | `bandwidth-notifier`, `bandwidthnotifier` |
|
||||
| [symfony/chatwork-notifier](https://packagist.org/packages/symfony/chatwork-notifier) | [6.2](symfony/chatwork-notifier/6.2) | `chatwork-notifier`, `chatworknotifier` |
|
||||
| [symfony/clickatell-notifier](https://packagist.org/packages/symfony/clickatell-notifier) | [5.3](symfony/clickatell-notifier/5.3) | `clickatell-notifier`, `clickatellnotifier` |
|
||||
@@ -113,26 +114,27 @@ Additional recipes can be found on the [Contrib Recipes Repository](https://gith
|
||||
| [symfony/smsapi-notifier](https://packagist.org/packages/symfony/smsapi-notifier) | [5.2](symfony/smsapi-notifier/5.2) | `smsapi-notifier`, `smsapinotifier` |
|
||||
| [symfony/smsc-notifier](https://packagist.org/packages/symfony/smsc-notifier) | [5.4](symfony/smsc-notifier/5.4) | `smsc-notifier`, `smscnotifier` |
|
||||
| [symfony/spot-hit-notifier](https://packagist.org/packages/symfony/spot-hit-notifier) | [5.3](symfony/spot-hit-notifier/5.3) | `spot-hit-notifier`, `spothitnotifier` |
|
||||
| [symfony/stimulus-bundle](https://packagist.org/packages/symfony/stimulus-bundle) | [2.9](symfony/stimulus-bundle/2.9) | `stimulus`, `stimulus-bundle`, `stimulusbundle` |
|
||||
| [symfony/swiftmailer-bundle](https://packagist.org/packages/symfony/swiftmailer-bundle) | [2.5](symfony/swiftmailer-bundle/2.5) | `swiftmailer`, `swiftmailer-bundle`, `swiftmailerbundle` |
|
||||
| [symfony/telegram-notifier](https://packagist.org/packages/symfony/telegram-notifier) | [5.0](symfony/telegram-notifier/5.0) | `telegram-notifier`, `telegramnotifier` |
|
||||
| [symfony/telnyx-notifier](https://packagist.org/packages/symfony/telnyx-notifier) | [5.4](symfony/telnyx-notifier/5.4) | `telnyx-notifier`, `telnyxnotifier` |
|
||||
| [symfony/termii-notifier](https://packagist.org/packages/symfony/termii-notifier) | [6.3](symfony/termii-notifier/6.3) | `termii-notifier`, `termiinotifier` |
|
||||
| [symfony/translation](https://packagist.org/packages/symfony/translation) | [5.3](symfony/translation/5.3) | `translation`, `translations`, `translator` |
|
||||
| [symfony/turbo-sms-notifier](https://packagist.org/packages/symfony/turbo-sms-notifier) | [5.4](symfony/turbo-sms-notifier/5.4) | `turbo-sms-notifier`, `turbosmsnotifier` |
|
||||
| [symfony/twig-bundle](https://packagist.org/packages/symfony/twig-bundle) | [5.4](symfony/twig-bundle/5.4) | `twig-bundle`, `twigbundle` |
|
||||
| [symfony/twig-bundle](https://packagist.org/packages/symfony/twig-bundle) | [6.3](symfony/twig-bundle/6.3) | `twig-bundle`, `twigbundle` |
|
||||
| [symfony/twilio-notifier](https://packagist.org/packages/symfony/twilio-notifier) | [5.0](symfony/twilio-notifier/5.0) | `twilio-notifier`, `twilionotifier` |
|
||||
| [symfony/twitter-notifier](https://packagist.org/packages/symfony/twitter-notifier) | [6.3](symfony/twitter-notifier/6.3) | `twitter-notifier`, `twitternotifier` |
|
||||
| [symfony/uid](https://packagist.org/packages/symfony/uid) | [6.2](symfony/uid/6.2) | `uid` |
|
||||
| [symfony/ux-autocomplete](https://packagist.org/packages/symfony/ux-autocomplete) | [2.6](symfony/ux-autocomplete/2.6) | `ux-autocomplete`, `uxautocomplete` |
|
||||
| [symfony/ux-live-component](https://packagist.org/packages/symfony/ux-live-component) | [2.6](symfony/ux-live-component/2.6) | `ux-live-component`, `uxlivecomponent` |
|
||||
| [symfony/ux-translator](https://packagist.org/packages/symfony/ux-translator) | [2.7](symfony/ux-translator/2.7) | `ux-translator`, `uxtranslator` |
|
||||
| [symfony/ux-translator](https://packagist.org/packages/symfony/ux-translator) | [2.9](symfony/ux-translator/2.9) | `ux-translator`, `uxtranslator` |
|
||||
| [symfony/validator](https://packagist.org/packages/symfony/validator) | [5.3](symfony/validator/5.3) | `validation`, `validator` |
|
||||
| [symfony/vonage-notifier](https://packagist.org/packages/symfony/vonage-notifier) | [5.4](symfony/vonage-notifier/5.4) | `vonage-notifier`, `vonagenotifier` |
|
||||
| [symfony/web-profiler-bundle](https://packagist.org/packages/symfony/web-profiler-bundle) | [6.1](symfony/web-profiler-bundle/6.1) | `web-profiler-bundle`, `webprofilerbundle` |
|
||||
| [symfony/web-server-bundle](https://packagist.org/packages/symfony/web-server-bundle) | [3.3](symfony/web-server-bundle/3.3) | `server`, `web-server`, `web-server-bundle`, `webserver`, `webserverbundle` |
|
||||
| [symfony/webapp-pack](https://packagist.org/packages/symfony/webapp-pack) | [1.0](symfony/webapp-pack/1.0) | `webapp` |
|
||||
| [symfony/webhook](https://packagist.org/packages/symfony/webhook) | [6.3](symfony/webhook/6.3) | `webhook` |
|
||||
| [symfony/webpack-encore-bundle](https://packagist.org/packages/symfony/webpack-encore-bundle) | [1.10](symfony/webpack-encore-bundle/1.10) | `encore`, `ux`, `webpack`, `webpack-encore`, `webpack-encore-bundle`, `webpackencore`, `webpackencorebundle` |
|
||||
| [symfony/webpack-encore-bundle](https://packagist.org/packages/symfony/webpack-encore-bundle) | [2.0](symfony/webpack-encore-bundle/2.0) | `encore`, `ux`, `webpack`, `webpack-encore`, `webpack-encore-bundle`, `webpackencore`, `webpackencorebundle` |
|
||||
| [symfony/workflow](https://packagist.org/packages/symfony/workflow) | [3.3](symfony/workflow/3.3) | `workflow` |
|
||||
| [symfony/yunpian-notifier](https://packagist.org/packages/symfony/yunpian-notifier) | [5.4](symfony/yunpian-notifier/5.4) | `yunpian-notifier`, `yunpiannotifier` |
|
||||
| [symfony/zendesk-notifier](https://packagist.org/packages/symfony/zendesk-notifier) | [6.2](symfony/zendesk-notifier/6.2) | `zendesk-notifier`, `zendesknotifier` |
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/asset-mapper": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"importmap.php": "importmap.php"
|
||||
},
|
||||
"gitignore": [
|
||||
"/%PUBLIC_DIR%/assets/"
|
||||
],
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " {{ importmap() }}",
|
||||
"position": "after_target",
|
||||
"target": "{% block javascripts %}",
|
||||
"warn_if_missing": true
|
||||
},
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " <link rel=\"stylesheet\" href=\"{{ asset('styles/app.css') }}\">",
|
||||
"position": "after_target",
|
||||
"target": "{% block stylesheets %}",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
],
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<6.3",
|
||||
"symfony/twig-bundle": "<6.3",
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"assets/app.js": {
|
||||
"contents": [
|
||||
"/*",
|
||||
" * Welcome to your app's main JavaScript file!",
|
||||
" *",
|
||||
" * This file will be included onto the page via the importmap() Twig function,",
|
||||
" * which should already be in your base.html.twig.",
|
||||
" */",
|
||||
"console.log('This log comes from assets/app.js - welcome to AssetMapper! \ud83c\udf89')",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/styles/app.css": {
|
||||
"contents": [
|
||||
"body {",
|
||||
" background-color: skyblue;",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/asset_mapper.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" asset_mapper:",
|
||||
" # The paths to make available to the asset mapper.",
|
||||
" paths:",
|
||||
" - assets/",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"importmap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"/**",
|
||||
" * Returns the import map for this application.",
|
||||
" *",
|
||||
" * - \"path\" is a path inside the asset mapper system. Use the",
|
||||
" * \"debug:asset-map\" command to see the full list of paths.",
|
||||
" *",
|
||||
" * - \"preload\" set to true for any modules that are loaded on the initial",
|
||||
" * page load to help the browser download them earlier.",
|
||||
" *",
|
||||
" * The \"importmap:require\" command can be used to add new entries to this file.",
|
||||
" *",
|
||||
" * This file has been auto-generated by the importmap commands.",
|
||||
" */",
|
||||
"return [",
|
||||
" 'app' => [",
|
||||
" 'path' => 'app.js',",
|
||||
" 'preload' => true,",
|
||||
" ],",
|
||||
"];",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "e8c46ba5e488fc2d7462ab6832559ab93867370a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/stimulus-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\UX\\StimulusBundle\\StimulusBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/"
|
||||
},
|
||||
"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 // enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)\n .enableStimulusBridge('./assets/controllers.json')",
|
||||
"position": "after_target",
|
||||
"target": ".splitEntryChunks()"
|
||||
},
|
||||
{
|
||||
"file": "assets/app.js",
|
||||
"content": "import './bootstrap.js';",
|
||||
"position": "top",
|
||||
"warn_if_missing": true
|
||||
},
|
||||
{
|
||||
"file": "assets/bootstrap.js",
|
||||
"content": "import { startStimulusApp } from '@symfony/stimulus-bridge';\n\n// Registers Stimulus controllers from controllers.json and in the controllers/ directory\nexport const app = startStimulusApp(require.context(\n '@symfony/stimulus-bridge/lazy-controller-loader!./controllers',\n true,\n /\\.[jt]sx?$/\n));",
|
||||
"position": "top",
|
||||
"requires": "symfony/webpack-encore-bundle"
|
||||
},
|
||||
{
|
||||
"file": "assets/bootstrap.js",
|
||||
"content": "import { startStimulusApp } from '@symfony/stimulus-bundle';\n\nconst app = startStimulusApp();",
|
||||
"position": "top",
|
||||
"requires": "symfony/asset-mapper"
|
||||
},
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " {{ ux_controller_link_tags() }}",
|
||||
"position": "after_target",
|
||||
"target": "{% block stylesheets %}",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"assets/bootstrap.js": {
|
||||
"contents": [
|
||||
"// register any custom, 3rd party controllers here",
|
||||
"// app.register('some_controller_name', SomeImportedController);",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/controllers.json": {
|
||||
"contents": [
|
||||
"{",
|
||||
" \"controllers\": [],",
|
||||
" \"entrypoints\": []",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/controllers/hello_controller.js": {
|
||||
"contents": [
|
||||
"import { Controller } from '@hotwired/stimulus';",
|
||||
"",
|
||||
"/*",
|
||||
" * This is an example Stimulus controller!",
|
||||
" *",
|
||||
" * Any element with a data-controller=\"hello\" attribute will cause",
|
||||
" * this controller to be executed. The name \"hello\" comes from the filename:",
|
||||
" * hello_controller.js -> \"hello\"",
|
||||
" *",
|
||||
" * Delete this file or adapt it for your use!",
|
||||
" */",
|
||||
"export default class extends Controller {",
|
||||
" connect() {",
|
||||
" this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "a93bd27f5f84c8b6057f8c5a5d281de1fa041990"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/twig-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\TwigBundle\\TwigBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"templates/": "templates/"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/twig.yaml": {
|
||||
"contents": [
|
||||
"twig:",
|
||||
" default_path: '%kernel.project_dir%/templates'",
|
||||
"",
|
||||
"when@test:",
|
||||
" twig:",
|
||||
" strict_variables: true",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"templates/base.html.twig": {
|
||||
"contents": [
|
||||
"<!DOCTYPE html>",
|
||||
"<html>",
|
||||
" <head>",
|
||||
" <meta charset=\"UTF-8\">",
|
||||
" <title>{% block title %}Welcome!{% endblock %}</title>",
|
||||
" <link rel=\"icon\" href=\"data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>\u26ab\ufe0f</text></svg>\">",
|
||||
" {% block stylesheets %}",
|
||||
" {% endblock %}",
|
||||
"",
|
||||
" {% block javascripts %}",
|
||||
" {% endblock %}",
|
||||
" </head>",
|
||||
" <body>",
|
||||
" {% block body %}{% endblock %}",
|
||||
" </body>",
|
||||
"</html>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b7772eb20e92f3fb4d4fe756e7505b4ba2ca1a2c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/ux-translator": {
|
||||
"manifest": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"assets/translator.js": {
|
||||
"contents": [
|
||||
"import { trans, getLocale, setLocale, setLocaleFallbacks } from '@symfony/ux-translator';",
|
||||
"/*",
|
||||
" * This file is part of the Symfony UX Translator package.",
|
||||
" *",
|
||||
" * If folder \"../var/translations\" does not exist, or some translations are missing,",
|
||||
" * you must warmup your Symfony cache to refresh JavaScript translations.",
|
||||
" *",
|
||||
" * If you use TypeScript, you can rename this file to \"translator.ts\" to take advantage of types checking.",
|
||||
" */",
|
||||
"",
|
||||
"setLocaleFallbacks(localeFallbacks);",
|
||||
"",
|
||||
"export { trans };",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/ux_translator.yaml": {
|
||||
"contents": [
|
||||
"ux_translator:",
|
||||
" # The directory where the JavaScript translations are dumped",
|
||||
" dump_directory: '%kernel.project_dir%/var/translations'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"var/translations/configuration.js": {
|
||||
"contents": [
|
||||
"export const localeFallbacks = {};",
|
||||
"",
|
||||
"console.log('Run bin/console cache:warmup to generate the translation files.');",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"var/translations/index.js": {
|
||||
"contents": [
|
||||
"console.log('Run bin/console cache:warmup to generate the translation files.');",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "bc396565cc4cab95692dd6df810553dc22e352e1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,233 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/webpack-encore-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"package.json": "package.json",
|
||||
"webpack.config.js": "webpack.config.js"
|
||||
},
|
||||
"gitignore": [
|
||||
"/node_modules/",
|
||||
"/%PUBLIC_DIR%/build/",
|
||||
"npm-debug.log",
|
||||
"yarn-error.log"
|
||||
],
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<5.4",
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
||||
},
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " {{ encore_entry_script_tags('app') }}",
|
||||
"position": "after_target",
|
||||
"target": "{% block javascripts %}",
|
||||
"warn_if_missing": true
|
||||
},
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " {{ encore_entry_link_tags('app') }}",
|
||||
"position": "after_target",
|
||||
"target": "{% block stylesheets %}",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
],
|
||||
"post-install-output": [
|
||||
" * Install Yarn and run <fg=green>yarn install</>",
|
||||
"",
|
||||
" * Start the development server: <fg=green>yarn encore dev-server</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"assets/app.js": {
|
||||
"contents": [
|
||||
"/*",
|
||||
" * Welcome to your app's main JavaScript file!",
|
||||
" *",
|
||||
" * We recommend including the built version of this JavaScript file",
|
||||
" * (and its CSS file) in your base layout (base.html.twig).",
|
||||
" */",
|
||||
"",
|
||||
"// any CSS you import will output into a single css file (app.css in this case)",
|
||||
"import './styles/app.css';",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/styles/app.css": {
|
||||
"contents": [
|
||||
"body {",
|
||||
" background-color: lightgray;",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/webpack_encore.yaml": {
|
||||
"contents": [
|
||||
"webpack_encore:",
|
||||
" # The path where Encore is building the assets - i.e. Encore.setOutputPath()",
|
||||
" output_path: '%kernel.project_dir%/public/build'",
|
||||
" # If multiple builds are defined (as shown below), you can disable the default build:",
|
||||
" # output_path: false",
|
||||
"",
|
||||
" # Set attributes that will be rendered on all script and link tags",
|
||||
" script_attributes:",
|
||||
" defer: true",
|
||||
" # Uncomment (also under link_attributes) if using Turbo Drive",
|
||||
" # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change",
|
||||
" # 'data-turbo-track': reload",
|
||||
" # link_attributes:",
|
||||
" # Uncomment if using Turbo Drive",
|
||||
" # 'data-turbo-track': reload",
|
||||
"",
|
||||
" # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')",
|
||||
" # crossorigin: 'anonymous'",
|
||||
"",
|
||||
" # Preload all rendered script and link tags automatically via the HTTP/2 Link header",
|
||||
" # preload: true",
|
||||
"",
|
||||
" # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data",
|
||||
" # strict_mode: false",
|
||||
"",
|
||||
" # If you have multiple builds:",
|
||||
" # builds:",
|
||||
" # frontend: '%kernel.project_dir%/public/frontend/build'",
|
||||
"",
|
||||
" # pass the build name as the 3rd argument to the Twig functions",
|
||||
" # {{ encore_entry_script_tags('entry1', null, 'frontend') }}",
|
||||
"",
|
||||
"framework:",
|
||||
" assets:",
|
||||
" json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'",
|
||||
"",
|
||||
"#when@prod:",
|
||||
"# webpack_encore:",
|
||||
"# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)",
|
||||
"# # Available in version 1.2",
|
||||
"# cache: true",
|
||||
"",
|
||||
"#when@test:",
|
||||
"# webpack_encore:",
|
||||
"# strict_mode: false",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"package.json": {
|
||||
"contents": [
|
||||
"{",
|
||||
" \"devDependencies\": {",
|
||||
" \"@babel/core\": \"^7.17.0\",",
|
||||
" \"@babel/preset-env\": \"^7.16.0\",",
|
||||
" \"@symfony/webpack-encore\": \"^4.0.0\",",
|
||||
" \"core-js\": \"^3.23.0\",",
|
||||
" \"regenerator-runtime\": \"^0.13.9\",",
|
||||
" \"webpack\": \"^5.74.0\",",
|
||||
" \"webpack-cli\": \"^4.10.0\",",
|
||||
" \"webpack-notifier\": \"^1.15.0\"",
|
||||
" },",
|
||||
" \"license\": \"UNLICENSED\",",
|
||||
" \"private\": true,",
|
||||
" \"scripts\": {",
|
||||
" \"dev-server\": \"encore dev-server\",",
|
||||
" \"dev\": \"encore dev\",",
|
||||
" \"watch\": \"encore dev --watch\",",
|
||||
" \"build\": \"encore production --progress\"",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"webpack.config.js": {
|
||||
"contents": [
|
||||
"const Encore = require('@symfony/webpack-encore');",
|
||||
"",
|
||||
"// Manually configure the runtime environment if not already configured yet by the \"encore\" command.",
|
||||
"// It's useful when you use tools that rely on webpack.config.js file.",
|
||||
"if (!Encore.isRuntimeEnvironmentConfigured()) {",
|
||||
" Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');",
|
||||
"}",
|
||||
"",
|
||||
"Encore",
|
||||
" // directory where compiled assets will be stored",
|
||||
" .setOutputPath('public/build/')",
|
||||
" // public path used by the web server to access the output path",
|
||||
" .setPublicPath('/build')",
|
||||
" // only needed for CDN's or subdirectory deploy",
|
||||
" //.setManifestKeyPrefix('build/')",
|
||||
"",
|
||||
" /*",
|
||||
" * ENTRY CONFIG",
|
||||
" *",
|
||||
" * Each entry will result in one JavaScript file (e.g. app.js)",
|
||||
" * and one CSS file (e.g. app.css) if your JavaScript imports CSS.",
|
||||
" */",
|
||||
" .addEntry('app', './assets/app.js')",
|
||||
"",
|
||||
" // When enabled, Webpack \"splits\" your files into smaller pieces for greater optimization.",
|
||||
" .splitEntryChunks()",
|
||||
"",
|
||||
" // will require an extra script tag for runtime.js",
|
||||
" // but, you probably want this, unless you're building a single-page app",
|
||||
" .enableSingleRuntimeChunk()",
|
||||
"",
|
||||
" /*",
|
||||
" * FEATURE CONFIG",
|
||||
" *",
|
||||
" * Enable & configure other features below. For a full",
|
||||
" * list of features, see:",
|
||||
" * https://symfony.com/doc/current/frontend.html#adding-more-features",
|
||||
" */",
|
||||
" .cleanupOutputBeforeBuild()",
|
||||
" .enableBuildNotifications()",
|
||||
" .enableSourceMaps(!Encore.isProduction())",
|
||||
" // enables hashed filenames (e.g. app.abc123.css)",
|
||||
" .enableVersioning(Encore.isProduction())",
|
||||
"",
|
||||
" // configure Babel",
|
||||
" // .configureBabel((config) => {",
|
||||
" // config.plugins.push('@babel/a-babel-plugin');",
|
||||
" // })",
|
||||
"",
|
||||
" // enables and configure @babel/preset-env polyfills",
|
||||
" .configureBabelPresetEnv((config) => {",
|
||||
" config.useBuiltIns = 'usage';",
|
||||
" config.corejs = '3.23';",
|
||||
" })",
|
||||
"",
|
||||
" // enables Sass/SCSS support",
|
||||
" //.enableSassLoader()",
|
||||
"",
|
||||
" // uncomment if you use TypeScript",
|
||||
" //.enableTypeScriptLoader()",
|
||||
"",
|
||||
" // uncomment if you use React",
|
||||
" //.enableReactPreset()",
|
||||
"",
|
||||
" // uncomment to get integrity=\"...\" attributes on your script & link tags",
|
||||
" // requires WebpackEncoreBundle 1.4 or higher",
|
||||
" //.enableIntegrityHashes(Encore.isProduction())",
|
||||
"",
|
||||
" // uncomment if you're having problems with a jQuery plugin",
|
||||
" //.autoProvidejQuery()",
|
||||
";",
|
||||
"",
|
||||
"module.exports = Encore.getWebpackConfig();",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "13ebe04e25085e2ff0bcb0f9218b561d8b5089f3"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,273 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/webpack-encore-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"package.json": "package.json",
|
||||
"webpack.config.js": "webpack.config.js"
|
||||
},
|
||||
"gitignore": [
|
||||
"/node_modules/",
|
||||
"/%PUBLIC_DIR%/build/",
|
||||
"npm-debug.log",
|
||||
"yarn-error.log"
|
||||
],
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<5.4"
|
||||
},
|
||||
"post-install-output": [
|
||||
" * Install Yarn and run <fg=green>yarn install</>",
|
||||
"",
|
||||
" * Start the development server: <fg=green>yarn encore dev-server</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"assets/app.js": {
|
||||
"contents": [
|
||||
"/*",
|
||||
" * Welcome to your app's main JavaScript file!",
|
||||
" *",
|
||||
" * We recommend including the built version of this JavaScript file",
|
||||
" * (and its CSS file) in your base layout (base.html.twig).",
|
||||
" */",
|
||||
"",
|
||||
"// any CSS you import will output into a single css file (app.css in this case)",
|
||||
"import './styles/app.css';",
|
||||
"",
|
||||
"// start the Stimulus application",
|
||||
"import './bootstrap';",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/bootstrap.js": {
|
||||
"contents": [
|
||||
"import { startStimulusApp } from '@symfony/stimulus-bridge';",
|
||||
"",
|
||||
"// Registers Stimulus controllers from controllers.json and in the controllers/ directory",
|
||||
"export const app = startStimulusApp(require.context(",
|
||||
" '@symfony/stimulus-bridge/lazy-controller-loader!./controllers',",
|
||||
" true,",
|
||||
" /\\.[jt]sx?$/",
|
||||
"));",
|
||||
"",
|
||||
"// register any custom, 3rd party controllers here",
|
||||
"// app.register('some_controller_name', SomeImportedController);",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/controllers.json": {
|
||||
"contents": [
|
||||
"{",
|
||||
" \"controllers\": [],",
|
||||
" \"entrypoints\": []",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/controllers/hello_controller.js": {
|
||||
"contents": [
|
||||
"import { Controller } from '@hotwired/stimulus';",
|
||||
"",
|
||||
"/*",
|
||||
" * This is an example Stimulus controller!",
|
||||
" *",
|
||||
" * Any element with a data-controller=\"hello\" attribute will cause",
|
||||
" * this controller to be executed. The name \"hello\" comes from the filename:",
|
||||
" * hello_controller.js -> \"hello\"",
|
||||
" *",
|
||||
" * Delete this file or adapt it for your use!",
|
||||
" */",
|
||||
"export default class extends Controller {",
|
||||
" connect() {",
|
||||
" this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/styles/app.css": {
|
||||
"contents": [
|
||||
"body {",
|
||||
" background-color: lightgray;",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/webpack_encore.yaml": {
|
||||
"contents": [
|
||||
"webpack_encore:",
|
||||
" # The path where Encore is building the assets - i.e. Encore.setOutputPath()",
|
||||
" output_path: '%kernel.project_dir%/public/build'",
|
||||
" # If multiple builds are defined (as shown below), you can disable the default build:",
|
||||
" # output_path: false",
|
||||
"",
|
||||
" # Set attributes that will be rendered on all script and link tags",
|
||||
" script_attributes:",
|
||||
" defer: true",
|
||||
" # Uncomment (also under link_attributes) if using Turbo Drive",
|
||||
" # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change",
|
||||
" # 'data-turbo-track': reload",
|
||||
" # link_attributes:",
|
||||
" # Uncomment if using Turbo Drive",
|
||||
" # 'data-turbo-track': reload",
|
||||
"",
|
||||
" # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')",
|
||||
" # crossorigin: 'anonymous'",
|
||||
"",
|
||||
" # Preload all rendered script and link tags automatically via the HTTP/2 Link header",
|
||||
" # preload: true",
|
||||
"",
|
||||
" # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data",
|
||||
" # strict_mode: false",
|
||||
"",
|
||||
" # If you have multiple builds:",
|
||||
" # builds:",
|
||||
" # frontend: '%kernel.project_dir%/public/frontend/build'",
|
||||
"",
|
||||
" # pass the build name as the 3rd argument to the Twig functions",
|
||||
" # {{ encore_entry_script_tags('entry1', null, 'frontend') }}",
|
||||
"",
|
||||
"framework:",
|
||||
" assets:",
|
||||
" json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'",
|
||||
"",
|
||||
"#when@prod:",
|
||||
"# webpack_encore:",
|
||||
"# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)",
|
||||
"# # Available in version 1.2",
|
||||
"# cache: true",
|
||||
"",
|
||||
"#when@test:",
|
||||
"# webpack_encore:",
|
||||
"# strict_mode: false",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"package.json": {
|
||||
"contents": [
|
||||
"{",
|
||||
" \"devDependencies\": {",
|
||||
" \"@babel/core\": \"^7.17.0\",",
|
||||
" \"@babel/preset-env\": \"^7.16.0\",",
|
||||
" \"@hotwired/stimulus\": \"^3.0.0\",",
|
||||
" \"@symfony/stimulus-bridge\": \"^3.2.0\",",
|
||||
" \"@symfony/webpack-encore\": \"^4.0.0\",",
|
||||
" \"core-js\": \"^3.23.0\",",
|
||||
" \"regenerator-runtime\": \"^0.13.9\",",
|
||||
" \"webpack\": \"^5.74.0\",",
|
||||
" \"webpack-cli\": \"^4.10.0\",",
|
||||
" \"webpack-notifier\": \"^1.15.0\"",
|
||||
" },",
|
||||
" \"license\": \"UNLICENSED\",",
|
||||
" \"private\": true,",
|
||||
" \"scripts\": {",
|
||||
" \"dev-server\": \"encore dev-server\",",
|
||||
" \"dev\": \"encore dev\",",
|
||||
" \"watch\": \"encore dev --watch\",",
|
||||
" \"build\": \"encore production --progress\"",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"webpack.config.js": {
|
||||
"contents": [
|
||||
"const Encore = require('@symfony/webpack-encore');",
|
||||
"",
|
||||
"// Manually configure the runtime environment if not already configured yet by the \"encore\" command.",
|
||||
"// It's useful when you use tools that rely on webpack.config.js file.",
|
||||
"if (!Encore.isRuntimeEnvironmentConfigured()) {",
|
||||
" Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');",
|
||||
"}",
|
||||
"",
|
||||
"Encore",
|
||||
" // directory where compiled assets will be stored",
|
||||
" .setOutputPath('public/build/')",
|
||||
" // public path used by the web server to access the output path",
|
||||
" .setPublicPath('/build')",
|
||||
" // only needed for CDN's or subdirectory deploy",
|
||||
" //.setManifestKeyPrefix('build/')",
|
||||
"",
|
||||
" /*",
|
||||
" * ENTRY CONFIG",
|
||||
" *",
|
||||
" * Each entry will result in one JavaScript file (e.g. app.js)",
|
||||
" * and one CSS file (e.g. app.css) if your JavaScript imports CSS.",
|
||||
" */",
|
||||
" .addEntry('app', './assets/app.js')",
|
||||
"",
|
||||
" // enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)",
|
||||
" .enableStimulusBridge('./assets/controllers.json')",
|
||||
"",
|
||||
" // When enabled, Webpack \"splits\" your files into smaller pieces for greater optimization.",
|
||||
" .splitEntryChunks()",
|
||||
"",
|
||||
" // will require an extra script tag for runtime.js",
|
||||
" // but, you probably want this, unless you're building a single-page app",
|
||||
" .enableSingleRuntimeChunk()",
|
||||
"",
|
||||
" /*",
|
||||
" * FEATURE CONFIG",
|
||||
" *",
|
||||
" * Enable & configure other features below. For a full",
|
||||
" * list of features, see:",
|
||||
" * https://symfony.com/doc/current/frontend.html#adding-more-features",
|
||||
" */",
|
||||
" .cleanupOutputBeforeBuild()",
|
||||
" .enableBuildNotifications()",
|
||||
" .enableSourceMaps(!Encore.isProduction())",
|
||||
" // enables hashed filenames (e.g. app.abc123.css)",
|
||||
" .enableVersioning(Encore.isProduction())",
|
||||
"",
|
||||
" // configure Babel",
|
||||
" // .configureBabel((config) => {",
|
||||
" // config.plugins.push('@babel/a-babel-plugin');",
|
||||
" // })",
|
||||
"",
|
||||
" // enables and configure @babel/preset-env polyfills",
|
||||
" .configureBabelPresetEnv((config) => {",
|
||||
" config.useBuiltIns = 'usage';",
|
||||
" config.corejs = '3.23';",
|
||||
" })",
|
||||
"",
|
||||
" // enables Sass/SCSS support",
|
||||
" //.enableSassLoader()",
|
||||
"",
|
||||
" // uncomment if you use TypeScript",
|
||||
" //.enableTypeScriptLoader()",
|
||||
"",
|
||||
" // uncomment if you use React",
|
||||
" //.enableReactPreset()",
|
||||
"",
|
||||
" // uncomment to get integrity=\"...\" attributes on your script & link tags",
|
||||
" // requires WebpackEncoreBundle 1.4 or higher",
|
||||
" //.enableIntegrityHashes(Encore.isProduction())",
|
||||
"",
|
||||
" // uncomment if you're having problems with a jQuery plugin",
|
||||
" //.autoProvidejQuery()",
|
||||
";",
|
||||
"",
|
||||
"module.exports = Encore.getWebpackConfig();",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "eff2e505d4557c967b6710fe06bd947ba555cae5"
|
||||
}
|
||||
}
|
||||
}
|
||||
+41
-3
@@ -132,6 +132,7 @@
|
||||
"httpclient": "symfony/http-client",
|
||||
"httpfoundation": "symfony/http-foundation",
|
||||
"httpkernel": "symfony/http-kernel",
|
||||
"importmap": "symfony/asset-mapper",
|
||||
"inflector": "symfony/inflector",
|
||||
"infobip-mailer": "symfony/infobip-mailer",
|
||||
"infobip-notifier": "symfony/infobip-notifier",
|
||||
@@ -348,6 +349,9 @@
|
||||
"smsmodenotifier": "symfony/smsmode-notifier",
|
||||
"spot-hit-notifier": "symfony/spot-hit-notifier",
|
||||
"spothitnotifier": "symfony/spot-hit-notifier",
|
||||
"stimulus": "symfony/stimulus-bundle",
|
||||
"stimulus-bundle": "symfony/stimulus-bundle",
|
||||
"stimulusbundle": "symfony/stimulus-bundle",
|
||||
"stopwatch": "symfony/stopwatch",
|
||||
"string": "symfony/string",
|
||||
"swiftmailer": "symfony/swiftmailer-bundle",
|
||||
@@ -538,6 +542,9 @@
|
||||
"symfony/amazon-sns-notifier": [
|
||||
"5.4"
|
||||
],
|
||||
"symfony/asset-mapper": [
|
||||
"6.3"
|
||||
],
|
||||
"symfony/bandwidth-notifier": [
|
||||
"6.3"
|
||||
],
|
||||
@@ -824,6 +831,9 @@
|
||||
"symfony/spot-hit-notifier": [
|
||||
"5.3"
|
||||
],
|
||||
"symfony/stimulus-bundle": [
|
||||
"2.9"
|
||||
],
|
||||
"symfony/swiftmailer-bundle": [
|
||||
"2.5"
|
||||
],
|
||||
@@ -848,7 +858,8 @@
|
||||
"4.4",
|
||||
"5.0",
|
||||
"5.3",
|
||||
"5.4"
|
||||
"5.4",
|
||||
"6.3"
|
||||
],
|
||||
"symfony/twilio-notifier": [
|
||||
"5.0"
|
||||
@@ -868,7 +879,8 @@
|
||||
"2.6"
|
||||
],
|
||||
"symfony/ux-translator": [
|
||||
"2.7"
|
||||
"2.8",
|
||||
"2.9"
|
||||
],
|
||||
"symfony/validator": [
|
||||
"4.1",
|
||||
@@ -896,7 +908,8 @@
|
||||
"1.0",
|
||||
"1.6",
|
||||
"1.9",
|
||||
"1.10"
|
||||
"1.10",
|
||||
"2.0"
|
||||
],
|
||||
"symfony/workflow": [
|
||||
"3.3"
|
||||
@@ -970,6 +983,13 @@
|
||||
"php-http/discovery": ">=1.18"
|
||||
}
|
||||
},
|
||||
"symfony/asset-mapper": {
|
||||
"6.3": {
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0",
|
||||
"symfony/framework-bundle": "<6.3",
|
||||
"symfony/twig-bundle": "<6.3"
|
||||
}
|
||||
},
|
||||
"symfony/debug-bundle": {
|
||||
"5.3": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
@@ -1016,12 +1036,21 @@
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
}
|
||||
},
|
||||
"symfony/stimulus-bundle": {
|
||||
"2.9": {
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0",
|
||||
"symfony/webpack-encore-bundle": "<2.0"
|
||||
}
|
||||
},
|
||||
"symfony/twig-bundle": {
|
||||
"5.3": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
},
|
||||
"5.4": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
},
|
||||
"6.3": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
}
|
||||
},
|
||||
"symfony/uid": {
|
||||
@@ -1029,6 +1058,11 @@
|
||||
"symfony/framework-bundle": "<6.2"
|
||||
}
|
||||
},
|
||||
"symfony/ux-translator": {
|
||||
"2.9": {
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
||||
}
|
||||
},
|
||||
"symfony/validator": {
|
||||
"5.3": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
@@ -1045,6 +1079,10 @@
|
||||
"symfony/webpack-encore-bundle": {
|
||||
"1.10": {
|
||||
"symfony/framework-bundle": "<5.4"
|
||||
},
|
||||
"2.0": {
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0",
|
||||
"symfony/framework-bundle": "<5.4"
|
||||
}
|
||||
},
|
||||
"zenstruck/foundry": {
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/asset-mapper": {
|
||||
"manifest": {
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"importmap.php": "importmap.php"
|
||||
},
|
||||
"gitignore": [
|
||||
"/%PUBLIC_DIR%/assets/"
|
||||
],
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " {{ importmap() }}",
|
||||
"position": "after_target",
|
||||
"target": "{% block javascripts %}",
|
||||
"warn_if_missing": true
|
||||
},
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " <link rel=\"stylesheet\" href=\"{{ asset('styles/app.css') }}\">",
|
||||
"position": "after_target",
|
||||
"target": "{% block stylesheets %}",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
],
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<6.3",
|
||||
"symfony/twig-bundle": "<6.3",
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"assets/app.js": {
|
||||
"contents": [
|
||||
"/*",
|
||||
" * Welcome to your app's main JavaScript file!",
|
||||
" *",
|
||||
" * This file will be included onto the page via the importmap() Twig function,",
|
||||
" * which should already be in your base.html.twig.",
|
||||
" */",
|
||||
"console.log('This log comes from assets/app.js - welcome to AssetMapper! \ud83c\udf89')",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/styles/app.css": {
|
||||
"contents": [
|
||||
"body {",
|
||||
" background-color: skyblue;",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/asset_mapper.yaml": {
|
||||
"contents": [
|
||||
"framework:",
|
||||
" asset_mapper:",
|
||||
" # The paths to make available to the asset mapper.",
|
||||
" paths:",
|
||||
" - assets/",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"importmap.php": {
|
||||
"contents": [
|
||||
"<?php",
|
||||
"",
|
||||
"/**",
|
||||
" * Returns the import map for this application.",
|
||||
" *",
|
||||
" * - \"path\" is a path inside the asset mapper system. Use the",
|
||||
" * \"debug:asset-map\" command to see the full list of paths.",
|
||||
" *",
|
||||
" * - \"preload\" set to true for any modules that are loaded on the initial",
|
||||
" * page load to help the browser download them earlier.",
|
||||
" *",
|
||||
" * The \"importmap:require\" command can be used to add new entries to this file.",
|
||||
" *",
|
||||
" * This file has been auto-generated by the importmap commands.",
|
||||
" */",
|
||||
"return [",
|
||||
" 'app' => [",
|
||||
" 'path' => 'app.js',",
|
||||
" 'preload' => true,",
|
||||
" ],",
|
||||
"];",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "e8c46ba5e488fc2d7462ab6832559ab93867370a"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/stimulus-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\UX\\StimulusBundle\\StimulusBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/"
|
||||
},
|
||||
"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 // enables the Symfony UX Stimulus bridge (used in assets/bootstrap.js)\n .enableStimulusBridge('./assets/controllers.json')",
|
||||
"position": "after_target",
|
||||
"target": ".splitEntryChunks()"
|
||||
},
|
||||
{
|
||||
"file": "assets/app.js",
|
||||
"content": "import './bootstrap.js';",
|
||||
"position": "top",
|
||||
"warn_if_missing": true
|
||||
},
|
||||
{
|
||||
"file": "assets/bootstrap.js",
|
||||
"content": "import { startStimulusApp } from '@symfony/stimulus-bridge';\n\n// Registers Stimulus controllers from controllers.json and in the controllers/ directory\nexport const app = startStimulusApp(require.context(\n '@symfony/stimulus-bridge/lazy-controller-loader!./controllers',\n true,\n /\\.[jt]sx?$/\n));",
|
||||
"position": "top",
|
||||
"requires": "symfony/webpack-encore-bundle"
|
||||
},
|
||||
{
|
||||
"file": "assets/bootstrap.js",
|
||||
"content": "import { startStimulusApp } from '@symfony/stimulus-bundle';\n\nconst app = startStimulusApp();",
|
||||
"position": "top",
|
||||
"requires": "symfony/asset-mapper"
|
||||
},
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " {{ ux_controller_link_tags() }}",
|
||||
"position": "after_target",
|
||||
"target": "{% block stylesheets %}",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"assets/bootstrap.js": {
|
||||
"contents": [
|
||||
"// register any custom, 3rd party controllers here",
|
||||
"// app.register('some_controller_name', SomeImportedController);",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/controllers.json": {
|
||||
"contents": [
|
||||
"{",
|
||||
" \"controllers\": [],",
|
||||
" \"entrypoints\": []",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/controllers/hello_controller.js": {
|
||||
"contents": [
|
||||
"import { Controller } from '@hotwired/stimulus';",
|
||||
"",
|
||||
"/*",
|
||||
" * This is an example Stimulus controller!",
|
||||
" *",
|
||||
" * Any element with a data-controller=\"hello\" attribute will cause",
|
||||
" * this controller to be executed. The name \"hello\" comes from the filename:",
|
||||
" * hello_controller.js -> \"hello\"",
|
||||
" *",
|
||||
" * Delete this file or adapt it for your use!",
|
||||
" */",
|
||||
"export default class extends Controller {",
|
||||
" connect() {",
|
||||
" this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "a93bd27f5f84c8b6057f8c5a5d281de1fa041990"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/twig-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\Bundle\\TwigBundle\\TwigBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"templates/": "templates/"
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<5.3"
|
||||
}
|
||||
},
|
||||
"files": {
|
||||
"config/packages/twig.yaml": {
|
||||
"contents": [
|
||||
"twig:",
|
||||
" default_path: '%kernel.project_dir%/templates'",
|
||||
"",
|
||||
"when@test:",
|
||||
" twig:",
|
||||
" strict_variables: true",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"templates/base.html.twig": {
|
||||
"contents": [
|
||||
"<!DOCTYPE html>",
|
||||
"<html>",
|
||||
" <head>",
|
||||
" <meta charset=\"UTF-8\">",
|
||||
" <title>{% block title %}Welcome!{% endblock %}</title>",
|
||||
" <link rel=\"icon\" href=\"data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>\u26ab\ufe0f</text></svg>\">",
|
||||
" {% block stylesheets %}",
|
||||
" {% endblock %}",
|
||||
"",
|
||||
" {% block javascripts %}",
|
||||
" {% endblock %}",
|
||||
" </head>",
|
||||
" <body>",
|
||||
" {% block body %}{% endblock %}",
|
||||
" </body>",
|
||||
"</html>",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "b7772eb20e92f3fb4d4fe756e7505b4ba2ca1a2c"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/ux-translator": {
|
||||
"manifest": {
|
||||
"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"
|
||||
}
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"assets/translator.js": {
|
||||
"contents": [
|
||||
"import { trans, getLocale, setLocale, setLocaleFallbacks } from '@symfony/ux-translator';",
|
||||
"/*",
|
||||
" * This file is part of the Symfony UX Translator package.",
|
||||
" *",
|
||||
" * If folder \"../var/translations\" does not exist, or some translations are missing,",
|
||||
" * you must warmup your Symfony cache to refresh JavaScript translations.",
|
||||
" *",
|
||||
" * If you use TypeScript, you can rename this file to \"translator.ts\" to take advantage of types checking.",
|
||||
" */",
|
||||
"",
|
||||
"setLocaleFallbacks(localeFallbacks);",
|
||||
"",
|
||||
"export { trans };",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/ux_translator.yaml": {
|
||||
"contents": [
|
||||
"ux_translator:",
|
||||
" # The directory where the JavaScript translations are dumped",
|
||||
" dump_directory: '%kernel.project_dir%/var/translations'",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"var/translations/configuration.js": {
|
||||
"contents": [
|
||||
"export const localeFallbacks = {};",
|
||||
"",
|
||||
"console.log('Run bin/console cache:warmup to generate the translation files.');",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"var/translations/index.js": {
|
||||
"contents": [
|
||||
"console.log('Run bin/console cache:warmup to generate the translation files.');",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "bc396565cc4cab95692dd6df810553dc22e352e1"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -267,7 +267,7 @@
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "f8fc53f1942f76679e9ee3c25fd44865355707b5"
|
||||
"ref": "eff2e505d4557c967b6710fe06bd947ba555cae5"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
{
|
||||
"manifests": {
|
||||
"symfony/webpack-encore-bundle": {
|
||||
"manifest": {
|
||||
"bundles": {
|
||||
"Symfony\\WebpackEncoreBundle\\WebpackEncoreBundle": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"assets/": "assets/",
|
||||
"config/": "%CONFIG_DIR%/",
|
||||
"package.json": "package.json",
|
||||
"webpack.config.js": "webpack.config.js"
|
||||
},
|
||||
"gitignore": [
|
||||
"/node_modules/",
|
||||
"/%PUBLIC_DIR%/build/",
|
||||
"npm-debug.log",
|
||||
"yarn-error.log"
|
||||
],
|
||||
"conflict": {
|
||||
"symfony/framework-bundle": "<5.4",
|
||||
"symfony/flex": "<1.20.0 || >=2.0.0,<2.3.0"
|
||||
},
|
||||
"add-lines": [
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " {{ encore_entry_script_tags('app') }}",
|
||||
"position": "after_target",
|
||||
"target": "{% block javascripts %}",
|
||||
"warn_if_missing": true
|
||||
},
|
||||
{
|
||||
"file": "templates/base.html.twig",
|
||||
"content": " {{ encore_entry_link_tags('app') }}",
|
||||
"position": "after_target",
|
||||
"target": "{% block stylesheets %}",
|
||||
"warn_if_missing": true
|
||||
}
|
||||
],
|
||||
"post-install-output": [
|
||||
" * Install Yarn and run <fg=green>yarn install</>",
|
||||
"",
|
||||
" * Start the development server: <fg=green>yarn encore dev-server</>"
|
||||
]
|
||||
},
|
||||
"files": {
|
||||
"assets/app.js": {
|
||||
"contents": [
|
||||
"/*",
|
||||
" * Welcome to your app's main JavaScript file!",
|
||||
" *",
|
||||
" * We recommend including the built version of this JavaScript file",
|
||||
" * (and its CSS file) in your base layout (base.html.twig).",
|
||||
" */",
|
||||
"",
|
||||
"// any CSS you import will output into a single css file (app.css in this case)",
|
||||
"import './styles/app.css';",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"assets/styles/app.css": {
|
||||
"contents": [
|
||||
"body {",
|
||||
" background-color: lightgray;",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"config/packages/webpack_encore.yaml": {
|
||||
"contents": [
|
||||
"webpack_encore:",
|
||||
" # The path where Encore is building the assets - i.e. Encore.setOutputPath()",
|
||||
" output_path: '%kernel.project_dir%/public/build'",
|
||||
" # If multiple builds are defined (as shown below), you can disable the default build:",
|
||||
" # output_path: false",
|
||||
"",
|
||||
" # Set attributes that will be rendered on all script and link tags",
|
||||
" script_attributes:",
|
||||
" defer: true",
|
||||
" # Uncomment (also under link_attributes) if using Turbo Drive",
|
||||
" # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change",
|
||||
" # 'data-turbo-track': reload",
|
||||
" # link_attributes:",
|
||||
" # Uncomment if using Turbo Drive",
|
||||
" # 'data-turbo-track': reload",
|
||||
"",
|
||||
" # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')",
|
||||
" # crossorigin: 'anonymous'",
|
||||
"",
|
||||
" # Preload all rendered script and link tags automatically via the HTTP/2 Link header",
|
||||
" # preload: true",
|
||||
"",
|
||||
" # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data",
|
||||
" # strict_mode: false",
|
||||
"",
|
||||
" # If you have multiple builds:",
|
||||
" # builds:",
|
||||
" # frontend: '%kernel.project_dir%/public/frontend/build'",
|
||||
"",
|
||||
" # pass the build name as the 3rd argument to the Twig functions",
|
||||
" # {{ encore_entry_script_tags('entry1', null, 'frontend') }}",
|
||||
"",
|
||||
"framework:",
|
||||
" assets:",
|
||||
" json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'",
|
||||
"",
|
||||
"#when@prod:",
|
||||
"# webpack_encore:",
|
||||
"# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)",
|
||||
"# # Available in version 1.2",
|
||||
"# cache: true",
|
||||
"",
|
||||
"#when@test:",
|
||||
"# webpack_encore:",
|
||||
"# strict_mode: false",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"package.json": {
|
||||
"contents": [
|
||||
"{",
|
||||
" \"devDependencies\": {",
|
||||
" \"@babel/core\": \"^7.17.0\",",
|
||||
" \"@babel/preset-env\": \"^7.16.0\",",
|
||||
" \"@symfony/webpack-encore\": \"^4.0.0\",",
|
||||
" \"core-js\": \"^3.23.0\",",
|
||||
" \"regenerator-runtime\": \"^0.13.9\",",
|
||||
" \"webpack\": \"^5.74.0\",",
|
||||
" \"webpack-cli\": \"^4.10.0\",",
|
||||
" \"webpack-notifier\": \"^1.15.0\"",
|
||||
" },",
|
||||
" \"license\": \"UNLICENSED\",",
|
||||
" \"private\": true,",
|
||||
" \"scripts\": {",
|
||||
" \"dev-server\": \"encore dev-server\",",
|
||||
" \"dev\": \"encore dev\",",
|
||||
" \"watch\": \"encore dev --watch\",",
|
||||
" \"build\": \"encore production --progress\"",
|
||||
" }",
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
},
|
||||
"webpack.config.js": {
|
||||
"contents": [
|
||||
"const Encore = require('@symfony/webpack-encore');",
|
||||
"",
|
||||
"// Manually configure the runtime environment if not already configured yet by the \"encore\" command.",
|
||||
"// It's useful when you use tools that rely on webpack.config.js file.",
|
||||
"if (!Encore.isRuntimeEnvironmentConfigured()) {",
|
||||
" Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');",
|
||||
"}",
|
||||
"",
|
||||
"Encore",
|
||||
" // directory where compiled assets will be stored",
|
||||
" .setOutputPath('public/build/')",
|
||||
" // public path used by the web server to access the output path",
|
||||
" .setPublicPath('/build')",
|
||||
" // only needed for CDN's or subdirectory deploy",
|
||||
" //.setManifestKeyPrefix('build/')",
|
||||
"",
|
||||
" /*",
|
||||
" * ENTRY CONFIG",
|
||||
" *",
|
||||
" * Each entry will result in one JavaScript file (e.g. app.js)",
|
||||
" * and one CSS file (e.g. app.css) if your JavaScript imports CSS.",
|
||||
" */",
|
||||
" .addEntry('app', './assets/app.js')",
|
||||
"",
|
||||
" // When enabled, Webpack \"splits\" your files into smaller pieces for greater optimization.",
|
||||
" .splitEntryChunks()",
|
||||
"",
|
||||
" // will require an extra script tag for runtime.js",
|
||||
" // but, you probably want this, unless you're building a single-page app",
|
||||
" .enableSingleRuntimeChunk()",
|
||||
"",
|
||||
" /*",
|
||||
" * FEATURE CONFIG",
|
||||
" *",
|
||||
" * Enable & configure other features below. For a full",
|
||||
" * list of features, see:",
|
||||
" * https://symfony.com/doc/current/frontend.html#adding-more-features",
|
||||
" */",
|
||||
" .cleanupOutputBeforeBuild()",
|
||||
" .enableBuildNotifications()",
|
||||
" .enableSourceMaps(!Encore.isProduction())",
|
||||
" // enables hashed filenames (e.g. app.abc123.css)",
|
||||
" .enableVersioning(Encore.isProduction())",
|
||||
"",
|
||||
" // configure Babel",
|
||||
" // .configureBabel((config) => {",
|
||||
" // config.plugins.push('@babel/a-babel-plugin');",
|
||||
" // })",
|
||||
"",
|
||||
" // enables and configure @babel/preset-env polyfills",
|
||||
" .configureBabelPresetEnv((config) => {",
|
||||
" config.useBuiltIns = 'usage';",
|
||||
" config.corejs = '3.23';",
|
||||
" })",
|
||||
"",
|
||||
" // enables Sass/SCSS support",
|
||||
" //.enableSassLoader()",
|
||||
"",
|
||||
" // uncomment if you use TypeScript",
|
||||
" //.enableTypeScriptLoader()",
|
||||
"",
|
||||
" // uncomment if you use React",
|
||||
" //.enableReactPreset()",
|
||||
"",
|
||||
" // uncomment to get integrity=\"...\" attributes on your script & link tags",
|
||||
" // requires WebpackEncoreBundle 1.4 or higher",
|
||||
" //.enableIntegrityHashes(Encore.isProduction())",
|
||||
"",
|
||||
" // uncomment if you're having problems with a jQuery plugin",
|
||||
" //.autoProvidejQuery()",
|
||||
";",
|
||||
"",
|
||||
"module.exports = Encore.getWebpackConfig();",
|
||||
""
|
||||
],
|
||||
"executable": false
|
||||
}
|
||||
},
|
||||
"ref": "13ebe04e25085e2ff0bcb0f9218b561d8b5089f3"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user