feat(@vben/docs): support english documents (#4202)

* chore(@vben/docs): 完成guide文档的翻译

* chore(@vben/docs): 完成other文档的翻译

* chore: 翻译部分文档

* chore: 完成英文config的配置

* chore: 完成in-depth的文档翻译

* chore: 调整调整链接

* chore: typo

* chore: typo

* chore: update links

---------

Co-authored-by: Li Kui <90845831+likui628@users.noreply.github.com>
This commit is contained in:
invalid w
2024-08-23 19:46:51 +08:00
committed by GitHub
parent c27b97f933
commit 8230493651
42 changed files with 5795 additions and 315 deletions

View File

@@ -0,0 +1,123 @@
---
outline: deep
---
# CLI
In the project, some command-line tools are provided for common operations, located in `scripts`.
## vsh
Used for some project operations, such as cleaning the project, checking the project, etc.
### Usage
```bash
pnpm vsh [command] [options]
```
### vsh check-circular
Check for circular references throughout the project. If there are circular references, the modules involved will be output to the console.
#### Usage
```bash
pnpm vsh check-circular
```
#### Options
| Option | Description |
| ---------- | --------------------------------------------------------- |
| `--staged` | Only check files in the git staging area, default `false` |
### vsh check-dep
Check the dependency situation of the entire project and output `unused dependencies`, `uninstalled dependencies` information to the console.
#### Usage
```bash
pnpm vsh check-dep
```
### vsh clean
Delete the project's `node_modules`, `dist`, `.turbo` directories, etc., to clean the project.
#### Usage
```bash
pnpm vsh clean
```
#### Options
| Option | Description |
| --- | --- |
| `-r,--recursive` | Recursively delete the entire project, default `true` |
| `--del-lock` | Whether to delete the `pnpm-lock.yaml` file, default `true` |
### vsh lint
Lint checks the project to see if the code in the project conforms to standards.
#### Usage
```bash
pnpm vsh lint
```
#### Options
| Option | Description |
| ---------- | -------------------------------------------- |
| `--format` | Check and try to fix errors, default `false` |
### vsh publint
Perform package standard checks on `Monorepo` projects to see if the packages in the project conform to standards.
#### Usage
```bash
pnpm vsh publint
```
#### Options
| Option | Description |
| --------- | ------------------------------------ |
| `--check` | Only perform checks, default `false` |
### vsh code-workspace
Generate `vben-admin.code-workspace` file. Currently, it does not need to be executed manually and will be executed automatically when code is committed.
#### Usage
```bash
pnpm vsh code-workspace
```
#### Options
| Option | Description |
| --------------- | --------------------------------------------------------- |
| `--auto-commit` | Automatically commit during `git commit`, default `false` |
| `--spaces` | Indentation format, default `2` spaces |
## turbo-run
Used to quickly execute scripts in the large repository and provide option-based interactive selection.
### Usage
```bash
pnpm turbo-run [command]
```
### turbo-run dev
Quickly execute the `dev` command and provide option-based interactive selection.