merlin-react

1.0.8 • Public • Published

_/\_ MERLIN-ENGINE _/\_

Merlin is a generical file creator that uses templates and JSON data to generate dynamic files. It can be used to build scafolding tools and mock data based on templates.

Installation

npm install -g merlin-engine

Usage

A full command example: merlin create --values '{ "name": "Header" }' --template ./example/classComponentTemplate.js --output './example/Header.js

  • values: a JSON like string with values to fill the template
  • template: a template file that merlin uses to generate the final file. The template file must be written using the JavaScript Template String specs. But merlin doesn't care about the extension files that you will generate. Just write the templates and use the right extensions and you will be able to generate python, ruby or whatever you want to.
  • output: the relative path that merlin will write the output file.

License

merlin-engine is released under the MIT License

Package Sidebar

Install

npm i merlin-react

Weekly Downloads

7

Version

1.0.8

License

MIT

Unpacked Size

4.54 kB

Total Files

8

Last publish

Collaborators

  • netoguimaraes