generatorjs

0.2.1 • Public • Published

Generator

A super simple generator. It takes a source of files that are ejs templates and a destination directory along with some options (for the templates). That's it.

Installation

Npm:

npm install generatorjs

Getting Started

Require generatorjs:

var generator = require('generatorjs');

Create a new generator:

generator(__dirname + '/templates')
  .dest(process.cwd())
  .vars({ name: 'foo' })
  .run()
  .then(function() {
    // success!
  });

By default, generatorjs also logs what it's doing.

Tests

make test

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i generatorjs

Weekly Downloads

5

Version

0.2.1

License

none

Last publish

Collaborators

  • thehydroimpulse