0.0.1 • Published 5 years ago
generator-square v0.0.1
generator-square
Generator to create Square 3.0 components
Installation
First, install Yeoman and generator-square using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-square
Then generate your new project:
yo square
TODO Move to a story book:
- goal of the project is to have easy to use generators for most components, so that they are all uniformly created.
- creating a generator
- name conventions -- Prefix all template files with a _
- always generator your files into a new directory, dont rely on the user to have already created a directory.
- for prompts you can examples here: https://github.com/SBoudrias/Inquirer.js/tree/master/packages/inquirer/examples as the prompt part is inquerer.js.
- To get started with a generator have a look at: https://yeoman.io/authoring/user-interactions.html https://yeoman.io/authoring/
- Don't create an entirely new generator, instead put your generator inside this project