An open API service indexing awesome lists of open source software.

https://github.com/zhangyu1818/cjsb

A CLI tool to build the CommonJS library quickly.
https://github.com/zhangyu1818/cjsb

build-tool commonjs

Last synced: 3 months ago
JSON representation

A CLI tool to build the CommonJS library quickly.

Awesome Lists containing this project

README

        

# cjsb

A CLI tool to build the CommonJS library quickly, supports JavaScript, TypeScript and Monorepo.

## installation

```shell
npm i cjsb -D
```

```shell
yarn add cjsb --dev
```

## usage

```shell
cjsb --source src --outDir lib --nodeVersion 8 --declaration

cjsb [--source path/to/folder] [--outDir outDirName] [--nodeVersion version] [--declaration]
```

**monorepo**

```shell
cjsb --source src --packages packages/c packages/a packages/b
```

Some packages in Monorepo depend on each other, cjsb will pack them in pass order.