node-serialport-bindings-cpp/Gruntfile.js

27 lines
568 B
JavaScript

'use strict';
module.exports = function(grunt) {
grunt.initConfig({
mochaTest: {
test: {
options: { reporter: 'spec' },
src: ['test/*.js']
}
},
eslint: {
src: [
'*.js',
'lib/**/*.js',
'test/**/*.js',
'bin/**/*.js',
'examples/**/*.js'
]
}
});
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('gruntify-eslint');
grunt.registerTask('lint', ['eslint']);
grunt.registerTask('test', ['mochaTest']);
grunt.registerTask('default', ['lint', 'test']);
};