Alfred Template Renderer
Alfred renders your template and creates a new file with given parameters to speed up your frontend development
Help
alfred new <template> <dest> [conf] [rename]
Create a component from template. Takes the template from config.templates,
renders with the rest of the parameters and writes to the --dest
Options:
--version Show version number [boolean]
--help Show help [boolean]
--dest, -d [default: "."]
--conf, -c [default: "./"]
Example Usage
First create a config file with alfred init
in project root
Create a new file from a template alfred new component.jsx components/ --rename NavBar.jsx --componentName NavBar
Will create a file under ./components/
with the file name NavBar.jsx
and render with componentName
variable NavBar