ionic2 vscode运行调试

1、环境搭建npm

1,安装ripple模拟器json

若是已经注册了淘宝国内镜像使用下面命令spa

cnpm install -g ripple-emulator

显示结果以下:code

2,安装vs code 下载地址https://code.visualstudio.com/orm

  一路next 微软东西就是好blog

3,使用vs code 打开项目目录ip

   

这里会自动生成一个.vscode目录,咱们在里面添加一个tasks.json文件内容以下get

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "0.1.0", 
    "command": "ripple", 
    "isShellCommand": true, 
    "showOutput": "always", 
    "args": ["emulate","${file}"]
}
相关文章
相关标签/搜索