Web共通UI
shadcn-ui を使っております。
pnpm install @matart15/lib_ui_shadcn -D
pnpm install -D tailwindcss postcss autoprefixer
pnpx tailwindcss init -p
- make sure to add following code to
tailwind.config.js
. it will tell tailwind to compile classNames from this library.export default { content: [ ... "node_modules/@matart15/lib_ui_shadcn/**/*.{js,ts,jsx,tsx,mdx}", "../../node_modules/@matart15/lib_ui_shadcn/**/*.{js,ts,jsx,tsx,mdx}", ]
pnpm i
git add .
-
pnpm build
: then we includedist
folder in github. git cz
-
pnpm release
: this increments git tag and push to github
- since we using npm to directly download from github, we include
dist
folder in github.