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}"]
}
相關文章
相關標籤/搜索