0.1.0 • Published 8 years ago

generator-generator-fromdir v0.1.0

Weekly downloads
6
License
Apache-2.0
Repository
github
Last release
8 years ago

generator-generator-fromdir NPM version Dependency Status

This builds upon generator-generator but rather than initializing an empty generator, it prepopulates the templates directory with the contents of an already existing one.

With a new project it's often easier for me to install and code everything up manually and make sure it's working and only then create a scaffold from it. Otherwise I need to constantly update both the generator and the package I'm working on. That's what this yeoman generator generator does. You set up a working version of some library, create the generator, and then create templates from those files as needed.

Installation

First, install Yeoman and generator-test using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-generator-fromdir

Then generate your new project:

yo generator-fromdir <directory to scaffold>

The default behavior is to copy all files in the directory to the templates directory and then create copy routines in the resulting generator to copy each file.

License

Apache-2.0 © Thomas Torsney-Weir