wiki-plugin-mech
Version:
Federated Wiki - Mechanism Scripting Plugin
28 lines (24 loc) • 595 B
JavaScript
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-watch')
grunt.loadNpmTasks('grunt-mocha-test')
grunt.loadNpmTasks('grunt-git-authors')
grunt.initConfig({
mochaTest: {
test: {
options: {
reporter: 'spec',
},
src: ['test/**/*.js'],
},
},
watch: {
all: {
files: ['client/*.js', 'test/*.js', 'server/*.js'],
tasks: ['mochaTest'],
},
},
})
grunt.registerTask('build', ['mochaTest'])
grunt.registerTask('default', ['build'])
}