keyserver/Gruntfile.js

41 lines
758 B
JavaScript
Raw Normal View History

2016-05-25 14:13:49 +00:00
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
all: ['*.js', 'src/**/*.js', 'test/**/*.js'],
options: {
2016-06-14 18:25:47 +00:00
jshintrc: '.jshintrc'
2016-05-25 14:13:49 +00:00
}
},
jscs: {
src: ['*.js', 'src/**/*.js', 'test/**/*.js'],
options: {
2017-01-20 18:51:35 +00:00
config: ".jscsrc"
2016-05-25 14:13:49 +00:00
}
},
mochaTest: {
test: {
options: {
reporter: 'spec'
},
src: [
'test/unit/*.js',
'test/integration/*.js',
]
}
}
});
// Load the plugin(s)
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jscs');
grunt.loadNpmTasks('grunt-mocha-test');
// Default task(s).
grunt.registerTask('test', ['jshint', 'jscs', 'mochaTest']);
};