step1
This commit is contained in:
commit
20f713306a
|
@ -0,0 +1,8 @@
|
|||
node_modules
|
||||
*.log*
|
||||
.nuxt
|
||||
.nitro
|
||||
.cache
|
||||
.output
|
||||
.env
|
||||
dist
|
|
@ -0,0 +1,42 @@
|
|||
# Content v2 Minimal Starter
|
||||
|
||||
Look at the [Content documentation](https://content-v2.nuxtjs.org/) to learn more.
|
||||
|
||||
## Setup
|
||||
|
||||
Make sure to install the dependencies:
|
||||
|
||||
```bash
|
||||
# yarn
|
||||
yarn install
|
||||
|
||||
# npm
|
||||
npm install
|
||||
|
||||
# pnpm
|
||||
pnpm install
|
||||
```
|
||||
|
||||
## Development Server
|
||||
|
||||
Start the development server on http://localhost:3000
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
## Production
|
||||
|
||||
Build the application for production:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
Locally preview production build:
|
||||
|
||||
```bash
|
||||
npm run preview
|
||||
```
|
||||
|
||||
Checkout the [deployment documentation](https://v3.nuxtjs.org/docs/deployment) for more information.
|
|
@ -0,0 +1,3 @@
|
|||
# About Content v2
|
||||
|
||||
[Back home](/)
|
|
@ -0,0 +1,9 @@
|
|||
# Nuxt Content
|
||||
|
||||
This page corresponds to the `/` route of your website. You can delete it or create another file in the `content/` directory.
|
||||
|
||||
Try to navigate to [/about](/about). These 2 pages are rendered by the `pages/[...slug].vue` component.
|
||||
|
||||
---
|
||||
|
||||
Look at the [Content documentation](https://content.nuxtjs.org/) to learn more.
|
|
@ -0,0 +1,4 @@
|
|||
// https://v3.nuxtjs.org/api/configuration/nuxt.config
|
||||
export default defineNuxtConfig({
|
||||
modules: ['@nuxt/content']
|
||||
})
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "nuxt build",
|
||||
"dev": "nuxt dev",
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt/content": "^2.6.0",
|
||||
"@types/node": "^20.2.5",
|
||||
"nuxt": "^3.5.2"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<template>
|
||||
<main>
|
||||
<ContentDoc />
|
||||
</main>
|
||||
</template>
|
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"extends": "../.nuxt/tsconfig.server.json"
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
// https://v3.nuxtjs.org/concepts/typescript
|
||||
"extends": "./.nuxt/tsconfig.json"
|
||||
}
|
Loading…
Reference in New Issue