50 lines
958 B
JavaScript
50 lines
958 B
JavaScript
'use strict';
|
|
|
|
module.exports = function (grunt) {
|
|
|
|
require('load-grunt-tasks')(grunt);
|
|
require('time-grunt')(grunt);
|
|
|
|
// Project configuration.
|
|
grunt.initConfig({
|
|
nodeunit: {
|
|
files: ['test/**/*_test.js']
|
|
},
|
|
jshint: {
|
|
options: {
|
|
jshintrc: '.jshintrc'
|
|
},
|
|
gruntfile: {
|
|
src: 'Gruntfile.js'
|
|
},
|
|
lib: {
|
|
src: ['angular-raven.js']
|
|
},
|
|
test: {
|
|
src: ['test/**/*.js']
|
|
}
|
|
},
|
|
watch: {
|
|
gruntfile: {
|
|
files: '<%= jshint.gruntfile.src %>',
|
|
tasks: ['jshint:gruntfile']
|
|
},
|
|
lib: {
|
|
files: '<%= jshint.lib.src %>',
|
|
tasks: ['jshint:lib', 'nodeunit']
|
|
},
|
|
test: {
|
|
files: '<%= jshint.test.src %>',
|
|
tasks: ['jshint:test', 'nodeunit']
|
|
}
|
|
}
|
|
});
|
|
|
|
// Default task.
|
|
grunt.registerTask('default', [
|
|
'jshint',
|
|
'nodeunit'
|
|
]);
|
|
|
|
};
|