From 6f68bcbd5dd19c4a743e88a0987fa4236de6817a Mon Sep 17 00:00:00 2001 From: "github-action[bot]" <> Date: Thu, 30 Nov 2023 19:29:59 +0000 Subject: [PATCH] Update Flex endpoint --- ...63c141ebe30e21daf5e310bb58802384936b8.json | 96 +++++++++++++++++++ symfony.asset-mapper.6.4.json | 6 +- 2 files changed, 99 insertions(+), 3 deletions(-) create mode 100644 archived/symfony.asset-mapper/7ef63c141ebe30e21daf5e310bb58802384936b8.json diff --git a/archived/symfony.asset-mapper/7ef63c141ebe30e21daf5e310bb58802384936b8.json b/archived/symfony.asset-mapper/7ef63c141ebe30e21daf5e310bb58802384936b8.json new file mode 100644 index 00000000..0792c559 --- /dev/null +++ b/archived/symfony.asset-mapper/7ef63c141ebe30e21daf5e310bb58802384936b8.json @@ -0,0 +1,96 @@ +{ + "manifests": { + "symfony/asset-mapper": { + "manifest": { + "copy-from-recipe": { + "assets/": "assets/", + "config/": "%CONFIG_DIR%/", + "importmap.php": "importmap.php" + }, + "gitignore": [ + "/%PUBLIC_DIR%/assets/", + "/assets/vendor" + ], + "add-lines": [ + { + "file": "templates/base.html.twig", + "content": " {{ importmap('app') }}", + "position": "after_target", + "target": "{% block javascripts %}", + "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.", + " */", + "import './styles/app.css'", + "", + "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": [ + " [", + " 'path' => './assets/app.js',", + " 'entrypoint' => true,", + " ],", + "];", + "" + ], + "executable": false + } + }, + "ref": "7ef63c141ebe30e21daf5e310bb58802384936b8" + } + } +} diff --git a/symfony.asset-mapper.6.4.json b/symfony.asset-mapper.6.4.json index e220ac45..0792c559 100644 --- a/symfony.asset-mapper.6.4.json +++ b/symfony.asset-mapper.6.4.json @@ -72,8 +72,8 @@ " * - \"path\" is a path inside the asset mapper system. Use the", " * \"debug:asset-map\" command to see the full list of paths.", " *", - " * - \"entrypoint\" (JavaScript only) set to true for any module that will", - " * be used as an \"entrypoint\" (and passed to the importmap() Twig function).", + " * - \"entrypoint\" (JavaScript only) set to true for any module that will", + " * be used as an \"entrypoint\" (and passed to the importmap() Twig function).", " *", " * The \"importmap:require\" command can be used to add new entries to this file.", " *", @@ -90,7 +90,7 @@ "executable": false } }, - "ref": "040e08b268490e84a8e05652d6e9d3d49576f1c6" + "ref": "7ef63c141ebe30e21daf5e310bb58802384936b8" } } }