feat: add @shadcn/ui cli (#112)

This commit is contained in:
shadcn
2023-03-08 11:37:15 +04:00
committed by GitHub
parent b043cf7f8c
commit be701cf139
28 changed files with 2833 additions and 70 deletions

58
packages/cli/package.json Normal file
View File

@@ -0,0 +1,58 @@
{
"name": "@shadcn/ui",
"version": "0.0.1",
"description": "Add @shadcn/ui components to your app.",
"license": "MIT",
"author": {
"name": "shadcn",
"url": "https://twitter.com/shadcn"
},
"repository": {
"type": "git",
"url": "https://github.com/shadcn/ui.git",
"directory": "packages/cli"
},
"keywords": [
"components",
"ui",
"tailwind",
"radix-ui",
"shadcn"
],
"type": "module",
"exports": "./dist/index.js",
"bin": {
"@shadcn/cli": "./dist/index.js"
},
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"typecheck": "tsc",
"clean": "rimraf dist && rimraf components",
"start": "node dist/index.js",
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache",
"release": "changeset version",
"pub:beta": "pnpm build && npm publish --tag beta",
"pub:next": "pnpm build && npm publish --tag next",
"pub:release": "pnpm build && npm publish"
},
"dependencies": {
"chalk": "5.2.0",
"commander": "^10.0.0",
"execa": "^7.0.0",
"fs-extra": "^11.1.0",
"node-fetch": "^3.3.0",
"ora": "^6.1.2",
"prompts": "^2.4.2",
"zod": "^3.20.2"
},
"devDependencies": {
"@types/fs-extra": "^11.0.1",
"@types/prompts": "^2.4.2",
"rimraf": "^4.1.3",
"tsup": "^6.6.3",
"type-fest": "^3.6.1",
"typescript": "^4.9.5"
}
}