javascript - Prevent Jade from flattening folder structure -


i've been attempting implement build solution using npm scripts opposed gulp/grunt/etc outlined here: http://substack.net/task_automation_with_npm_run , here: http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/. however, i'm struggling integrate clean , sensible approach managing numerous jade files in build process.

the jade cli supports passing directory , outputting of nested compiled jade files. great, however, flattens folder structure. i'd ideally have jade output results whilst maintaining directory structure. what's best way go this?

example folder structure:

package.json src/   foo.jade   bar/     baz.jade     qux.jade 

running jade src -o build outputs:

package.json build/   foo.html   baz.hmtl   qux.html src/ 

instead of:

package.json build/   foo.html   bar/     baz.html     qux.html src/ 

not sure how missed should happen upon in future, -h flag friend.

ex: jade src -h -o build

ref: https://github.com/jadejs/jade-cli/blob/master/index.js#l36


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -