grunt-version-check
Version:
Checks if your NPM or Bower dependencies are out of date.
40 lines (34 loc) • 874 B
JavaScript
/*
* grunt-version-check
* https://github.com/stevewillard/grunt-version-check
*
* Author Steve Willard (stevewillard@gmail.com)
* Licensed under the MIT license.
*/
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: ['Gruntfile.js', 'tasks/**/*.js'],
options: {
jshintrc: '.jshintrc'
}
},
versioncheck : {
main: {
options : {
skip : ['semver'],
hideUpToDate : false,
showPrerelease : false,
packageLocation : 'files/package.json',
bowerLocation : 'files/bower.json'
}
}
}
});
// Load this plugin
grunt.loadTasks('tasks');
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
// By default, lint and run the task.
grunt.registerTask('default', ['jshint', 'versioncheck']);
};