[examples] Updated Nuxt starter to v3 stable (#8928)

This commit is contained in:
Steven Tey
2022-11-17 14:27:02 -06:00
committed by GitHub
parent bef3a4bef2
commit 2cafcdab9d
7 changed files with 4642 additions and 5497 deletions

View File

@@ -1,34 +1,48 @@
# Nuxt.js Example
# Nuxt Example
Deploy your [Nuxt.js](https://nuxtjs.org) project to Vercel with zero configuration.
Deploy your [Nuxt](https://nuxt.com) project to Vercel with zero configuration.
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/vercel/tree/main/examples/nuxtjs&template=nuxtjs)
_Live Example: https://nuxtjs-template.vercel.app_
Look at the [Nuxt 3 documentation](https://v3.nuxtjs.org) to learn more.
## Setup
Install the dependencies:
Make sure to install the dependencies:
```bash
yarn install
# yarn
yarn
# npm
npm install
# pnpm
pnpm install --shamefully-hoist
```
## Development
## Development Server
Start the development server on http://localhost:3000:
Start the development server on http://localhost:3000
```bash
yarn dev
npm run dev
```
## Deploy Your Own
## Production
Build the application for production:
```bash
yarn build
npm run build
```
Locally preview production build:
```bash
npm run preview
```
Checkout the [deployment documentation](https://v3.nuxtjs.org/guide/deploy/presets) for more information.

View File

@@ -2,4 +2,4 @@
<div>
<NuxtWelcome />
</div>
</template>
</template>

View File

@@ -1,6 +1,4 @@
import { defineNuxtConfig } from 'nuxt3'
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
})
})

View File

@@ -1,11 +1,13 @@
{
"private": true,
"scripts": {
"dev": "nuxi dev",
"build": "nuxi build",
"start": "node .output/server/index.mjs"
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"nuxt3": "latest"
"nuxt": "^3.0.0"
}
}
}

4608
examples/nuxtjs/pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
{
// https://v3.nuxtjs.org/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}
}

File diff suppressed because it is too large Load Diff