UNPKG

raven-cli

Version:
37 lines (31 loc) 974 B
'use strict'; var path = require('path'); global.PROJECT_PATH = path.resolve(__dirname); module.exports = function (grunt) { grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-mocha-test'); grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { files: ['./**/*.js', './*.js'], options: { ignores: ['node_modules/**/*.js'], jshintrc: '.jshintrc' } }, mochaTest: { test: { options: { reporter: 'spec', quiet: false, clearRequireCache: false, noFail: false }, src: ['test/**/*.test.js'] } } }); grunt.registerTask('test:style', ['jshint']); grunt.registerTask('test:mocha', 'mochaTest'); grunt.registerTask('test', ['test:style', 'test:mocha']); };