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.
- Host: GitHub
- URL: https://github.com/zhangyu1818/cjsb
- Owner: zhangyu1818
- Created: 2021-07-29T15:19:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-09T12:43:03.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T08:45:03.337Z (5 months ago)
- Topics: build-tool, commonjs
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 --declarationcjsb [--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.