开发速记-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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容