showdown/Gruntfile.js

35 lines
627 B
JavaScript
Raw Normal View History

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