ionic2 vscode運行調試


一、環境搭建

1,安裝ripple模擬器

如果已經注冊了淘寶國內鏡像使用下面命令

cnpm install -g ripple-emulator

顯示結果如下:

2,安裝vs code 下載地址https://code.visualstudio.com/

  一路next 微軟東西就是好

3,使用vs code 打開項目目錄

   

這里會自動生成一個.vscode目錄,我們在里面添加一個tasks.json文件內容如下

{
    // 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}"]
}

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM