Skip to content

Latest commit

 

History

History
104 lines (89 loc) · 3.05 KB

README.md

File metadata and controls

104 lines (89 loc) · 3.05 KB

npm-package-cli

standard-readme compliant

A CLI tool used to normalize the creation, management, and distribution of NPM packages

Table of Contents

Install

CNPM

cnpm i @eliassama/npm-package-cli -g

NPM

npm i @eliassama/npm-package-cli -g

YARN

yarn global @eliassama/npm-package-cli

Usage

Introduce

You can run the following command to complete the operation. Install the npm package globally before using it: @eliassama/npm-package-cli

Commands

config <command>

  • author <option>
    • Description: Set the default author information.
    • options:
      • -n, --name : Set the default author name.
      • -e, --email : Set the default author email.
      • -u, --url : Set the default author address.
    • Synopsis
      # Set the default author name.
      # Run either of the following commands.
      npm-template config author -n eliassama 
      npm-template config author --name eliassama 
      
      # Set the default author name.
      # Run either of the following commands.
      npm-template config author -e github@elias.ink
      npm-template config author --email github@elias.ink
         
      # Set the default author name.
      # Run either of the following commands.
      npm-template config author -u https://github.com/eliassama
      npm-template config author --url https://github.com/eliassama
      
      # Set the email address, URL, and name of the default author.
      # Run either of the following commands.
      npm-template config author -n eliassama -e github@elias.ink -u https://github.com/eliassama
      npm-template config author --name eliassama --email github@elias.ink --url https://github.com/eliassama
  • help <command>
    • Description: Use the help command to view the command information.
    • commands:
      • author: View help information about Author Command
    • Synopsis
        # View help information about Author Command
        npm-template config help author

init <option>

  • Description: Initialize the NPM package base file.
  • options:
    • -ts, --typescript: Initialize to create a typescript NPM package.
  • Synopsis
      # Initialize to create a typescript NPM package.
      # Run either of the following commands.
      npm-template init -ts
      npm-template init --typescript 

help <command>

  • Description: Use the help command to view the command information.
  • command:
    • config: View help information about config Command.
    • init: View help information about init Command.
  • Synopsis
      # View help information about config Command.
      npm-template help config
      
      # View help information about init Command.
      npm-template help init

Maintainers

@eliassama