-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use unjs modules and improve cli from main shadcn-ui source, cu…
…stom ui dir (#324) * feat: add devDeps, add nypm for installing deps * feat: custom ui dir * refactor: use consola instead of chalk * test: ui alias * refactor: import { z } from 'zod' instead of *, replace node:path with pathe * chore: add components name to `configFile` option * chore: update `c12` which fix json5 parse issue and it also supports .config directory * chore: update `https-proxy-agent` * fix: await until dependencies are installed then run detypes process * feat: add tailwind prefix * test: tw-prefix snapshot * chore: add prefix option to init * test: apply prefix * fix: tw-prefix parse wrongly * chore: hide prefix temporarily --------- Co-authored-by: zernonia <zernonia@gmail.com>
- Loading branch information
1 parent
c487137
commit 0e84af7
Showing
34 changed files
with
1,037 additions
and
946 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import fsp from 'node:fs/promises' | ||
|
||
function rmdir(dirs) { | ||
dirs.forEach(async (dir) => { | ||
await fsp.unlink(dir).catch(() => {}) | ||
await fsp.rm(dir, { recursive: true, force: true }).catch(() => {}) | ||
}) | ||
} | ||
|
||
rmdir(['dist', 'components']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.