grunt-init-mootools

Grunt plugin to generate Mootools plugin stub.

npm install grunt-init-mootools
4 downloads in the last week
10 downloads in the last month

MooTools plugin template (Grunt 0.3)

This is a boilerplate to generate MooTools plugins using Grunt.

Please note, that it is for now-outdated Grunt 0.3 version. The new grunt-init that complements Grunt 0.4 doesn't seem to allow to put multiple templates into one package. The solution will probably be to create a yo generator instead.

Getting Started

  1. Install this Grunt plugin with:

    $ npm install -g grunt-init-mootools
    
  2. Create a new grunt MooTools plugin stub in an empty directory

    $ grunt-init-mootools init:mootools
    
  3. Answer some questions.

  4. Now you have your new plugin stub ready. These files with the placeholder code have been created:

    • Docs
      • ProjectName.md
    • Source
      • ProjectName.js
    • Specs
      • ProjectName.js
      • Tests.html
    • grunt.js
    • README.md
    • LICENSE.md
    • package.yml

Now just add code, specs and API docs into the prepared template files

One Source file not enough?

  1. To create additional set of a source, specs and docs files, type in your previously initialized project directory:

    $ grunt-init-mootools init:class
    
  2. Answer some questions.

  3. You're done, have fun.

License & acknowledgments

This work is based on Grunt init template generator from Rodrigo Valerio and borrows a lot from Grunt's own init templates.

Copyright (c) 2013 Korney Czukowski. Licensed under the MIT license.

npm loves you