mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
27 lines
568 B
JavaScript
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']);
|
|
};
|