how can I compile all the jade files in a folder at the same time in windows?

1

I have Windows 7 and I want to run the npm command and compile all the jade files that are in the lib library, this is the command I want to use:

jade --watch --pretty lib/*.jade --out .

and it generates the following error:

Error: ENOENT: no such file or directory, lstat 'C:\Usersmarzo\proyecto1\lib\*.jade'
at Error (native)
at Object.fs.lstatSync (fs.js:1003:11)
at renderFile (C:\Usersmarzo\AppData\Roaming\npm\node_modules\jade\bin\jade.js:227:17)
at tryRender (C:\Usersmarzo\AppData\Roaming\npm\node_modules\jade\bin\jade.js:181:5)
at C:\Usersmarzo\AppData\Roaming\npm\node_modules\jade\bin\jade.js:136:5
at Array.forEach (native)
at Object.<anonymous> (C:\Usersmarzo\AppData\Roaming\npm\node_modules\jade\bin\jade.js:135:9)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)

NOTE: This works when I put the specific name of a jade file, for example:

jade --watch --pretty lib/index.jade --out .
    
asked by rrg1459 25.05.2018 в 19:38
source

1 answer

0

Answering my own question:

After thoroughly researching Jade's documentation, I found that this is the exact command to run on Windows.

jade --watch --pretty lib --out .
    
answered by 26.05.2018 в 12:41