Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
My dot grunt files.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tasks/init
.gitignore
README.md

README.md

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
  1. grunt init:requirejs-backbone
  2. npm install
Available Commands
  1. grunt test - Run your unit tests with PhantomJS.
  2. grunt requirejs - Optimize your project with r.js.
  3. grunt lint - Run JSHint
  4. grunt build - Lint, Test and Optimize. In that order.

Require.js + Backbone using init:requirejs-backbone

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
  1. grunt init:cli
  2. Make someones life better.

Hello World using init:cli

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
  1. grunt init:algorithm
  2. npm install
  3. Improve yourself.

Fibonacci Using init:algorithm

Something went wrong with that request. Please try again.