dot-grunt
Installation
git clone https://github.com/iammerrick/dot-grunt.git ~/.grunt
Usage
These are my .grunt
directory files.
grunt init:requirejs-backbone
Quickly scaffold a Backbone.js project driven by Require.js.
Features
- Unit testing with Mocha.js.
- Stubbing and assertion support with Sinon and Chai.js.
- Optimization with r.js.
- Run your tests with PhantomJS.
- Develop without optimization, staying true to the Require.js principles.
- Lint integration with JSHint.
- Tied together with Grunt.js
Installation
grunt init:requirejs-backbone
npm install
Available Commands
grunt test
- Run your unit tests with PhantomJS.grunt requirejs
- Optimize your project with r.js.grunt lint
- Run JSHintgrunt build
- Lint, Test and Optimize. In that order.
grunt init:cli
Quickly scaffold an optimist driven command-line interface. This will automatically create a set of boilerplate files for creating and testing your awesome new program. It will automatically set the permissions and link your new binary for immediate use anywhere in your command-line environment.
Installation
grunt init:cli
- Make someones life better.
grunt init:algorithm
Quickly scaffold an algorithm garden. It provides a Mocha test structure with expect style syntax from Chai. Quickly work on the algorithm itself, instead of tedious set up. Great for algorithm problems in general whether you are running through Project Euler or practicing for your big job interview. The algorithm scaffold is a great place to start.
Installation
grunt init:algorithm
npm install
- Improve yourself.