vdata-parser
Version:
Parse vdata (ics, vcal, vcard) to javscript objects.
60 lines (55 loc) • 1.48 kB
JavaScript
;
module.exports = function (grunt) {
// Show elapsed time at the end
require('time-grunt')(grunt);
// Load all grunt tasks
require('load-grunt-tasks')(grunt);
// Project configuration.
grunt.initConfig({
nodeunit: {
options: {
reporter: 'default'
},
files: ['test/{,**/}*_test.js']
},
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
gruntfile: {
src: 'Gruntfile.js'
},
lib: {
src: ['lib/**/*.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']
}
},
bump: {
options: {
push: false,
pushTo: 'origin'
}
}
});
// Test task.
grunt.registerTask('test', ['jshint', 'nodeunit']);
// Default task.
grunt.registerTask('default', ['test']);
};