Sha256: 90f3ab97b7f9ba56148472b1d3f16dfd5bec39a7a7757a17dd3daa6ad1b82496
Contents?: true
Size: 1.65 KB
Versions: 62
Compression:
Stored size: 1.65 KB
Contents
'use strict'; module.exports = function (grunt) { grunt.initConfig({ jshint: { options: { jshintrc: '.jshintrc' }, files: [ 'Gruntfile.js', 'bin/*', 'lib/**/*.js', 'test/*.js' ] }, simplemocha: { options: { reporter: 'spec', timeout: '5000' }, full: { src: [ 'test/*.js' ] }, short: { options: { reporter: 'dot' }, src: [ '<%= simplemocha.full.src %>' ] } }, exec: { coverage: { command: 'node node_modules/istanbul/lib/cli.js cover --dir ./coverage node_modules/mocha/bin/_mocha -- -R dot test/*.js' }, 'test-files': { command: 'node download-test-assets.js' } }, watch: { files: [ '<%= jshint.files %>' ], tasks: [ 'jshint', 'simplemocha:short' ] } }); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadNpmTasks('grunt-simple-mocha'); grunt.loadNpmTasks('grunt-exec'); grunt.registerTask('test', ['jshint', 'simplemocha:full']); grunt.registerTask('coverage', 'exec:coverage'); grunt.registerTask('test-files', 'exec:test-files'); grunt.registerTask('default', 'test'); };
Version data entries
62 entries across 62 versions & 1 rubygems