Sublime Forum

Jade Build System

#1

Hi guys.
I’ve searched everywhere but I can’t find any way to Build my jade files.

This is my Jade.sublime-build:

{
	"cmd": "jade", "$file"],
	"selector": "source.jade"
}

When I build the file ( ctrl + b, F7 )

This is what Sublime Output says:

Running jade F:\Webs\stub\views\index.jade

(if i execute this line on cmd, it works perfectly)

And I get this error:

[Error 2] The system cannot find the file specified [Finished]

Can anyone help me?

Thanks a lot in advance, and thanks for this awesome IDE

0 Likes

#2

I know nothing about jade but it may help if you use “jade.cmd” “jade.bat” or “jade.exe” instead of just “jade”

if all of them are not working, you may try

{ "cmd": "cmd", "/c", "jade", "$file"], "selector": "source.jade" }

0 Likes

#3

Hey erinata, it works like a charm! Thanks.

Could you explain me why it works with the addition of “cmd”, “/c” ?

Thanks again!

0 Likes