Skip to content

Pug Musings - is a console utility to convert Pug templates to ready to use React components.

License

Notifications You must be signed in to change notification settings

inbetgames/pug-to-react-transplier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pug Musings

Pug Musings - is a console utility to convert Pug templates to ready to use React components.

Installation

To install Pug Musings as global package run following command:

Yarn

yarn global add pug-musings

npm

npm install pug-musings -g

Usage

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

Tests are organized in pairs Pug template + template data in tests/templates folder and can be run as follows:

npm test

License

MIT License

About

Pug Musings - is a console utility to convert Pug templates to ready to use React components.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •