grunt-skippy

0.0.0 • Public • Published

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'
      ]
    }
});

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-skippy

Weekly Downloads

4

Version

0.0.0

License

MIT

Last publish

Collaborators

  • hurrymaplelad