Skip to content

Commit

Permalink
feat: 安装 Nuxt UI 和配置 Typescript 类型检查
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwumm committed Apr 8, 2024
1 parent 6e75e1d commit 46221ff
Show file tree
Hide file tree
Showing 5 changed files with 1,089 additions and 94 deletions.
18 changes: 17 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
// SEO 和 Meta
app: {
head: {
title: '程序员的梦中情站',
charset: 'utf-8',
viewport: 'width=device-width, initial-scale=1',
meta: [
{ name: 'keywords', content: '程序员,梦中情站,工具,AI' },
{ name: 'description', content: '程序员的梦中情站,致力于开发一个能提高程序员开发效率的网站' }
]
}
},
// 源目录
srcDir: 'src/',
// 引入模块
modules: ['@nuxtjs/stylelint-module']
modules: ['@nuxtjs/stylelint-module', '@nuxt/ui'],
// 构建时启动类型检查
typescript: {
typeCheck: true
}
})
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"release": "release-it patch"
},
"dependencies": {
"@iconify-json/heroicons": "^1.1.20",
"@nuxt/ui": "^2.15.1",
"nuxt": "^3.11.1",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
Expand All @@ -36,6 +38,8 @@
"stylelint": "^16.3.1",
"stylelint-config-recommended-vue": "^1.5.0",
"stylelint-config-standard": "^36.0.0",
"stylelint-order": "^6.0.4"
"stylelint-order": "^6.0.4",
"typescript": "^5.4.4",
"vue-tsc": "^1"
}
}
Loading

0 comments on commit 46221ff

Please sign in to comment.