2023-05-16 10:50:42 +08:00

23 lines
529 B
JavaScript
Executable File

'use strict';
module.exports = function (grunt) {
grunt.initConfig({
eslint: {
src: ['lib/*.js', 'lib/**/*.js'],
options: {
configFile: '.eslintrc.json',
},
},
mochaTest: {
src: ['test/test-*.js'],
options: {
reporter: 'dot',
},
},
});
grunt.loadNpmTasks('gruntify-eslint');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.registerTask('test', ['eslint', 'mochaTest']);
};