javascript - how can I render pug(jade) to html in npm scripts? -


i trying build package.json file, , having difficult time when comes writing scripts.

"scripts": { "test": "echo \"error: no test specified\" && exit 1",  "build-css":"node-sass --output-style compressed -o build/styles src/styles",  "pugtohtml": "npm pug -d index.pug"   }, 

this doesn't work

i've installed pug package , want automate task using npm can please me , appreciate if give me tips , resources of how learn writing scripts , automating tasks using npm, thank you!

you must write task

"pugtohtml": "pug --output-style compressed -o dist/html/ assets/pug/*.pug" 

Comments