voidzero-dev / voidzero-dev/vite-plus

Support `create-vite-plus`

Đang mở
#2,602 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
pending triage
Ngôn ngữ chính
Rust
Star
5.8k
Fork
262
Merge trung bình
23 giờ 41 phút
Pull request đã merge (30 ngày)
138

Mô tả

### Description

For users who don't use global `vp` binary, commands such as `pnpm create vite-plus` might be a more common way to create a project. This require `create-vite-plus` to be registered.

### Suggested solution

`create-vite-plus` package is registered by @ Boshen, it can be a small wrapper of `vite-plus` local cli package, runs `vp create` internally, creates smallest impact.

One problem is `create-vp` is not owned by Vite+ team right now.

### Alternative

Alternatively, we could move code about `vp create` and `vp migrate` to `create-vite-plus`, letting `vite-plus` depend on this package. This approach may bring some complexity, the main benefit is to avoid other Vite+ part be downloaded, which is not important enough.

### Additional context

_No response_

### Validations

- [x] Read the [Contributing Guidelines](https://github.com/voidzero-dev/vite-plus/blob/main/CONTRIBUTING.md).
- [x] Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- [x] Check that there isn't already an issue requesting the same feature.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng việc kiểm tra cách CLI vite-plus hiện tại cung cấp `vp create` và `vp migrate`, sau đó xem xét wrapper `create-vite-plus` được đề xuất cùng mối lo ngại về ownership xung quanh `create-vp`. Công việc được xem là hoàn tất khi người dùng có thể chạy `pnpm create vite-plus` để tạo project mà không cần binary `vp` toàn cục, đồng thời cách tiếp cận đóng gói được chọn đã được ghi lại và hoạt động.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
cli, tooling
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.