create-node-cli-app
v1.1.3
Published
Create node cli app
Downloads
7
Readme
create-node-cli-app
Create node cli application.
Table of content
Installation
Option A
You can install by using bin script.
- Download file that match you os and cpu in bin
- make it execuable by
chmod +x <path/to/file>
- learn more
create-node-cli-app --help
Option B
Install by yarn
or npm
- Yarn
- run
yarn create node-cli-app <app-name> [option...]
- learn more by
yarn create node-cli-app --help
- run
- Npm
- run
npm init node-cli-app <app-name> [option...]
ornpx create-node-cli-app <app-name> [option...]
- learn more by
npm init node-cli-app --help
ornpx create-node-cli-app --help
- run
Usage
create-node-cli-app <app-name...>
Create node cli app with typescript, yargs, tracer (as logger),
prompts, listr (as progressing), chalk (as colorize),
typedoc (as doc generator), jest (as testing tools).
Positionals:
app-name Application name, can be capital, and space name [string]
Options:
--help Show help [boolean]
--version Show version number [boolean]
--to-dir, -P Instead of create in current folder, use this. [string]
--space-replace this replacement will replace spaces [default: "-"]
--current, -C Create application to current folder [string]
Development
This generate command contain only 1 javasccript file which is index.js.
This use only yargs
to create cli, prompts
to make prompts command,
listr
to output result as progress text, mustache
to create file templates and pkg
to build binary file (which shouldn't be use).
You will have only 3 command possible with yarn
or npm
- start: which run
node index.js
- build: which build execuable file in bin folder (separate by os).
- deploy: which basically call
npm run publish
, you cannot useyarn