node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »


grunt-init-browser Donate on Gittip

Grunt init template for generating and testing multiple versions of a browser script

This template creates a vanilla JS and require.js out of the box in minified and unminified flavors.

More variants can be added via mustache templates.

Getting Started

Install grunt-init-browser globally and call it from the shell

sudo npm install -g grunt-init-browser

The browser template should be added to your grunt userDir (~/.grunt for Linux or %USERPROFILE% for Windows).

You can now call grunt init:browser and the init prompt will start.

Manual Install

Clone the repository, enter the directory, and run grunt to install grunt-grunt-init-browser.

git clone git:// grunt-grunt-init-browser
cd grunt-grunt-init-browser


In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint your code using grunt and test via npm test.


Copyright (c) 2013 Todd Wolfson Licensed under the MIT license.