UNPKG

nunit-command

Version:

Node plugin for preparing NUnit commands

22 lines (19 loc) 515 B
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-release'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-mocha-test'); var files = [ '*.js', 'test/**/*.js' ]; grunt.initConfig({ jshint: { files: files }, mochaTest: { test: { options: { reporter: 'spec' }, src: files } }, release: { options: { commitMessage: 'NPM Release v<%= version %>' } } }); grunt.registerTask('default', [ 'jshint', 'mochaTest' ]); };