[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) [![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_ _Live Example: https://nuxtjs-template.vercel.app_
Look at the [Nuxt 3 documentation](https://v3.nuxtjs.org) to learn more.
## Setup ## Setup
Install the dependencies: Make sure to install the dependencies:
```bash ```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 ```bash
yarn dev npm run dev
``` ```
## Deploy Your Own ## Production
Build the application for production: Build the application for production:
```bash ```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> <div>
<NuxtWelcome /> <NuxtWelcome />
</div> </div>
</template> </template>

View File

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

View File

@@ -1,11 +1,13 @@
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "nuxi dev", "build": "nuxt build",
"build": "nuxi build", "dev": "nuxt dev",
"start": "node .output/server/index.mjs" "generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
}, },
"devDependencies": { "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 // https://v3.nuxtjs.org/concepts/typescript
"extends": "./.nuxt/tsconfig.json" "extends": "./.nuxt/tsconfig.json"
} }

File diff suppressed because it is too large Load Diff