An open API service indexing awesome lists of open source software.

https://github.com/inbetgames/pug-to-react-transplier

Pug Musings - is a console utility to convert Pug templates to ready to use React components.
https://github.com/inbetgames/pug-to-react-transplier

console-utility converter pug pug-templates reac react-component transpiler

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://github.com/inbetgames/pug-to-react-transplier/blob/master/LICENSE)