mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
add basic grunt file support
This commit is contained in:
parent
803efa03af
commit
5153d76d89
30
grunt.js
Normal file
30
grunt.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
lint: {
|
||||
all: ['src/**/*.js', 'test/**/*.js']
|
||||
},
|
||||
jshint: {
|
||||
options: {
|
||||
browser: true
|
||||
}
|
||||
},
|
||||
simplemocha: {
|
||||
all: {
|
||||
src: 'test/run.js',
|
||||
options: {
|
||||
globals: ['should'],
|
||||
timeout: 3000,
|
||||
ignoreLeaks: false,
|
||||
ui: 'bdd'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-simple-mocha');
|
||||
|
||||
grunt.registerTask('default', ['simplemocha', 'lint']);
|
||||
};
|
|
@ -23,6 +23,9 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"mocha": "1.3.0",
|
||||
"grunt": "0.3.17",
|
||||
"grunt-simple-mocha": "*",
|
||||
"grunt-mocha": "*",
|
||||
"should": "1.2.0"
|
||||
},
|
||||
"licenses": [{
|
||||
|
|
Loading…
Reference in New Issue
Block a user