UNPKG

1.06 kBJavaScriptView Raw
1'use strict';
2
3module.exports = function (grunt) {
4
5 grunt.initConfig({
6 jshint: {
7 all: [
8 'Gruntfile.js',
9 'tasks/*.js'
10 ],
11 options: {
12 jshintrc: '.jshintrc'
13 }
14 },
15
16 // Run the task to smoketest it
17 retire: {
18 node: ['test-files/**'],
19 js: ['test-files/**/*.js', 'test-files/**/bower.json'],
20 options: {
21 verbose: true,
22 packageOnly: true,
23 //jsRepository: 'test-files/jsrepository.json',
24 //nodeRepository: 'test-files/npmrepository.json',
25 jsRepository: 'https://raw.github.com/RetireJS/retire.js/master/repository/jsrepository.json',
26 nodeRepository: 'https://raw.github.com/RetireJS/retire.js/master/repository/npmrepository.json'
27 }
28 }
29 });
30
31 // Actually load this plugin's task(s).
32 grunt.loadTasks('tasks');
33
34 grunt.loadNpmTasks('grunt-contrib-jshint');
35
36
37 // By default, lint and retire.
38 grunt.registerTask('default', ['jshint', 'retire']);
39
40};