初期設定
$ npm create vite@latest
$ npm i
$ npm install -D tailwindcss postcss autoprefixer
$ npx tailwindcss init -p
code:tsconfig.json
{
"compilerOptions": {
// ...
"baseUrl": ".",
"paths": {
"@/*": [
"./src/*"
]
}
// ...
}
}
$ npm i -D @types/node
code:vite.config.ts
import path from "path"
import react from "@vitejs/plugin-react"
import { defineConfig } from "vite"
export default defineConfig({
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
})
$ npx shadcn-ui@latest init
code:bash
Where is your global CSS file? › › src/index.css
Are you using React Server Components? › no
$ npm i zustand
code:bash
git config user.email ""
git config user.name ""
git push --set-upstream origin master