Skip to content

Commit

Permalink
added shadcn
Browse files Browse the repository at this point in the history
  • Loading branch information
mishushakov committed Aug 30, 2024
1 parent c5ae209 commit 3a0edaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"nextjs-developer": {
"name": "Next.js developer",
"lib": ["nextjs@14.2.5", "typescript", "@types/node", "@types/react", "@types/react-dom", "postcss", "tailwindcss"],
"lib": ["nextjs@14.2.5", "typescript", "@types/node", "@types/react", "@types/react-dom", "postcss", "tailwindcss", "shadcn/ui"],
"file": "app/page.tsx",
"instructions": "A Next.js 13+ app that reloads automatically. Using the app router. Always add 'use client' expression on the first line of the file.",
"port": 3000
Expand Down
3 changes: 3 additions & 0 deletions sandbox-templates/nextjs-developer/e2b.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ WORKDIR /home/user/nextjs-app

RUN npx create-next-app@latest . --ts --tailwind --no-eslint --import-alias "@/*" --use-npm --app --no-src-dir

RUN npx shadcn-ui@latest init -d
RUN npx shadcn-ui@latest add --all

# Move the Nextjs app to the home directory and remove the nextjs-app directory
RUN mv /home/user/nextjs-app/* /home/user/ && rm -rf /home/user/nextjs-app

0 comments on commit 3a0edaa

Please sign in to comment.