showdown/Gruntfile.js
nicovalencia 10f461aa38 Updating project to Grunt 0.4.x workflow.
Closes #79
- Changed gruntfile to new naming convention for 0.4.x (Gruntfile.js)
- Upgraded grunt module to version 0.4.2
- Set grunt-mocha dependancy to ~0.4.7
- Added and substituted lint with grunt-contrib-jshint for better coverage
- Updated readme with test and grunt installation information
2014-01-08 12:10:16 -07:00

35 lines
627 B
JavaScript

module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
src: {
src: ['src/**/*.js']
},
test: {
src: ['test/**/*.js']
},
options: {
browser: true
}
},
simplemocha: {
all: {
src: 'test/run.js',
options: {
globals: ['should'],
timeout: 3000,
ignoreLeaks: false,
ui: 'bdd'
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.registerTask('test', ['simplemocha', 'jshint']);
};