feat: add site

This commit is contained in:
aibayanyu 2023-02-20 22:11:22 +08:00
parent 711a9c4546
commit b292e6ac83
6 changed files with 878 additions and 5 deletions

3
.eslintignore Normal file
View File

@ -0,0 +1,3 @@
cache
.temp
*.log

View File

@ -8,7 +8,13 @@
"main": "index.js",
"scripts": {
"test": "vitest",
"prepare": "husky install"
"prepare": "husky install",
"dev": "vitepress dev site",
"build:site": "vitepress build site",
"preview": "vitepress preview site"
},
"dependencies": {
"vue": "^3.2.0"
},
"devDependencies": {
"@commitlint/cli": "^17.4.3",
@ -17,14 +23,23 @@
"@mistjs/tsconfig": "^1.0.0",
"@mistjs/tsconfig-vue": "^0.0.3",
"@types/node": "^18.13.0",
"@vitejs/plugin-vue-jsx": "^3.0.0",
"eslint": "^8.34.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.2",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"vite": "^4.1.1",
"vitepress": "1.0.0-alpha.47",
"vitest": "^0.28.5"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search"
]
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx,vue}": "eslint --fix"
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
import { defineConfig } from 'vitepress'
export default defineConfig({
title: 'vue3组件库站点'
})

1
site/index.md Normal file
View File

@ -0,0 +1 @@
# vue3组件库站点

6
site/vite.config.ts Normal file
View File

@ -0,0 +1,6 @@
import { defineConfig } from 'vite'
import vueJsxPlugin from '@vitejs/plugin-vue-jsx'
export default defineConfig({
plugins: [vueJsxPlugin()]
})