Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrate Sublime Text 2 with Karma

When doing AngularJS development, I have an open terminal window with Karma running (watching file changes). When coding I go back and forth between Sublime Text 2 and the terminal window showing Karma test results.

I find this pretty annoying and I just saw at egghead.io that this guy has Karma results integrated into WebStorm.

Is there anything similar for Sublime Text? I couldn't find any packages related to Karma.

like image 516
jviotti Avatar asked Nov 09 '13 15:11

jviotti


1 Answers

Go to "Tools | Build System | New Build System" and drop in the following code:

{
"path": "/usr/local/share/npm/bin:/usr/local/bin:$PATH",
"working_dir": "${project_path:${folder}}",
"cmd": ["karma", "start"]
}

Can be found here:.

Also this is the best primer for setting up custom text build systems in sublime text that i've seen.

Cheers

like image 82
Naruto Sempai Avatar answered Oct 06 '22 17:10

Naruto Sempai