Sumor Builder Tool
Introduction
Sumor Builder Tool is a tool used to quickly build Node.JS libraries, providing functions such as fast testing, packaging, and publishing private NPM package.
Chinese Version
Installation
npm install -D @sumor-cloud/builder
Now, you can use the scb command to use the builder tool.
Usage
Initialization
Quickly initialize the project, generate sample programs and test cases, as well as build configuration files.
scb init
Code Checking
scb lint
Unit Testing
scb test
Packaging
scb build
Publish
Publish the library to the public repository
scb publish <version>
Publish the beta version
scb publish <version> -b
Publish the library to the private repository
scb publish <version> -r <registry> -u <username> -p <password>