Update frontend new build dev, proc 6
This commit is contained in:
@@ -26,14 +26,14 @@ COPY package.json ./
|
|||||||
RUN npm install --no-audit --no-fund
|
RUN npm install --no-audit --no-fund
|
||||||
|
|
||||||
# เพิ่ม shadcn/ui + tailwind deps
|
# เพิ่ม shadcn/ui + tailwind deps
|
||||||
RUN npm install -D tailwindcss postcss autoprefixer shadcn@latest \
|
# RUN npm install -D tailwindcss postcss autoprefixer shadcn@latest \
|
||||||
&& npm install class-variance-authority clsx framer-motion lucide-react tailwind-merge tailwindcss-animate
|
# && npm install class-variance-authority clsx framer-motion lucide-react tailwind-merge tailwindcss-animate
|
||||||
|
|
||||||
# init tailwind config (กัน No Tailwind CSS configuration found)
|
# init tailwind config (กัน No Tailwind CSS configuration found)
|
||||||
RUN npx tailwindcss init -p
|
# RUN npx tailwindcss init -p
|
||||||
|
|
||||||
# bake components ของ shadcn แบบ non-interactive
|
# bake components ของ shadcn แบบ non-interactive
|
||||||
RUN npx shadcn add -y button badge card input tabs progress dropdown-menu tooltip switch
|
# RUN npx shadcn add -y button badge card input tabs progress dropdown-menu tooltip switch
|
||||||
|
|
||||||
############ Dev (hot-reload) ############
|
############ Dev (hot-reload) ############
|
||||||
# ใช้ร่วมกับ compose: bind ทั้งโปรเจ็กต์ → /app
|
# ใช้ร่วมกับ compose: bind ทั้งโปรเจ็กต์ → /app
|
||||||
|
|||||||
Reference in New Issue
Block a user