Reputation: 494
when creating a new SAP Spartacus project with Schematics in a programmatically way (interactive=false
)
ng add @spartacus/schematics@latest --skip-confirmation --interactive=false --base-url https://${FQDN} --pwa --base-site=powertools-spa --currency=usd --language=en,de --ssr
would it be possible to pass over the list of features to be enabled, different from the ones pre-defined in schema.json#L52?
"default": [
"ASM",
"Cart",
"WishList",
"Checkout",
"Order",
"Import-Export",
"Saved-Cart",
"Quick-Order",
"Image-Zoom",
"Product-Variants",
"SmartEdit",
"Store-Finder",
"Personalization",
"User-Account",
"User-Profile"
]
This is to avoid the need to manually install the additional features one by one:
ng add @spartacus/organization --skip-confirmation
ng add @spartacus/product-configurator --features="VC-Configurator" --skip-confirmation
List of available features from schema.json#L18:
"enum": [
"ASM",
"Import-Export",
"Saved-Cart",
"Quick-Order",
"CDC",
"CDS",
"Cart",
"WishList",
"Checkout",
"Checkout-B2B",
"Checkout-Scheduled-Replenishment",
"Order",
"Digital-Payments",
"EPD-Visualization",
"Administration",
"Order-Approval",
"Bulk-Pricing",
"Image-Zoom",
"Product-Variants",
"VC-Configurator",
"Textfield-Configurator",
"CPQ-Configurator",
"Qualtrics",
"SmartEdit",
"Store-Finder",
"Personalization",
"TMS-GTM",
"TMS-AEPL",
"User-Account",
"User-Profile"
],
thanks nicola
Upvotes: 0
Views: 129
Reputation: 885
Yes, it's possible to do it.
You can append multiple features
options, like so: ng add @spartacus/schematics .... --features=feature1 --features=feature2 ... --features=featureN
.
Upvotes: 3