Pug Musings - is a console utility to convert Pug templates to ready to use React components.
To install Pug Musings as global package run following command:
yarn global add pug-musings
npm install pug-musings -g
Now you can use global name pug-musings to run transpiler:
pug-musings --in = path_to_pug_template --out = path_to_output_file
Options:
--in Path to the target Pug template
--out Path to the output file, stdout will be used if missing
--watch If given will start watching for changes, out param is required
--no_beautify Prevent to beautify result
Tests are organized in pairs Pug template + template data in tests/templates
folder and can be run as follows:
npm test