From 8264982ce92eff29a5d0f5c3d909dccf4378778b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pysiak?= <39049059+mpysiak@users.noreply.github.com> Date: Wed, 4 Jun 2025 12:04:33 +0200 Subject: [PATCH] Add recipe for sylius/product-bundle-plugin (#1810) * Add recipe for sylius/product-bundle-plugin * Change routes import --- .../packages/sylius_product_bundle.yaml | 2 ++ .../config/routes/sylius_product_bundle.yaml | 2 ++ .../product-bundle-plugin/1.0/manifest.json | 24 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 sylius/product-bundle-plugin/1.0/config/packages/sylius_product_bundle.yaml create mode 100644 sylius/product-bundle-plugin/1.0/config/routes/sylius_product_bundle.yaml create mode 100644 sylius/product-bundle-plugin/1.0/manifest.json diff --git a/sylius/product-bundle-plugin/1.0/config/packages/sylius_product_bundle.yaml b/sylius/product-bundle-plugin/1.0/config/packages/sylius_product_bundle.yaml new file mode 100644 index 00000000..493b9e27 --- /dev/null +++ b/sylius/product-bundle-plugin/1.0/config/packages/sylius_product_bundle.yaml @@ -0,0 +1,2 @@ +imports: + - { resource: "@SyliusProductBundlePlugin/config/config.yaml" } diff --git a/sylius/product-bundle-plugin/1.0/config/routes/sylius_product_bundle.yaml b/sylius/product-bundle-plugin/1.0/config/routes/sylius_product_bundle.yaml new file mode 100644 index 00000000..64004c11 --- /dev/null +++ b/sylius/product-bundle-plugin/1.0/config/routes/sylius_product_bundle.yaml @@ -0,0 +1,2 @@ +sylius_product_bundle: + resource: "@SyliusProductBundlePlugin/config/routes.yaml" diff --git a/sylius/product-bundle-plugin/1.0/manifest.json b/sylius/product-bundle-plugin/1.0/manifest.json new file mode 100644 index 00000000..9be4142b --- /dev/null +++ b/sylius/product-bundle-plugin/1.0/manifest.json @@ -0,0 +1,24 @@ +{ + "bundles": { + "Sylius\\ProductBundlePlugin\\SyliusProductBundlePlugin": [ + "all" + ] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "add-lines": [ + { + "file": "assets/admin/entrypoint.js", + "content": "import '@vendor/sylius/product-bundle-plugin/assets/admin/entrypoint';", + "position": "bottom", + "warn_if_missing": true + }, + { + "file": "assets/shop/entrypoint.js", + "content": "import '@vendor/sylius/product-bundle-plugin/assets/shop/entrypoint';", + "position": "bottom", + "warn_if_missing": true + } + ] +}