1.5.0 • Published 5 years ago

slush-storefront v1.5.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Slush StoreFront

Greenkeeper badge

npm build deps semantic-release Commitizen friendly

Slush generator for Searchandiser UI projects

Getting Started

Install slush globally:

$ npm install -g slush

Install slush-storefront globally:

$ npm install -g slush-storefront

Usage

This generator may be used to create any of the following StoreFront artifacts:

TypeCommandSupports PromptsSupports CLI
projectslush storefrontYN
componentslush storefront:componentYY

Generating StoreFront Projects

Create a new folder for your project:

$ mkdir my-storefront

Run the generator from within the new folder:

$ cd my-storefront && slush storefront

Generating StoreFront Components

via Prompts

To generate a component by answering a series of questions, execute the following:

slush storefront:component

via CLI

To generate a component directly from the command line, execute the following:

slush storefront:component <ComponentName> <path/to/components/directory>

When generating the component's definition and test files, the path argument is implicitly relative to the project's source code and test code directories (by default, these are assumed to be src/ and test/unit). The following flags may be used to override these defaults:

# Include the --srcRoot flag to overwrite the default source code directory.
slush storefront:component <ComponentName> <path/to/components/directory> --srcRoot <path/to/src/root>
# Include the --testRoot flag to overwrite the default test directory.
slush storefront:component <ComponentName> <path/to/components/directory> --testRoot <path/to/test/root>

Please note that using non-default values for the source or test directories will require an update to the project's Webpack configuration file.

Getting To Know Slush

Slush is a tool that uses Gulp for project scaffolding.

Slush does not contain anything "out of the box", except the ability to locate installed slush generators and to run them with liftoff.

To find out more about Slush, check out the documentation.

Support

If you have any problem or suggestion please open an issue here.