grunt-skippy

v0.0.0
Skip multitask target if source files haven't changed
grunt skippy cache fingerprint speedup

grunt-skippy

Build Status

Skip multitask target if source files haven't changed.

> grunt skippy:uglify:thirdparty // The first time will run uglify:thirdparty as usual.
> grunt skippy:uglify:thirdparty // The second time it'll skip uglify since
                                 // the source files haven't changed.

Getting Started

Grunt ~0.4.1

You should be comfy with the grunt basics and npm so you can install this in your project

> npm install grunt-skippy --save-dev

Add something like this to your Gruntfile: (uglify is just an example, use skippy with any task that transforms source files to dest files)

grunt.loadNpmTasks('grunt-skippy');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.initConfig({
  uglify: {
    thirdparty: {
      dest: 'public/build/js/thirdparty/index.js'
      src: [
        'es5-shim.js',
        'jquery-1.9.1.js',
        'underscore.js',
        'backbone.js',
        'Backbone.ModelBinder.js',
        'Backbone.CollectionBinder.js'
      ]
    }
});
npm i grunt-skippy

Metadata

  • MIT
  • Whatever
  • Adam Hull
  • released 11/8/2013

Downloads

Maintainers