@onr/cli
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published


CLI boilerplate for create project file and content with predefined templates for all type of file extensions.


Created by Pankod


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

Once the installation is done, you should run the following command for compile Typescript:
npm run build

It saves javascript files to dist folder.


Run the following command for compile typescript code anytime you made changes in code:
npm run watch

Once the installation is done, you can run the following command to start CLI.
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

Readme

Keywords

none

Package Sidebar

Install

npm i @onr/cli

Weekly Downloads

3

Version

0.3.4

License

ISC

Unpacked Size

180 kB

Total Files

49

Last publish

Collaborators

  • l443018
  • koshuang