README
Solera CLI
Solera CLI for React.
Getting Started
Installing
NPM
npm i solera -g
Yarn
yarn global add solera
Usage
VS CODE EXTENSIONS
if you are using Visual Studio Code, you might need to install some extensions to continue editing with the repository of Solera, you can get started by using:
solera start
Clone repository
If you don't have the cloned repository of a project in Solera use commands to install the latest version of the project.
solera new react solera-app
This command requires you to be authorized by Bitbucket client to download the packages.
Components and Containers
To add a component or a container in the project use:
solera add <item> <name>
Examples:
solera add component test
solera add container test
It will automatically add a new component/container and subscribe in your respective directory.
Multi Components and Containers
To add a multi-component that will receive sub-components or sub-containers in the future, use:
solera add <item> <name> --multi
To add sub-components or sub-containers together, just use:
solera add <item> <name> --multi --sub <subname>
Sub Components and Containers
To add a sub-component or sub-container over an existing multi-component or multi-container, use:
solera add <item> <name> --sub <subname>
Remember: Object {name} must be a multi-component or multi-container.