Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. 'use strict';
  2.  
  3. require('quiet-grunt');
  4.  
  5. module.exports = function (grunt) {
  6.  
  7. grunt.loadNpmTasks('grunt-jsonlint');
  8. grunt.loadNpmTasks('grunt-geojsonhint');
  9.  
  10. grunt.initConfig({
  11.  
  12. jsonlint: {
  13. sample: {
  14. src: [ 'data/**/*.geojson' ]
  15. }
  16. },
  17.  
  18. geojsonhint: {
  19. files: [
  20. 'data/**/*.geojson'
  21. ]
  22. },
  23.  
  24. nada: {
  25. sample: {
  26. src: [ 'data/**/*.geojson' ]
  27. }
  28. }
  29.  
  30. });
  31.  
  32. // Default task.
  33. grunt.registerTask('default', ['jsonlint', 'geojsonhint']);
  34.  
  35. // Travis CI task.
  36. grunt.registerTask('travis', ['jsonlint', 'geojsonhint']);
  37.  
  38. grunt.registerMultiTask('nada', 'Mock task that does nothing.', function () {
  39. grunt.log.writeln(this.target + ': Successfully ran nada.');
  40. grunt.log.writeln('file count: ' + this.filesSrc.length);
  41. });
  42.  
  43. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement