commit fcf76547e527646a5a555c2ef775ce9759781a7b Author: expressgy Date: Tue Apr 22 01:24:24 2025 +0800 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a7f73a --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Nuxt dev/build outputs +.output +.data +.nuxt +.nitro +.cache +dist + +# Node dependencies +node_modules + +# Logs +logs +*.log + +# Misc +.DS_Store +.fleet +.idea + +# Local env files +.env +.env.* +!.env.example diff --git a/README.md b/README.md new file mode 100644 index 0000000..25b5821 --- /dev/null +++ b/README.md @@ -0,0 +1,75 @@ +# Nuxt Minimal Starter + +Look at the [Nuxt documentation](https://nuxt.com/docs/getting-started/introduction) to learn more. + +## Setup + +Make sure to install dependencies: + +```bash +# npm +npm install + +# pnpm +pnpm install + +# yarn +yarn install + +# bun +bun install +``` + +## Development Server + +Start the development server on `http://localhost:3000`: + +```bash +# npm +npm run dev + +# pnpm +pnpm dev + +# yarn +yarn dev + +# bun +bun run dev +``` + +## Production + +Build the application for production: + +```bash +# npm +npm run build + +# pnpm +pnpm build + +# yarn +yarn build + +# bun +bun run build +``` + +Locally preview production build: + +```bash +# npm +npm run preview + +# pnpm +pnpm preview + +# yarn +yarn preview + +# bun +bun run preview +``` + +Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. diff --git a/app.vue b/app.vue new file mode 100644 index 0000000..f129068 --- /dev/null +++ b/app.vue @@ -0,0 +1,6 @@ + + diff --git a/assets/css/tailwind.css b/assets/css/tailwind.css new file mode 100644 index 0000000..bd6213e --- /dev/null +++ b/assets/css/tailwind.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; \ No newline at end of file diff --git a/components/HelloWorld.vue b/components/HelloWorld.vue new file mode 100644 index 0000000..31bf27e --- /dev/null +++ b/components/HelloWorld.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/docs/01-关于Nuxt的初始化.md b/docs/01-关于Nuxt的初始化.md new file mode 100644 index 0000000..b4606c1 --- /dev/null +++ b/docs/01-关于Nuxt的初始化.md @@ -0,0 +1,26 @@ +# 关于Nuxt的初始化 + +- 命令 + +```bash +npm init nuxt + +npm create nuxt <项目名称> +``` + +- 创建目录 `nuxi add` + +```bash +npx nuxi add