UNPKG

appc-cli-expressjs

Version:
41 lines (36 loc) 800 B
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ env: { dev: { } }, mochaTest: { options: { timeout: 3000, reporter: 'spec', ignoreLeaks: false }, src: ['test/*_test.js'] }, jshint: { options: { jshintrc: true }, src: ['lib/**/*.js', 'test/**/*.js'] }, kahvesi: { src: ['test/*_test.js'] }, clean: ['tmp'] }); // Load grunt plugins for modules grunt.loadNpmTasks('grunt-mocha-test'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-env'); grunt.loadNpmTasks('grunt-kahvesi'); // register tasks grunt.registerTask('cover', ['env', 'kahvesi', 'clean']); grunt.registerTask('default', ['jshint', 'env', 'mochaTest', 'clean']); };