0.2.1 • Published 10 years ago

generatorjs v0.2.1

Weekly downloads
9
License
-
Repository
-
Last release
10 years ago

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

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago