美文网首页
开发速记-typescript篇: vue集成

开发速记-typescript篇: vue集成

作者: larluo_罗浩 | 来源:发表于2020-02-25 10:22 被阅读0次

安装nix并配置channel:

sudo install -d -m755 -o $(id -u) -g $(id -g) /nix
curl https://nixos.org/nix/install | sh

nix-channel --add https://nixos.org/channels/nixos-20.03 nixos-20.03
nix-channel --update nixos-20.03

安装yarn

nix-env -f ~/.nix-defexpr/channels/nixos-20.03 -iA yarn

安装vue

yarn global add @vue/cli
yarn global add vue-language-server
yarn global add vscode-css-languageserver-bin

创建vue项目

vue create vue-larluo

Vue CLI v4.2.2
? Please pick a preset: Manually select features

Vue CLI v4.2.2
? Please pick a preset: Manually select features
? Check the features needed for your project: 
 ◉ Babel
❯◉ TypeScript
 ◯ Progressive Web App (PWA) Support
 ◯ Router
 ◯ Vuex
 ◯ CSS Pre-processors
 ◉ Linter / Formatter
 ◯ Unit Testing
 ◯ E2E Testing

cd vue-larluo

emacs 编辑项目

启动vue项目

yarn serve

相关文章

网友评论

      本文标题:开发速记-typescript篇: vue集成

      本文链接:https://www.haomeiwen.com/subject/izrzqhtx.html