Commit Graph

13 Commits

Author SHA1 Message Date
Dunqing
e4280baa97 chore: bump vitest to 1.6.0 2024-05-13 14:12:27 +08:00
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
6c99fd6dd1 chore: fix testing pipeline 2024-02-04 21:53:00 +08:00
zernonia
f46e2b98cd test: fix test missing safelist 2024-01-11 14:43:50 +08:00
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
ccfe4a891d
refactor: transform css variables for components (#129)
* refactor: transform css only in component

* refactor: more concise

* fix: pipeline
2023-10-21 18:02:19 +08:00
Dunqing
f4b5b3fbc4
feat(cli): support tailwind.config.mjs file (#120)
* feat(cli): support `tailwind.config.mjs` file

* feat: update

* fix: teest case

---------

Co-authored-by: sadeghbarati <sadeghbaratiwork@gmail.com>
2023-10-21 10:25:41 +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
zernonia
2aeedf554a chore: bump version, fix className 2023-09-08 18:43:17 +08:00
zernonia
bc545c95e4 test: add test not fully functioning yet 2023-09-06 10:59:42 +08:00