This commit is contained in:
陶林 2023-05-04 16:33:11 +08:00
parent c088b1d796
commit e7f79b9f94
10 changed files with 1415 additions and 2 deletions

View File

@ -1,5 +1,11 @@
nuxt3 学习代码
## 创建项目
```shell
pnpm dlx nuxi init <project-name>
```
## 升级版本
nuxi upgrade --force

9
packages/5-devtoolsw/.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
node_modules
*.log*
.nuxt
.nitro
.cache
.output
.env
dist
.DS_Store

View File

@ -0,0 +1 @@
shamefully-hoist=true

View File

@ -0,0 +1,8 @@
export default defineNuxtConfig({
## 3.4 只需要
devtools: true
})
"@nuxt/devtools": "^0.4.5"

View File

@ -0,0 +1,5 @@
<template>
<div>
<NuxtWelcome />
</div>
</template>

View File

@ -0,0 +1,4 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: true,
})

View File

@ -0,0 +1,18 @@
{
"name": "nuxt-app",
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"@types/node": "^18",
"nuxt": "^3.4.3"
},
"dependencies": {
"@nuxt/devtools": "^0.4.5"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -0,0 +1,4 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json"
}

File diff suppressed because it is too large Load Diff