diff --git a/README.en-US.md b/README.en-US.md index bdf96bf17..fc081d97d 100644 --- a/README.en-US.md +++ b/README.en-US.md @@ -132,6 +132,11 @@ pnpm dev pnpm build ``` +### Code statistics + +1. [Install tokei](https://github.com/XAMPPRocky/tokei?tab=readme-ov-file#installation) +2. `pnpm tokei` + ## Docker support 1. Customize the image named `vue-pure-admin` (please note that there is a dot `.` at the end of the command below, indicating that the `Dockerfile` file in the current path is used, and the path can be specified according to the actual situation) diff --git a/README.md b/README.md index ca0af44c2..cd2651117 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,11 @@ pnpm dev pnpm build ``` +### 代码统计 + +1. [安装 tokei](https://github.com/XAMPPRocky/tokei?tab=readme-ov-file#installation) +2. `pnpm tokei` + ## Docker 支持 1. 自定义镜像名为 `vue-pure-admin` 的镜像(请注意下面命令末尾有一个点 `.` 表示使用当前路径下的 `Dockerfile` 文件,可根据实际情况指定路径) diff --git a/package.json b/package.json index e1c3db0da..253fb9ab1 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "preview:build": "pnpm build && vite preview", "typecheck": "tsc --noEmit && vue-tsc --noEmit --skipLibCheck", "svgo": "svgo -f . -r", - "cloc": "NODE_OPTIONS=--max-old-space-size=4096 cloc . --exclude-dir=node_modules --exclude-lang=YAML", + "tokei": "tokei . -e *.yaml", "clean:cache": "rimraf .eslintcache && rimraf pnpm-lock.yaml && rimraf node_modules && pnpm store prune && pnpm install", "lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock,build}/**/*.{vue,js,ts,tsx}\" --fix", "lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,scss,vue,html,md}\"", @@ -137,7 +137,6 @@ "@vitejs/plugin-vue-jsx": "^3.1.0", "autoprefixer": "^10.4.19", "boxen": "^7.1.1", - "cloc": "^2.11.0", "cssnano": "^6.1.2", "dagre": "^0.8.5", "eslint": "^8.57.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3dbf943c0..df0b06ec2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -268,9 +268,6 @@ devDependencies: boxen: specifier: ^7.1.1 version: 7.1.1 - cloc: - specifier: ^2.11.0 - version: 2.11.0 cssnano: specifier: ^6.1.2 version: 6.1.2(postcss@8.4.38) @@ -3739,11 +3736,6 @@ packages: wrap-ansi: 7.0.0 dev: true - /cloc@2.11.0: - resolution: {integrity: sha512-+mxuCHo7ESOQadlsyMjmPZ4hGBtvQzmNGHfLdBNvXKbnRhtmOTslU4XF2cyFSaOCHaaF26ba2CGjU6lpeIFB0w==} - hasBin: true - dev: true - /co@4.6.0: resolution: {integrity: sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==} engines: {iojs: '>= 1.0.0', node: '>= 0.12.0'}