Create a CLI to create each wrapper
As discussed with @timzallmann :
After we get to a stable configuration (probably after the first 3 components), instead of manually setting everything up for all components, we should create a cli to do that for us.
Basically, we should create something like create-react-app that would automatically create:
- the same folder structure for all components
- the same npm configuration
- the same webpack configuration
- the same tests configuration
- the same linters configuration
- the same CI pipeline strucutre
- the same security check
- the same documentation structure
All we'd need to do would be something like typing in the terminal
gl-create-component
> What is the name of the component?
gl-button
and this would be enough to set up everything automatically, enabling anyone to wrap components without human error.
The concept is the same as yeoman - http://yeoman.io/ - or vue-cli
/cc @timzallmann