Command | Description |
---|---|
build-fast | 使用 tsup build ts,生成 ejs / esm |
build | yarn build-fast |
test | 使用 uvu 测试 |
... | ... |
- 使用 typescript 编写,提供更好的代码提示和类型检查
- 包体积更小,轻量无依赖
- 内置 ESLint 和 Prettier 支持,让代码错误无所遁形
- uvu 配置,yarn test 轻量美妙的单元测试
- 无须配置,只需一个命令行
# npm
npm install --save lib
# yarn
yarn add lib
参数配置如下:
Option | Type | Description |
---|---|---|
param1 | string | intro param |
param1 | string | intro param |
import utils from lib
utils()
For more examples, please refer to the Documentation