Navigation Menu

Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

goodeggs/grunt-skippy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Heads up, folks are exploring something similar for core grunt 0.5+.

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

About

Skip multitask target if source files haven't changed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published