mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
10f461aa38
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
35 lines
627 B
JavaScript
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']);
|
|
};
|