Skip to content

Commit 1571b59

Browse files
authored
Add recipes for entrypoints (#32)
2 parents 3e3336d + dd79482 commit 1571b59

File tree

19 files changed

+167
-0
lines changed

19 files changed

+167
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
imports:
2+
- { resource: "@SyliusCustomerServicePlugin/config/config.yaml" }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Remove if you don't use SyliusAdminBundle
2+
sylius_customer_service_admin:
3+
resource: "@SyliusCustomerServicePlugin/config/admin_routing.yaml"
4+
prefix: '/%sylius_admin.path_name%'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"aliases": ["customer-service"],
3+
"bundles": {
4+
"Sylius\\CustomerServicePlugin\\SyliusCustomerServicePlugin": ["all"]
5+
},
6+
"copy-from-recipe": {
7+
"config/": "%CONFIG_DIR%/"
8+
},
9+
"add-lines": [
10+
{
11+
"file": "assets/admin/entrypoint.js",
12+
"content": "import '../../vendor/sylius/customer-service-plugin/assets/admin/entrypoint';",
13+
"position": "bottom",
14+
"warn_if_missing": true
15+
}
16+
]
17+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
imports:
2+
- { resource: "@SyliusLoyaltyPlugin/config/config.yaml" }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Remove if you don't use SyliusAdminBundle
2+
sylius_loyalty_admin:
3+
resource: "@SyliusLoyaltyPlugin/config/admin_routing.yaml"
4+
prefix: '/%sylius_admin.path_name%'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Remove if you don't use SyliusShopBundle
2+
sylius_loyalty_shop:
3+
resource: "@SyliusLoyaltyPlugin/config/shop_routing.yaml"
4+
prefix: /{_locale}
5+
requirements:
6+
_locale: ^[a-z]{2}(?:_[A-Z]{2})?$
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"aliases": ["loyalty"],
3+
"bundles": {
4+
"Sylius\\LoyaltyPlugin\\SyliusLoyaltyPlugin": ["all"]
5+
},
6+
"copy-from-recipe": {
7+
"config/": "%CONFIG_DIR%/"
8+
},
9+
"add-lines": [
10+
{
11+
"file": "assets/admin/entrypoint.js",
12+
"content": "import '../../vendor/sylius/loyalty-plugin/assets/admin/entrypoint';",
13+
"position": "bottom",
14+
"warn_if_missing": true
15+
},
16+
{
17+
"file": "assets/shop/entrypoint.js",
18+
"content": "import '../../vendor/sylius/loyalty-plugin/assets/shop/entrypoint';",
19+
"position": "bottom",
20+
"warn_if_missing": true
21+
}
22+
]
23+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
imports:
2+
- { resource: "@SyliusMultiSourceInventoryPlugin/config/config.yaml" }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Remove if you don't use SyliusAdminBundle
2+
sylius_multi_source_inventory_admin:
3+
resource: "@SyliusMultiSourceInventoryPlugin/config/admin_routing.yaml"
4+
prefix: '/%sylius_admin.path_name%'
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"aliases": ["multi-source-inventory"],
3+
"bundles": {
4+
"Sylius\\MultiSourceInventoryPlugin\\SyliusMultiSourceInventoryPlugin": ["all"]
5+
},
6+
"copy-from-recipe": {
7+
"config/": "%CONFIG_DIR%/"
8+
},
9+
"add-lines": [
10+
{
11+
"file": "assets/admin/entrypoint.js",
12+
"content": "import '../../vendor/sylius/multi-source-inventory-plugin/assets/admin/entrypoint';",
13+
"position": "bottom",
14+
"warn_if_missing": true
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)