@onr/cli
v1.0.2
Published
<div align="center"> <img width="600" src="./cli.gif" > </div> <br/> <br/>
Downloads
10
Readme
About
By using the CLI tool, you may easily:
Create new files and folders with any file extension,
Add predefined content to newly created file by using built-in mustache templating engine.
Getting Started
Run the following method:
npm install
npm run build
It saves javascript files to dist folder.
npm run watch
npm run start
To customize helper-cli-boilerplate according to the needs of your project:
Add a new mustache template to templates folder and define file path to methods in helper.ts.
More info about mustache.js
TODO:
- add child page
Outline of some logics behind the methods:
With supported features
1. Page create
- Create page and module place
- Custom alias path for the page
- Auto generate definition file
2. Component create
- can specific component place
3. For both
- can auto export and append to index
- use styled component