grunt-init-browser
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-browsergrunt-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://github.com/twolfson/grunt-init-browser.git grunt-grunt-init-browsercd grunt-grunt-init-browsergrunt
Contributing
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
.
License
Copyright (c) 2013 Todd Wolfson Licensed under the MIT license.