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.
- Host: GitHub
- URL: https://github.com/inbetgames/pug-to-react-transplier
- Owner: inbetgames
- License: mit
- Created: 2017-10-17T18:39:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-05T05:50:15.000Z (over 8 years ago)
- Last Synced: 2026-03-12T13:41:09.168Z (3 months ago)
- Topics: console-utility, converter, pug, pug-templates, reac, react-component, transpiler
- Language: JavaScript
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)