Tube - Setup

43 阅读1分钟
  • Environment
    • 集成工具包:bun ,获取当前安装版本bun --version1.2.10
    • node.js 版本:v20.17.0
  • 基本命令
    • bun add == npm install
    • bunx == npx
    • 运行项目: bun run dev
    • 运行文件或脚本: bun index.ts
  • 框架 Next.js
    • 服务端渲染框架
    • 当前版本 "next": "15.4.3"
    • bunx create-next-app@latest,也可以通过 `` 安装指定版本 bunx create-next-app@15.2.4 image.png
  • 组件库 shadcn/ui
    • bunx --bun shadcn@latest init, 选择 Neutral 作为 base color
    • 安装所有常用组件 bunx --bun shadcn@latest add --all,组件都安装在 src/components/ui