alfredjs

1.0.0 • Public • Published

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

/alfredjs/

    Package Sidebar

    Install

    npm i alfredjs

    Weekly Downloads

    4

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    79.5 kB

    Total Files

    8

    Last publish

    Collaborators

    • kucukkanat