mock-redis-client
Version:
A redis mock for node development
80 lines (73 loc) • 1.7 kB
JavaScript
/**
* Standard build
*
* @author: darryl.west@raincitysoftware.com
* @created: 12/30/13 9:30 AM
*/
module.exports = function(grunt) {
'use strict';
require('load-grunt-tasks')(grunt);
grunt.initConfig({
dirs: {
lib:'lib',
browser:'browser',
test: 'test'
},
watch:{
scripts:{
files:[
'index.js',
'<%= dirs.lib %>/*.js',
'<%= dirs.test %>/*.js'
],
tasks: [
'mochaTest',
'jshint'
],
options:{
spawn: true
}
}
},
jshint: {
options:{
jshintrc: '.jshintrc',
verbose: true,
reporter: require('jshint-stylish')
},
all: [
'Gruntfile.js',
'index.js',
'<%= dirs.lib %>/*.js',
'<%= dirs.test %>/*.js'
]
},
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: [
'<%= dirs.test %>/*.js'
]
}
}
});
grunt.registerTask('server', [
'mochaTest',
'jshint',
'watch'
]);
grunt.registerTask('test', [
'mochaTest',
'jshint'
]);
grunt.registerTask('testAll', [
'mochaTest',
'validate-package'
]);
grunt.registerTask('default', [
'jshint',
'mochaTest'
]);
};