UNPKG

storm-replay

Version:

NodeJS wrapper for StormLib (https://github.com/ladislav-zezula/StormLib)

47 lines (44 loc) 1.31 kB
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), watch: { files: ['*.js', 'src/*.cpp', 'binding.gyp', 'test/*.js' ], tasks: ['jshint'] }, jshint: { all: ['*.js', 'test/*.js' ], options: { esversion: 6, node: true, force: true } }, concurrent: { options: { "logConcurrentOutput": true }, lint: { tasks: [ 'jshint', 'watch' ] } }, simplemocha: { options: { globals: [], // Add whitelisted globals here timeout: 3000, ignoreLeaks: false, ui: 'bdd', reporter: 'spec' }, all: { src: ['test/**/*.js'] } } }); // Load plugins/tasks grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-concurrent'); grunt.loadNpmTasks('grunt-simple-mocha'); // Grunt task(s). grunt.registerTask('default', ['concurrent:lint']); grunt.registerTask('test', ['simplemocha']); };