Compile all jade files in folder using command prompt

pug

Solution

using `jade -w <<path to dir>>` where <> it is the directory were you have the jade files.

If you have sub-directories with jade files that you would to compile, as well, you can append to the path `/*`, for instance `/workspace/jadefiles/*`.

Another think that also works is to pass multiple files/directories to `jade -w` command, for instance: `jade -w /workspace/jadefiles/snipped /workspace/jadefiles/components`

By the way, I tested them with nodejs 0.10.15 and jade 0.34.1

Problem

I am using jade, sass and compass for making HTML templates. I have install nodejs software for jade compiler to work through command prompt. But its compiling only single file at a time. I want to compile all the files at once using command prompt, just like sass and compass does. I am wondering if its possible through command prompt. Note: I am not using UI software like Prepros. Any help will be greatly appreciated. Thanks in advance. EDIT :- I am using below command in command prompt to compile jade files. ``` jade -w index.jade ```

Original source