对不起我弃坑了,要写的东西太多了,上班已经够累了,懒得写了。 基于 Vue3+Typescript 开发的个人博客网站
cd ./dist git pull git rm -r --cached . git add . git commit -m 'a' git push -u
注意:不要修改CNAME文件 CNAME文件为第一次给github pages配置Custom domain时自动生成的文件,如果删除会导致Custom domain设置清空
VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).
TypeScript cannot handle type information for .vue
imports by default, so we replace the tsc
CLI with vue-tsc
for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue
types.
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:
- Disable the built-in TypeScript Extension
- Run
Extensions: Show Built-in Extensions
from VSCode's command palette - Find
TypeScript and JavaScript Language Features
, right click and selectDisable (Workspace)
- Run
- Reload the VSCode window by running
Developer: Reload Window
from the command palette.
npm install
npm run dev
npm run build
Lint with ESLint
npm run lint