Creating a component

1. Checkout master

$ git checkout master

2. Install dependencies

$ npm i

Then we bootstrap, installing all the dependencies for the packages:

$ npm run lerna:bootstrap-local

As a general workflow, commit changes.

$ git add .
$ npm run commit

3. Dev branch

Checkout a developing branch for the fix or new component, and push it.

$ git checkout -b <name of branch>
$ git push -u origin <name of branch>

4. Run the script

$ npm run create:component "New component name"
$ npm run lerna:bootstrap-local

This script will copy and rename all the files and references for you, set up scaffolding documentation files and update references to bundle. It will also build the files and documentation one time!

Table of Contents

Edit this section, Opens in new window
Contact us, Opens in new window