feat: 整理目录结构
This commit is contained in:
15
.github/.depcheck.js
vendored
Normal file
15
.github/.depcheck.js
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// https://github.com/depcheck/depcheck?tab=readme-ov-file#api
|
||||
// node .github/.depcheck.js
|
||||
|
||||
import depcheck from 'depcheck';
|
||||
|
||||
const unused = await depcheck(process.cwd(), {
|
||||
ignorePatterns: [],
|
||||
});
|
||||
|
||||
console.debug(`unused.dependencies :>>`, unused.dependencies); // an array containing the unused dependencies
|
||||
console.debug(`unused.devDependencies :>>`, unused.devDependencies); // an array containing the unused devDependencies
|
||||
console.debug(`unused.missing :>>`, unused.missing); // a lookup containing the dependencies missing in `package.json` and where they are used
|
||||
console.debug(`unused.using :>>`, unused.using); // a lookup indicating each dependency is used by which files
|
||||
console.debug(`unused.invalidFiles :>>`, unused.invalidFiles); // files that cannot access or parse
|
||||
console.debug(`unused.invalidDirs :>>`, unused.invalidDirs); // directories that cannot access
|
9
.github/.depcheckrc.yaml
vendored
Normal file
9
.github/.depcheckrc.yaml
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
# https://github.com/depcheck/depcheck#usage
|
||||
# #####
|
||||
# pnpm exec depcheck --config .github/.depcheckrc.yaml
|
||||
# #####
|
||||
# pnpm add json -g
|
||||
# pnpm exec depcheck --json | json
|
||||
|
||||
ignores: ['@iconify-json/*']
|
||||
skip-missing: true
|
2
.github/workflows/depcheck.yaml
vendored
2
.github/workflows/depcheck.yaml
vendored
@ -11,7 +11,7 @@ jobs:
|
||||
steps:
|
||||
- uses: yanhao98/composite-actions/setup-node-environment@ae9301946790d96f75c7ebe54a34bbaf9f5469d0
|
||||
- run: npx depcheck || true
|
||||
- run: node .depcheck.js
|
||||
- run: node .github/.depcheck.js
|
||||
- run: npx taze --help
|
||||
- run: npx taze
|
||||
- run: npx taze -a
|
||||
|
Reference in New Issue
Block a user