feat: refactor build process to use Bun, removing Rollup configuration
- 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.
This commit is contained in:
22
readme.md
Normal file
22
readme.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# 对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 })
|
||||
```
|
||||
Reference in New Issue
Block a user