File structure and Yarn scripting for developing, testing, documenting, and deploying a web component.
Installation
First, install Yeoman and generator-easy-wc
using yarn (we assume you have pre-installed node.js).
yarn global add yoyarn global add generator-easy-wc
Initialization
Then generate your new project. Creating the git project before generating allows husky
to set up your hooks appropriately. Once you've committed the generated code to master, I'd suggest branching immediately for appropriate use of a PR after you've established the functionality of your element:
mkdir element-name-herecd element-name-heregit inityo easy-wc# ... follow the prompts ... git add .git commit -am 'Generated Element'git checkout -b element-name-here
Prompts
_-----_ ╭──────────────────────────╮ | | │ Welcome to the │ |----| │ super-excellent │ `---------´ │ generator-easy-wc │
Getting To Know Yeoman
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
License
Apache-2.0 © Westbrook Johnson