UNPKG

935 BJavaScriptView 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 js: ['test-files/*'],
19 node: ['.'],
20 options: {
21 verbose: true,
22 packageOnly: true, /* package:false is not implemented! */
23 jsRepository: 'https://raw.github.com/bekk/retire.js/master/repository/jsrepository.json',
24 nodeRepository: 'https://raw.github.com/bekk/retire.js/master/repository/npmrepository.json'
25 }
26 }
27 });
28
29 // Actually load this plugin's task(s).
30 grunt.loadTasks('tasks');
31
32 grunt.loadNpmTasks('grunt-contrib-jshint');
33
34
35 // By default, lint and retire.
36 grunt.registerTask('default', ['jshint', 'retire']);
37
38};