diff --git a/archived/symfony.asset-mapper/7824128ef0da56f09a376539d00a17e23e9b5054.json b/archived/symfony.asset-mapper/7824128ef0da56f09a376539d00a17e23e9b5054.json new file mode 100644 index 00000000..b0f53203 --- /dev/null +++ b/archived/symfony.asset-mapper/7824128ef0da56f09a376539d00a17e23e9b5054.json @@ -0,0 +1,99 @@ +{ + "manifests": { + "symfony/asset-mapper": { + "manifest": { + "copy-from-recipe": { + "assets/": "assets/", + "config/": "%CONFIG_DIR%/", + "importmap.php": "importmap.php" + }, + "gitignore": [ + "/%PUBLIC_DIR%/assets/", + "/assets/vendor/" + ], + "composer-scripts": { + "importmap:install": "symfony-cmd" + }, + "add-lines": [ + { + "file": "templates/base.html.twig", + "content": "{% block importmap %}{{ importmap('app') }}{% endblock %}", + "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": "7824128ef0da56f09a376539d00a17e23e9b5054" + } + } +} diff --git a/symfony.asset-mapper.6.4.json b/symfony.asset-mapper.6.4.json index 62cfa095..b0f53203 100644 --- a/symfony.asset-mapper.6.4.json +++ b/symfony.asset-mapper.6.4.json @@ -9,7 +9,7 @@ }, "gitignore": [ "/%PUBLIC_DIR%/assets/", - "/assets/vendor" + "/assets/vendor/" ], "composer-scripts": { "importmap:install": "symfony-cmd" @@ -93,7 +93,7 @@ "executable": false } }, - "ref": "568d44f71388f41f49dc382768fee20d52569359" + "ref": "7824128ef0da56f09a376539d00a17e23e9b5054" } } }