Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置使用typescript : 全新项目 / 已有项目 #13

Open
janeLLLL opened this issue Sep 11, 2020 · 0 comments
Open

配置使用typescript : 全新项目 / 已有项目 #13

janeLLLL opened this issue Sep 11, 2020 · 0 comments

Comments

@janeLLLL
Copy link
Owner

  1. 全新项目:使用 Vue CLI 脚手架工具创建 Vue 项目
npm install -g @vue/cli
vue create vue-test

image

项目创建好以后:

cd 项目目录
npm run serve
  1. 已有项目:添加typescript适配插件
    从 JavaScript 迁移

使用 @vue/cli 安装 TypeScript 插件

vue add @vue/typescript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant