1.0.2 • Published 6 years ago
pugcompiler v1.0.2
Deprecated
Pugjs has their own pug CLI that does that: https://github.com/pugjs/pug-cli / https://www.npmjs.com/package/pug-cli
Pug Compiler
A simple pug
file compiler. Tired of writing markup the long way? Write your pug, compile to html, and voilà.
installation
npm install -g pugcompiler
create a folder
+ myfolder/
- pug/
- index.pug
- example.css
- example.js
usage
pugcompiler path/to/myfolder/pug
And voilà. your html is in place in the ./html/ directory.
The path argument is optional, if not present, it will default to './pug/'.
If you have directories inside the folder containing your pug files, you might want to use the -R flag: pugcompiler -R
If you want your html to be compiled elsewhere than ./html/ you can specify it with -o flag: pugcompiler -o ./my/other/folder