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