Crates.io | create-vue-monorepo-rs |
lib.rs | create-vue-monorepo-rs |
version | 0.0.10 |
source | src |
created_at | 2023-04-11 06:00:34.50394 |
updated_at | 2023-12-14 02:07:02.977308 |
description | A tool to quickly build a Vue workspace project managed by pnpm. |
homepage | |
repository | https://github.com/laqudee/create-vue-monorepo-rs |
max_upload_size | |
id | 835784 |
size | 604,872 |
create-vue-monorepo-rs
A tool to quickly build a Vue workspace project managed by pnpm.
Refactor the
create-vue-monorepo
CLI library using Rust. The original library was built using ESM.
技术栈 | 版本 |
---|---|
rust | 1.71.0 |
dialoguer | 0.11.0 |
tempfile | 3.5.0 |
thiserror | 1.0.40 |
console | 0.15.5 |
termcolor | 1.2.0 |
regex | 1.7.3 |
serde | 1.0.159 |
serde_json | 1.0.95 |
serde_derive | 1.0.159 |
git2 | 0.18.1 |
目前仅支持
cargo install
安装方式
cargo install create-vue-monorepo-rs
# 输入create-vue-monorepo-rs,按回车键即可
create-vue-monorepo-rs
git clone https://github.com/laqudee/create-vue-monorepo-rs.git
cd create-vue-monorepo-rs
cargo install
cargo run
cargo build --release
crates.io
cargo publish
template
放到根目录下,分为base
,code
, config
这三个子目录,根据选择的配置不同,进行渲染。dialoguer
库,生成命令行配置选择render()
函数进行渲染git2
库初始化 gitcargo install create-vue-monorepo-rs
方式安装使用git2
库没有生效package.json
内容按照字母顺序排序了,不符合正常的package.json
顺序create-vue-monorepo
,仿照create-vue写了一个生成一个pnpm monorepo 的工作仓库的简单CLI
create-vue-business
,仿照create-vue写了一个生成一个 pnpm monorepo 的工作仓内部packages目录下业务项目的 CLI