1 | 'use strict';
|
2 |
|
3 | module.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 |
|
17 | retire: {
|
18 | node: ['test-files/**'],
|
19 | js: ['test-files/**/*.js', 'test-files/**/bower.json'],
|
20 | options: {
|
21 | verbose: true,
|
22 | packageOnly: true,
|
23 |
|
24 |
|
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 |
|
32 | grunt.loadTasks('tasks');
|
33 |
|
34 | grunt.loadNpmTasks('grunt-contrib-jshint');
|
35 |
|
36 |
|
37 |
|
38 | grunt.registerTask('default', ['jshint', 'retire']);
|
39 |
|
40 | };
|