shadcn-vue/apps/www/src/content/docs/installation.md
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

8.4 KiB

title description
Installation How to install dependencies and structure your app.

Frameworks

Vite

Nuxt

Laravel

TypeScript

This project and the components are written in TypeScript. We recommend using TypeScript for your project as well.

However we provide a JavaScript version of the components as well. The JavaScript version is available via the cli.

To opt-out of TypeScript, you can use the typescript flag in your components.json file.

{
  "style": "default",
  "tailwind": {
    "config": "tailwind.config.js",
    "css": "src/app/globals.css",
    "baseColor": "zinc",
    "cssVariables": true
  },
  "typescript": false,
  "aliases": {
    "utils": "~/lib/utils",
    "components": "~/components"
  }
}

To configure import aliases, you can use the following jsconfig.json:

{
  "compilerOptions": {
    "paths": {
      "@/*": ["./*"]
    }
  }
}