grunt-retire
Version:
Grunt plugin for retire.
39 lines (30 loc) • 923 B
JavaScript
;
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js'
],
options: {
jshintrc: '.jshintrc'
}
},
// Run the task to smoketest it
retire: {
js: ['test-files/*'],
node: ['.'],
options: {
verbose: true,
packageOnly: true, /* package:false is not implemented! */
jsRepository: 'https://raw.github.com/bekk/retire.js/master/repository/jsrepository.json',
nodeRepository: 'https://raw.github.com/bekk/retire.js/master/repository/npmrepository.json'
}
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-jshint');
// By default, lint and retire.
grunt.registerTask('default', ['jshint', 'retire']);
};