@scayle/storefront-cli
0.15.0
Minor Changes
- Added new Storefront CLI command:
setup cms
The newsetup cmscommand streamlines the configuration of CMS providers for SCAYLE Storefront Application projects. It automates the setup process for both Contentful and Storyblok, ensuring quick and efficient integration with minimal manual configuration.Required Flags
The following flags are required for all providers:--provider(-p): The CMS provider to use (contentfulorstoryblok)--space-id(-s): The space ID of the CMS space to use
Contentful-specific required flags:
--access-token: The access token for the CMS--preview-token: Preview token for Contentful preview API access--management-token: Management token for Contentful management API access
The access and preview access token for Contentful can be found in your space's settings page, while the personal access token is located in your account settings. For further information, refer to the official Contentful documentation.Storyblok-specific required flags:
--access-token: The access token for the CMS--personal-access-token: Personal access token for Storyblok management API
The access token for Storyblok can be found on your space's settings page, while the personal access token is located in your account settings. For further information, refer to the official Storyblok documentation.Optional flag:
--import-content-model(-i): Import the content model into the CMS
Key features include:- Support for both Contentful and Storyblok CMS providers
- Automatic generation of environment variables with CMS-specific tokens and configuration
- Automatic updates to
nuxt.config.tswith the selected CMS provider configuration - Optional content model import feature allows you to populate CMS spaces with predefined content structures. Use this option only with empty CMS spaces, as it may overwrite any existing content models.
- Updated to fetch available features automatically from the live repository. This ensures that the list of features is always up-to-date even when using an older CLI version.
Patch Changes
- Added dependency
[email protected] - Added dependency
[email protected] - Added dependency
storyblok-js-client@^7.1.3 - Updated dependency
[email protected]to[email protected] - Updated dependency
[email protected]to[email protected] - Updated dependency
[email protected]to[email protected] - Enhanced user prompts for the flags in the
setup clicommand.
0.14.0
Minor Changes
- Updated the
git-revflag in thedeploycommand to begit-ref. This name more accurately reflects its usage as it requires a ref rather than a revision. The previous name is deprecated as a result of this change, but is still usable.
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.13.4
Patch Changes
- Updated dependency
[email protected]to[email protected] - Updated dependency
[email protected]to[email protected]
0.13.3
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.13.2
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.13.1
Patch Changes
- Added dependency
[email protected] - Added dependency
[email protected]
0.13.0
Minor Changes
- Introduced the
featurescommand.sfcli features listcan be used to list the available Storefront features for installation.sfcli features addcan be used to install a feature into your Storefront Application project. This command is equivalent to and replaces the previoussfcli addcommand.
Patch Changes
- Added dependency
[email protected] - Added dependency
[email protected]
0.12.2
Patch Changes
- Fixed incorrect file paths in the
searchandproduct-detailsfeature packages.
0.12.1
Patch Changes
- Added dependency
@nuxt/kit@catalog: - Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Fixed an issue where the
addcommand could not add files. Now thesrcDirconfiguration is automatically detected and the--src-dirflag has been removed.
0.12.0
Minor Changes
- Updated new/changed components for the
@scayle/storefront-promotionspackage.
0.11.1
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
[email protected]to[email protected]
0.11.0
Minor Changes
- Added support for
@scayle/storefront-basketin theaddcommand, enabling the copying of components and composables from the latest Storefront Application into the current project.
0.10.6
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.10.5
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.10.4
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected]
0.10.3
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.10.2
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
[email protected]to[email protected]
0.10.1
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.10.0
Minor Changes
- Fixed an issue where the
deploycommand would get stuck in an infinite loop when there were no new log lines to fetch. Now, when there are no new logs, fetching logs will be stopped until the next update cycle.
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.9.16
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.9.14
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.9.13
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.9.12
Patch Changes
- Added dependency
[email protected] - Fix issue with missing
@nuxt/clidependency and switch back tonuxi.
0.9.11
Patch Changes
- Added support for the updated translation file format introduced in Storefront Application
v1.10.0.
0.9.10
Patch Changes
- Removed dependency
[email protected] - Updated dependency
[email protected]to[email protected]
0.9.9
Patch Changes
- Fix creation of i18n translation files for current Storefront Application
0.9.8
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.9.7
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.9.6
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.9.5
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.9.4
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.9.3
Patch Changes
- Fixed the hostname of the SCAYLE Storefront Platform API
0.9.2
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
[email protected]to[email protected]
0.9.1
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.9.0
Minor Changes
- [CLI] Update the
setupcommand to generate configuration using the ICU Local Id's as translation file name.
0.8.3
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.8.2
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected]
0.8.1
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
[email protected]to[email protected]
0.8.0
Minor Changes
- Removed the unused
SFPromotionHeadlinecomponent from the 'files to add' list of the@scayle/storefront-promotionSDK.
0.7.0
Minor Changes
- Extended the list with of supported Storefront SDKs of the
addcommand to include the new packages'@scayle/storefront-navigation','@scayle/storefront-search'and'@scayle/storefront-promotions'.
0.6.2
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
[email protected]to[email protected]
0.6.1
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.6.0
Minor Changes
- A new
--only-envflag has been added to thesetupcommand to generate only the.envfile.
Since the.envfile is not included in version control, developers need to generate it manually when cloning a fresh copy of the repository. This flag simplifies that process.
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
[email protected]to[email protected]
0.5.6
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
[email protected]to[email protected]
0.5.5
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.5.4
Patch Changes
- Updated the generation of shop configuration environment variables. The shop-specific variables are now placed directly after the example variables to maintain context and ensure that the most important settings appear near the top.
0.5.3
Patch Changes
- Updated dependency
[email protected]to[email protected] - Resolved an issue where the
.envfile was being generated incorrectly, with unresolved dynamic environment variables still present. This caused certain commands in the Storefront Application to fail.
0.5.2
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.5.1
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.5.0
Minor Changes
- Add new Storefront CLI command:
deploy
The newdeploycommand simplifies the deployment of a Storefront Application project to the SCAYLE PaaS. It automates the process, ensuring that your storefront is quickly and efficiently deployed with minimal manual intervention.
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
[email protected]to[email protected]
0.4.5
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.4.4
Patch Changes
- Updated dependency
@inquirer/[email protected]to@inquirer/[email protected]
0.4.3
Patch Changes
- Added dependency
@inquirer/[email protected] - Removed dependency
[email protected] - Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Replaced
inquirerwith@inquirer/[email protected]independencies.
0.4.2
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.4.1
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.4.0
Minor Changes
- Added a new
should-overrideflag to thesetupcommand. When set, it automatically replaces existing.envandshops.tsfiles without prompting for confirmation.
Usage
0.3.0
Minor Changes
- Rename
Storefront CLIflags fromcamelCasetokebab-caseto ensure consistency with standard naming conventions.
0.2.2
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.2.1
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.2.0
Minor Changes
- Support saving and loading flags to a config file. This allows you to store global and tenant-specific configurations like
accessTokenandadminApiToken, eliminating the need to input these values every time a command is executed.
To use a config file place the./scayle/config.jsonfile either in your home directory or in the current working directory where commands are run. The structure of this config file should be as follows:
When no config file is found, the command will prompt you to save the flags used in the current command within the current directory. This can be disabled by using the--no-config-fileflag or setting theSCAYLE_CLI_NO_CONFIG_FILEenvironment variable to a truthy value.
0.1.5
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.1.4
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.1.3
Patch Changes
- Updated the locale code adjustment logic to only modify the
codewhen multiple shops share the same initialcountryCode.
Example: Countries withdecode anden-USlocale will now result inen-decode. This will result in shops to be created withen-deascodeand not with multiplede.
0.1.2
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.1.1
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected] - Updated dependency
[email protected]to[email protected]
0.1.0
Minor Changes
- Added new Storefront CLI command:
setup
The newsetupcommand streamlines the initial setup of a new SCAYLE Storefront Application project. It automatically creates tenant- and country-specific files, including:.envfile filled with correct environment variables according to the tenant and countries.shops.tsconfig file that already includes all configuration for all added country shops.- Translation files that will be created out of the existing
en-GB.jsoni18n file.
Patch Changes
- Added dependency
[email protected]
0.0.10
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.0.9
Patch Changes
- Updated dependency
@oclif/[email protected]to@oclif/[email protected]
0.0.8
Patch Changes
- Added dependency
@oclif/[email protected] - Added dependency
@oclif/[email protected] - Removed dependency
@oclif/plugin-plugins@^5 - Improved the developer experience by adding functionality to list all available commands and handle command typos more gracefully, providing better error messages.
- Updated the
README.mdfile with recommended usage instructions to improve clarity and help developers get started more easily.
0.0.7
Patch Changes
- Updated dependency
[email protected]to[email protected] - Updated dependency
[email protected]to[email protected]
0.0.6
Patch Changes
- Updated dependency
[email protected]to[email protected] - Updated dependency
[email protected]to[email protected]
0.0.5
Patch Changes
- Updated dependency
[email protected]to[email protected]
0.0.4
Patch Changes
0.0.3
Patch Changes
- Fixed an issue where the
@scayle/storefront-clipackage was missing thefeaturePackages.jsonin thedistfolder. - Add the
nuxidependency to the@scayle/storefront-clipackage to enable version-independent and Nuxt-context-independent command execution usingnpx @scayle/storefront-cli.
0.0.2
Patch Changes
- This release introduces the initial version of the SCAYLE Storefront CLI (
@scayle/storefront-cli), a powerful tool designed to streamline feature adoption within SCAYLE Storefront tenant projects. This addresses the challenge of integrating new features and updates delivered through independent feature packages, particularly when tenant projects are based on older versions of the SCAYLE Storefront Application.
Key Features include:- Simplified Feature Integration: The
addcommand automates the process of adding new features, including necessary UI components and dependencies. This leverages nuxi module add for seamless integration within Nuxt projects. - Preservation of Tenant Customizations: Intelligent conflict resolution prompts users to manage potential overwrites of existing components & files, ensuring tenant-specific code modifications are preserved. Alternatively, the CLI can generate copies of new components, facilitating side-by-side comparison and controlled updates.
- Incremental Feature Adoption: Tenants can now adopt new features without requiring a full Storefront Application upgrade, reducing disruption and development overhead.
- Efficient Component Delivery: While feature packages primarily contain composables and utilities, the CLI efficiently delivers associated components and tests by fetching those from the latest available SCAYLE Storefront Application release and extracting them during feature installation. This streamlines the integration process and minimizes manual file management.
- Simplified Feature Integration: The