Home

Awesome

generator-umd

version: 0.1.1

Build Status

An Yeoman Generator to create a basic UMD (Universal Module Definition) structure.

Getting Started

About

This script is an Yeoman Generator, meant to be used with some modern Javascript tools such as npm and Bower.

Information on the generated module

Setup

You will need to have at least npm previously installed on your machine.

  1. Install the Yeoman CLI
npm install -g yo
  1. Install the UMD Generator
npm install -g generator-umd

Generating your module

  1. Open your terminal, navigate to an empty folder destined to your module:
mkdir new-module
cd new-module/
  1. Run the generator:
yo umd
  1. Input the required information, the generator will ask you:
  1. You should be ready to go!

Todo

Support a way of easily adding dependencies

If you need to consume other libraries from inside your module, you will have to take a look at the UMD spec and implement it by yourself.

I have plans to add this feature in a subgenerator, using the comment metadata from the generated module file.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

License

Released under the MIT License.