Commit Graph

19 Commits

Author SHA1 Message Date
Sadegh Barati
5f774f83d9
fix: replace lodash.template with lodash-es to prevent vulnerabilities (#515) 2024-04-25 23:03:26 +08:00
Sadegh Barati
9712ba9bae
fix(CLI): shadcn-vue init not installing all dependencies or devDependencies (#469) 2024-04-06 10:57:20 +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
Antoine Lethimonnier
f05922dfd0
feat(cli): Add JSON schema (#256)
* Add schema

* Update schema.json
2024-01-10 10:15:02 +03:30
Sadegh Barati
989c0e2024
chore(cli): match cli prompt question (global CSS) with the documentation 2024-01-07 09:35:54 +03:30
Sadegh Barati
010e377669
fix: avoid failing resolve types by adding radix-vue to project deps in shadcn-vue init before the add command (#216)
* fix: avoid failing resolve types by adding `radix-vue` to project deps in `init` command

* chore: add `shell-emulator` and remove `cross-env`

fix some registry example import path

* chore: remove additional `radix-vue`  dependency from components registry

* chore: update `tsx` and `vue-tsc`

* fix: normalize `components:example` path to process `crawlExample` function correctly

* chore: build registry

---------

Co-authored-by: zernonia <zernonia@gmail.com>
2023-12-21 09:06:14 +08:00
zernonia
b46f4f75c8 chore: fix lint, wrong initial value 2023-10-21 10:51:24 +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
02fe76d1f0
refactor: replace iconify icons with @radix-icons/vue for newyork style (#87)
* refactor: changes all instance of unplugin-icons to radix-icons

* chore: build registry

* test: fix new deps
2023-09-27 12:26:24 +08:00
zernonia
6e0cfe1ade
feat: improve installation section to accommodate other frameworks (#63)
* feat: installation section by framwork

* chore: update installations

* refactor: use lodash templates

* fix: frozen pnpm-lock

* fix: capitalize
2023-09-19 13:08:40 +08:00
zernonia
27ac382bf9 fix: nuxt config 2023-09-19 00:30:11 +08:00
zernonia
22e46c16f5 fix: babel/core required 2023-09-18 23:47:43 +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
ec0c3cc659 fix: cli installation error 2023-09-06 12:55:50 +08:00
zernonia
bc545c95e4 test: add test not fully functioning yet 2023-09-06 10:59:42 +08:00
zernonia
f979211d90 chore: run eslint 2023-09-06 09:57:37 +08:00
Mukund Shah
ea5c63a250
feat: add cli 2023-08-28 10:50:32 +05:45
Mukund Shah
fc01eaa310
chore(cli): create .ts file for add, diff, init commands 2023-08-26 22:30:04 +05:45