Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'use strict';
- require('quiet-grunt');
- module.exports = function (grunt) {
- grunt.loadNpmTasks('grunt-jsonlint');
- grunt.loadNpmTasks('grunt-geojsonhint');
- grunt.initConfig({
- jsonlint: {
- sample: {
- src: [ 'data/**/*.geojson' ]
- }
- },
- geojsonhint: {
- files: [
- 'data/**/*.geojson'
- ]
- },
- nada: {
- sample: {
- src: [ 'data/**/*.geojson' ]
- }
- }
- });
- // Default task.
- grunt.registerTask('default', ['jsonlint', 'geojsonhint']);
- // Travis CI task.
- grunt.registerTask('travis', ['jsonlint', 'geojsonhint']);
- grunt.registerMultiTask('nada', 'Mock task that does nothing.', function () {
- grunt.log.writeln(this.target + ': Successfully ran nada.');
- grunt.log.writeln('file count: ' + this.filesSrc.length);
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement