5
This commit is contained in:
parent
c088b1d796
commit
e7f79b9f94
@ -1,5 +1,11 @@
|
||||
nuxt3 学习代码
|
||||
|
||||
## 创建项目
|
||||
|
||||
```shell
|
||||
pnpm dlx nuxi init <project-name>
|
||||
```
|
||||
|
||||
## 升级版本
|
||||
|
||||
nuxi upgrade --force
|
||||
|
9
packages/5-devtoolsw/.gitignore
vendored
Normal file
9
packages/5-devtoolsw/.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
node_modules
|
||||
*.log*
|
||||
.nuxt
|
||||
.nitro
|
||||
.cache
|
||||
.output
|
||||
.env
|
||||
dist
|
||||
.DS_Store
|
1
packages/5-devtoolsw/.npmrc
Normal file
1
packages/5-devtoolsw/.npmrc
Normal file
@ -0,0 +1 @@
|
||||
shamefully-hoist=true
|
8
packages/5-devtoolsw/README.md
Normal file
8
packages/5-devtoolsw/README.md
Normal file
@ -0,0 +1,8 @@
|
||||
export default defineNuxtConfig({
|
||||
|
||||
## 3.4 只需要
|
||||
|
||||
devtools: true
|
||||
})
|
||||
|
||||
"@nuxt/devtools": "^0.4.5"
|
5
packages/5-devtoolsw/app.vue
Normal file
5
packages/5-devtoolsw/app.vue
Normal file
@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<NuxtWelcome />
|
||||
</div>
|
||||
</template>
|
4
packages/5-devtoolsw/nuxt.config.ts
Normal file
4
packages/5-devtoolsw/nuxt.config.ts
Normal file
@ -0,0 +1,4 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
devtools: true,
|
||||
})
|
18
packages/5-devtoolsw/package.json
Normal file
18
packages/5-devtoolsw/package.json
Normal 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"
|
||||
}
|
||||
}
|
BIN
packages/5-devtoolsw/public/favicon.ico
Normal file
BIN
packages/5-devtoolsw/public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
4
packages/5-devtoolsw/tsconfig.json
Normal file
4
packages/5-devtoolsw/tsconfig.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
// https://nuxt.com/docs/guide/concepts/typescript
|
||||
"extends": "./.nuxt/tsconfig.json"
|
||||
}
|
1362
pnpm-lock.yaml
1362
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user