Skip to content

Commit

Permalink
fix(custom): 改为 yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidKk committed Dec 31, 2023
1 parent 5f126cf commit d9a6aca
Show file tree
Hide file tree
Showing 17 changed files with 19,677 additions and 23,620 deletions.
93 changes: 0 additions & 93 deletions .dumi/overrides.less

This file was deleted.

2 changes: 1 addition & 1 deletion @cli/__template__/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ $ pnpm add @template/cli -D
│ ├─── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-pretty%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%B8%8A%E8%89%B2%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-pretty%22,%22dependencies%22:%5B%22chalk%22,%22pretty-error%22,%22tslib%22,%22@jest/types%22,%22@types/chalk%22,%22ts-jest%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-pretty">@dumlj/feature-pretty</a>
│ ├─── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/shell-lib%22,%22version%22:%222.5.20%22,%22description%22:%22shell%20%E5%B7%A5%E5%85%B7%E5%BA%93%22,%22isPrivate%22:false,%22location%22:%22@lib/shell-lib%22,%22dependencies%22:%5B%22@jest/types%22,%22chokidar%22,%22command-exists%22,%22lodash%22,%22tslib%22,%22ts-jest%22,%22tsd-lite%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@lib/shell-lib">@dumlj/shell-lib</a>
│ ├─── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/util-lib%22,%22version%22:%222.5.20%22,%22description%22:%22util%20%E5%B7%A5%E5%85%B7%E5%BA%93%22,%22isPrivate%22:false,%22location%22:%22@lib/util-lib%22,%22dependencies%22:%5B%22fs-extra%22,%22glob%22,%22lodash%22,%22tslib%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@lib/util-lib">@dumlj/util-lib</a>
│ └─── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-prepare%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%BB%A3%E7%A0%81%E6%BA%90%E6%96%87%E4%BB%B6%E9%A2%84%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-prepare%22,%22dependencies%22:%5B%22fs-extra%22,%22get-tsconfig%22,%22interpret%22,%22rechoir%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22,%22tslib%22,%22ts-node%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-prepare">@dumlj/feature-prepare</a>
│ └─── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-prepare%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%BB%A3%E7%A0%81%E6%BA%90%E6%96%87%E4%BB%B6%E9%A2%84%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-prepare%22,%22dependencies%22:%5B%22fs-extra%22,%22get-tsconfig%22,%22interpret%22,%22rechoir%22,%22tslib%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22,%22ts-node%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-prepare">@dumlj/feature-prepare</a>
└── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-pretty%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%B8%8A%E8%89%B2%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-pretty%22,%22dependencies%22:%5B%22chalk%22,%22pretty-error%22,%22tslib%22,%22@jest/types%22,%22@types/chalk%22,%22ts-jest%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-pretty">@dumlj/feature-pretty</a>
</pre>
4 changes: 2 additions & 2 deletions @cli/create-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ $ pnpm add @dumlj/create-cli -D
│ ├─── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-pretty%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%B8%8A%E8%89%B2%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-pretty%22,%22dependencies%22:%5B%22chalk%22,%22pretty-error%22,%22tslib%22,%22@jest/types%22,%22@types/chalk%22,%22ts-jest%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-pretty">@dumlj/feature-pretty</a>
│ ├─── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/shell-lib%22,%22version%22:%222.5.20%22,%22description%22:%22shell%20%E5%B7%A5%E5%85%B7%E5%BA%93%22,%22isPrivate%22:false,%22location%22:%22@lib/shell-lib%22,%22dependencies%22:%5B%22@jest/types%22,%22chokidar%22,%22command-exists%22,%22lodash%22,%22tslib%22,%22ts-jest%22,%22tsd-lite%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@lib/shell-lib">@dumlj/shell-lib</a>
│ ├─── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/util-lib%22,%22version%22:%222.5.20%22,%22description%22:%22util%20%E5%B7%A5%E5%85%B7%E5%BA%93%22,%22isPrivate%22:false,%22location%22:%22@lib/util-lib%22,%22dependencies%22:%5B%22fs-extra%22,%22glob%22,%22lodash%22,%22tslib%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@lib/util-lib">@dumlj/util-lib</a>
│ └─── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-prepare%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%BB%A3%E7%A0%81%E6%BA%90%E6%96%87%E4%BB%B6%E9%A2%84%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-prepare%22,%22dependencies%22:%5B%22fs-extra%22,%22get-tsconfig%22,%22interpret%22,%22rechoir%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22,%22tslib%22,%22ts-node%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-prepare">@dumlj/feature-prepare</a>
│ └─── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-prepare%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%BB%A3%E7%A0%81%E6%BA%90%E6%96%87%E4%BB%B6%E9%A2%84%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-prepare%22,%22dependencies%22:%5B%22fs-extra%22,%22get-tsconfig%22,%22interpret%22,%22rechoir%22,%22tslib%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22,%22ts-node%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-prepare">@dumlj/feature-prepare</a>
├── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-cliui%22,%22version%22:%222.5.20%22,%22description%22:%22%7B%7Bdescription%7D%7D%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-cliui%22,%22dependencies%22:%5B%22chalk%22,%22tslib%22,%22@jest/types%22,%22ts-jest%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-cliui">@dumlj/feature-cliui</a>
├── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-prepare%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%BB%A3%E7%A0%81%E6%BA%90%E6%96%87%E4%BB%B6%E9%A2%84%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-prepare%22,%22dependencies%22:%5B%22fs-extra%22,%22get-tsconfig%22,%22interpret%22,%22rechoir%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22,%22tslib%22,%22ts-node%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-prepare">@dumlj/feature-prepare</a>
├── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-prepare%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%BB%A3%E7%A0%81%E6%BA%90%E6%96%87%E4%BB%B6%E9%A2%84%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-prepare%22,%22dependencies%22:%5B%22fs-extra%22,%22get-tsconfig%22,%22interpret%22,%22rechoir%22,%22tslib%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22,%22ts-node%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-prepare">@dumlj/feature-prepare</a>
├── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-pretty%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%B8%8A%E8%89%B2%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-pretty%22,%22dependencies%22:%5B%22chalk%22,%22pretty-error%22,%22tslib%22,%22@jest/types%22,%22@types/chalk%22,%22ts-jest%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-pretty">@dumlj/feature-pretty</a>
├── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/shell-lib%22,%22version%22:%222.5.20%22,%22description%22:%22shell%20%E5%B7%A5%E5%85%B7%E5%BA%93%22,%22isPrivate%22:false,%22location%22:%22@lib/shell-lib%22,%22dependencies%22:%5B%22@jest/types%22,%22chokidar%22,%22command-exists%22,%22lodash%22,%22tslib%22,%22ts-jest%22,%22tsd-lite%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@lib/shell-lib">@dumlj/shell-lib</a>
└── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/util-lib%22,%22version%22:%222.5.20%22,%22description%22:%22util%20%E5%B7%A5%E5%85%B7%E5%BA%93%22,%22isPrivate%22:false,%22location%22:%22@lib/util-lib%22,%22dependencies%22:%5B%22fs-extra%22,%22glob%22,%22lodash%22,%22tslib%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@lib/util-lib">@dumlj/util-lib</a>
Expand Down
2 changes: 1 addition & 1 deletion @cli/seed-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ $ pnpm add @dumlj/seed-cli -D
├── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-pretty%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%B8%8A%E8%89%B2%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-pretty%22,%22dependencies%22:%5B%22chalk%22,%22pretty-error%22,%22tslib%22,%22@jest/types%22,%22@types/chalk%22,%22ts-jest%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-pretty">@dumlj/feature-pretty</a>
├── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/shell-lib%22,%22version%22:%222.5.20%22,%22description%22:%22shell%20%E5%B7%A5%E5%85%B7%E5%BA%93%22,%22isPrivate%22:false,%22location%22:%22@lib/shell-lib%22,%22dependencies%22:%5B%22@jest/types%22,%22chokidar%22,%22command-exists%22,%22lodash%22,%22tslib%22,%22ts-jest%22,%22tsd-lite%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@lib/shell-lib">@dumlj/shell-lib</a>
├── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/util-lib%22,%22version%22:%222.5.20%22,%22description%22:%22util%20%E5%B7%A5%E5%85%B7%E5%BA%93%22,%22isPrivate%22:false,%22location%22:%22@lib/util-lib%22,%22dependencies%22:%5B%22fs-extra%22,%22glob%22,%22lodash%22,%22tslib%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@lib/util-lib">@dumlj/util-lib</a>
└── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-prepare%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%BB%A3%E7%A0%81%E6%BA%90%E6%96%87%E4%BB%B6%E9%A2%84%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-prepare%22,%22dependencies%22:%5B%22fs-extra%22,%22get-tsconfig%22,%22interpret%22,%22rechoir%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22,%22tslib%22,%22ts-node%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-prepare">@dumlj/feature-prepare</a>
└── <a is="dumlj-link" data-project="%7B%22name%22:%22@dumlj/feature-prepare%22,%22version%22:%222.5.20%22,%22description%22:%22%E4%BB%A3%E7%A0%81%E6%BA%90%E6%96%87%E4%BB%B6%E9%A2%84%E5%A4%84%E7%90%86%E5%B7%A5%E5%85%B7%22,%22isPrivate%22:false,%22location%22:%22@feature/feature-prepare%22,%22dependencies%22:%5B%22fs-extra%22,%22get-tsconfig%22,%22interpret%22,%22rechoir%22,%22tslib%22,%22@jest/types%22,%22memfs%22,%22ts-jest%22,%22ts-node%22%5D,%22workspaceDependencies%22:%5B%5D%7D" href="https://github.com/dumlj/dumlj-build/tree/main/@feature/feature-prepare">@dumlj/feature-prepare</a>
</pre>
21 changes: 1 addition & 20 deletions @cli/seed-cli/bin/cli
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,5 @@

process.env.RUNTIME = 'CLI'

const needPrepare = (() => {
try {
require.resolve('@dumlj/feature-prepare')
return true
} catch (error) {
return false
}
})()

const path = require('path')
if (!needPrepare) {
require(path.join(__dirname, '../libs/cli'))
return
}

const fs = require('fs')
const srcFile = path.join(__dirname, '../src/cli.ts')
if (fs.existsSync(srcFile)) {
const { prepare } = require('@dumlj/feature-prepare')
prepare(srcFile)
}
require(path.join(__dirname, '../libs/cli'))
Loading

0 comments on commit d9a6aca

Please sign in to comment.