commit 51548683077f79ed2e36897680f848f1bce4558f Author: github-action[bot] <> Date: Sun Aug 16 09:14:47 2026 +0000 Create Flex endpoint diff --git a/index.json b/index.json new file mode 100644 index 00000000..8db49966 --- /dev/null +++ b/index.json @@ -0,0 +1,20 @@ +{ + "aliases": [], + "recipes": { + "tito10047/progressive-image-bundle": [ + "2.0" + ] + }, + "recipe-conflicts": [], + "versions": [], + "branch": "main", + "is_contrib": true, + "_links": { + "repository": "github.com/symfony/recipes-contrib", + "origin_template": "{package}:{version}@github.com/symfony/recipes-contrib:main", + "recipe_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2027/{package_dotted}.{version}.json", + "recipe_template_relative": "{package_dotted}.{version}.json", + "archived_recipes_template": "https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-2027/archived/{package_dotted}/{ref}.json", + "archived_recipes_template_relative": "archived/{package_dotted}/{ref}.json" + } +} diff --git a/tito10047.progressive-image-bundle.2.0.json b/tito10047.progressive-image-bundle.2.0.json new file mode 100644 index 00000000..5eff0b88 --- /dev/null +++ b/tito10047.progressive-image-bundle.2.0.json @@ -0,0 +1,102 @@ +{ + "manifests": { + "tito10047/progressive-image-bundle": { + "manifest": { + "bundles": { + "Tito10047\\ProgressiveImageBundle\\ProgressiveImageBundle": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "gitignore": [ + "/%PUBLIC_DIR%/media/pgi/" + ], + "composer-scripts": { + "progressive-image:generate-custom-css": "symfony-cmd" + }, + "add-lines": [ + { + "file": "assets/app.js", + "content": "import './styles/progressive-image-custom.css';", + "position": "after_target", + "target": "import './styles/app.css';", + "warn_if_missing": true + } + ], + "post-install-output": [ + " Progressive Image Bundle is ready to use.", + " - The responsive breakpoint stylesheet was generated and imported into", + " assets/app.js automatically. Re-run", + " bin/console progressive-image:generate-custom-css whenever you", + " change responsive_strategy.", + " - Render your first image:", + " ", + " - If your project does not use Symfony UX AssetMapper (e.g. Webpack", + " Encore), remove asset_mapper_resolver from", + " %CONFIG_DIR%/packages/progressive_image.yaml and from the", + " default resolver chain.", + " - Full docs: https://pgi.blue/guide/getting-started" + ] + }, + "files": { + "config/packages/progressive_image.yaml": { + "contents": [ + "# Documentation: https://pgi.blue/guide/getting-started", + "progressive_image:", + " resolvers:", + " default:", + " type: chain", + " # If your project does NOT use Symfony UX AssetMapper (e.g. Webpack Encore),", + " # remove \"asset_mapper_resolver\" below and from this chain.", + " resolvers: ['asset_mapper_resolver', 'filesystem_resolver']", + " asset_mapper_resolver:", + " type: asset_mapper", + " filesystem_resolver:", + " type: filesystem", + " roots: ['%kernel.project_dir%/public']", + " allowUnresolvable: true", + "", + " responsive_strategy:", + " grid:", + " framework: tailwind # or bootstrap, or custom", + " ratios:", + " landscape: '16/9'", + " portrait: '3/4'", + " square: '1/1'", + "", + " generation:", + " # Switch to \"async\" once you've wired up a Messenger transport for it.", + " strategy: sync", + "", + " variant_store:", + " storage: progressive_image.variant_storage", + "", + "services:", + " progressive_image.variant_storage.adapter:", + " class: League\\Flysystem\\Local\\LocalFilesystemAdapter", + " arguments:", + " - '%kernel.project_dir%/public/media/pgi'", + "", + " progressive_image.variant_storage:", + " class: League\\Flysystem\\Filesystem", + " arguments:", + " - '@progressive_image.variant_storage.adapter'", + "" + ], + "executable": false + }, + "config/routes/progressive_image.yaml": { + "contents": [ + "progressive_image:", + " resource: \"@ProgressiveImageBundle/config/routes.php\"", + "" + ], + "executable": false + } + }, + "ref": "65d38320c72068a8ecad71db6de32ec08691835c" + } + } +}