Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

template-deprecated/create-node-cli-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-node-cli-app

Create node cli application.

Table of content

  1. Installation
  2. Usage
  3. Development

Installation

Option A

You can install by using bin script.

  1. Download file that match you os and cpu in bin
  2. make it execuable by chmod +x <path/to/file>
  3. learn more create-node-cli-app --help

Option B

Install by yarn or npm

  • Yarn
    1. run yarn create node-cli-app <app-name> [option...]
    2. learn more by yarn create node-cli-app --help
  • Npm
    1. run npm init node-cli-app <app-name> [option...] or npx create-node-cli-app <app-name> [option...]
    2. learn more by npm init node-cli-app --help or npx create-node-cli-app --help

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

  1. start: which run node index.js
  2. build: which build execuable file in bin folder (separate by os).
  3. deploy: which basically call npm run publish, you cannot use yarn

Releases

No releases published

Packages

No packages published