- Implemented `gererateBunConfig` and `buildWithBun` functions for building projects with Bun. - Added command-line interface using Commander for building projects. - Removed Rollup-related code and configuration. - Deleted unused config module. - Updated TypeScript configuration to extend from a shared config. - Added .npmrc for authentication tokens. - Created bun.config.ts for Bun build configuration. - Added README documentation for usage instructions.
22 lines
327 B
Markdown
22 lines
327 B
Markdown
# 对bun的build命令进行封装
|
|
|
|
|
|
## npx
|
|
使用方式
|
|
```bash
|
|
npx @kevisual/code-builder build
|
|
```
|
|
|
|
## global安装
|
|
```bash
|
|
npm install -g @kevisual/code-builder
|
|
code-builder build
|
|
```
|
|
|
|
## 作为库使用
|
|
|
|
```ts
|
|
import { buildWithBun } from '@kevisual/code-builder'
|
|
|
|
await buildWithBun({ meta: import.meta, dts: true })
|
|
``` |