@kartotherian/babel
Version:
Tile source to support multilingual maps
46 lines (43 loc) • 895 B
JavaScript
/* eslint-env node */
module.exports = function Gruntfile(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-tyops');
grunt.initConfig({
watch: {
scripts: {
files: ['**/*.js'],
tasks: ['test'],
},
},
eslint: {
code: {
src: [
'lib/*.js',
'test/*.js',
],
},
},
tyops: {
options: {
typos: '.typos.json',
},
src: [
'lib/*.js',
'test/*.js',
],
},
mochaTest: {
test: {
options: {
reporter: 'spec',
},
src: ['test/**/*.js'],
},
},
});
grunt.registerTask('lint', ['eslint']);
grunt.registerTask('test', ['tyops', 'lint', 'mochaTest']);
grunt.registerTask('default', 'test');
};