Commit Graph

7 Commits

Author SHA1 Message Date
Sadegh Barati
0e84af73de
feat: use unjs modules and improve cli from main shadcn-ui source, custom 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>
2024-03-06 05:38:19 +03:30
zernonia
eccfc9940d chore: update test snapshot 2023-12-21 09:11:07 +08:00
zernonia
1a1e229849 test: hide failing test temporary, fix test 2023-12-01 11:51:58 +08:00
Dunqing
a4774ff48d
fix(cli): missing props/emits when disable typescript (#105)
* feat(cli): support remove type when non-typescript

* fix(cli): missing props/emits when doesn't enable typescript

* test: add test cases for defineProps/defineEmits

* fix: withDefaults case

* fix: cannot resolve external and packages types

* fix: missing assign variable
2023-11-02 22:22:33 +08:00
zernonia
0b39d050b3 chore: cleanup 2023-09-18 22:38:37 +08:00
zernonia
afcdbf99a3 test: improve testing for cli 2023-09-18 21:27:44 +08:00
Dunqing
ad05aab3d2
feat(cli): support remove type when non-typescript (#45)
* fix(cli): shouldn't load tsconfig when typescript disabled

* feat(cli): support remove type when non-typescript

* feat: patch `detype` and fix ts extension

* test: update

* chore: update lock

* feat: patch again

* fix: missing

* chore: update lock

* feat: support root option

* chore: update lock

* feat: transform utils to js by detype

* refactor: load jsconfig and remove root option

* chore: remove babel/core
2023-09-18 15:19:59 +08:00