features add
Overview
Adds a SCAYLE Storefront feature to your project, with options to include associated Vue components and unit tests. You can run it without arguments to see an interactive list of features or specify packages directly.
Features may include dependencies and a set of files. Adding the feature will install the related dependencies into your project and give you the option of copying over the files. Keep in mind, that once the files have been copied and dependencies installed you are still responsible for integrating those new components in your project in order for the feature to work.
In a fresh project there will likely be few issues, but if you have edited the code of your Storefront Application project there is the risk of conflicts when copying files. The features add
command is prepared for such eventualities. When it detects a conflict, it will prompt you to override the file. If you choose "yes", your local file will be replaced by the copied version. If you choose "no", the copied file will be saved with a .new
suffix, allowing you to then manually integrate the changes.
Usage
Arguments
[PACKAGES]
: (Optional) A space-separated list of specific package names to install, bypassing the interactive prompt.
Flags
-a
,--access-token=<value>
: (Required) Your access token for the Storefront Application repository.-c
,--should-copy
: Copies the relevant feature module components and related files into your project.-f
,--should-override
: Overrides existing files if conflicts are found during the copy process.
Example
