From 7fc223ea43d1ff75da9a72e3fbc8bcca03573def Mon Sep 17 00:00:00 2001 From: liszkapawel Date: Thu, 4 Aug 2022 16:15:41 +0200 Subject: [PATCH 1/2] Fix webpack configuration and templates --- .../Resources/assets/admin/js}/attributeGroups.js | 0 src/Resources/assets/admin/js/index.js | 1 + tests/Application/assets/admin/entry.js | 1 - tests/Application/config/packages/assets.yaml | 8 ++++---- tests/Application/config/packages/webpack_encore.yaml | 4 ++-- .../Product/Attribute/attributeChoice.html.twig | 2 +- .../bundles/SyliusAdminBundle/_scripts.html.twig | 2 +- .../templates/bundles/SyliusAdminBundle/_styles.html.twig | 2 +- tests/Application/webpack.config.js | 5 +++-- webpack.config.js | 6 +++--- 10 files changed, 16 insertions(+), 15 deletions(-) rename {tests/Application/assets/admin/product => src/Resources/assets/admin/js}/attributeGroups.js (100%) diff --git a/tests/Application/assets/admin/product/attributeGroups.js b/src/Resources/assets/admin/js/attributeGroups.js similarity index 100% rename from tests/Application/assets/admin/product/attributeGroups.js rename to src/Resources/assets/admin/js/attributeGroups.js diff --git a/src/Resources/assets/admin/js/index.js b/src/Resources/assets/admin/js/index.js index e69de29..f15f39b 100644 --- a/src/Resources/assets/admin/js/index.js +++ b/src/Resources/assets/admin/js/index.js @@ -0,0 +1 @@ +import './attributeGroups' diff --git a/tests/Application/assets/admin/entry.js b/tests/Application/assets/admin/entry.js index 011c735..635f5ac 100644 --- a/tests/Application/assets/admin/entry.js +++ b/tests/Application/assets/admin/entry.js @@ -1,2 +1 @@ import 'sylius/bundle/AdminBundle/Resources/private/entry'; -import './product/attributeGroups' diff --git a/tests/Application/config/packages/assets.yaml b/tests/Application/config/packages/assets.yaml index dc3319c..16c18b1 100644 --- a/tests/Application/config/packages/assets.yaml +++ b/tests/Application/config/packages/assets.yaml @@ -5,7 +5,7 @@ framework: json_manifest_path: '%kernel.project_dir%/public/build/shop/manifest.json' admin: json_manifest_path: '%kernel.project_dir%/public/build/admin/manifest.json' - skeleton_shop: - json_manifest_path: '%kernel.project_dir%/public/build/bitbag/skeleton/shop/manifest.json' - skeleton_admin: - json_manifest_path: '%kernel.project_dir%/public/build/bitbag/skeleton/admin/manifest.json' + product_attribute_groups_shop: + json_manifest_path: '%kernel.project_dir%/public/build/bitbag/productAttributeGroups/shop/manifest.json' + product_attribute_groups_admin: + json_manifest_path: '%kernel.project_dir%/public/build/bitbag/productAttributeGroups/admin/manifest.json' diff --git a/tests/Application/config/packages/webpack_encore.yaml b/tests/Application/config/packages/webpack_encore.yaml index ded585b..f3cfe03 100644 --- a/tests/Application/config/packages/webpack_encore.yaml +++ b/tests/Application/config/packages/webpack_encore.yaml @@ -3,5 +3,5 @@ webpack_encore: builds: shop: '%kernel.project_dir%/public/build/shop' admin: '%kernel.project_dir%/public/build/admin' - skeleton_shop: '%kernel.project_dir%/public/build/bitbag/skeleton/shop' - skeleton_admin: '%kernel.project_dir%/public/build/bitbag/skeleton/admin' + product_attribute_groups_shop: '%kernel.project_dir%/public/build/bitbag/productAttributeGroups/shop' + product_attribute_groups_admin: '%kernel.project_dir%/public/build/bitbag/productAttributeGroups/admin' diff --git a/tests/Application/templates/bundles/SyliusAdminBundle/Product/Attribute/attributeChoice.html.twig b/tests/Application/templates/bundles/SyliusAdminBundle/Product/Attribute/attributeChoice.html.twig index 294020c..7ec509d 100644 --- a/tests/Application/templates/bundles/SyliusAdminBundle/Product/Attribute/attributeChoice.html.twig +++ b/tests/Application/templates/bundles/SyliusAdminBundle/Product/Attribute/attributeChoice.html.twig @@ -1,7 +1,7 @@
{{ form_widget(form, {'attr': {'class': 'ui fluid search dropdown', 'id': 'sylius_product_attribute_choice', 'data-attributes': ''}}) }} -