开发速记-typescript篇: vue集成

安装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集成)