Skip to content

Commit

Permalink
add Gruntfile.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickJS committed Oct 17, 2013
1 parent 6cfb9eb commit 0163d21
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,54 @@
'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-off.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'
]);

grunt.registerTask('test', [
'jshint',
'nodeunit'
]);

};

0 comments on commit 0163d21

Please sign in to comment.