You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1000 B

  1. /*
  2. * grunt
  3. * http://gruntjs.com/
  4. *
  5. * Copyright (c) 2012 "Cowboy" Ben Alman
  6. * Licensed under the MIT license.
  7. * https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
  8. */
  9. module.exports = function(grunt) {
  10. // Project configuration.
  11. grunt.initConfig({
  12. test: {
  13. all: ['test/**/*.js']
  14. },
  15. lint: {
  16. all: [
  17. 'grunt.js',
  18. 'lib/**/*.js',
  19. 'tasks/*.js',
  20. 'tasks/*/*.js',
  21. 'test/{grunt,tasks,util}/*.js'
  22. ]
  23. },
  24. watch: {
  25. scripts: {
  26. files: '<config:lint.all>',
  27. tasks: 'lint test'
  28. }
  29. },
  30. jshint: {
  31. options: {
  32. curly: true,
  33. eqeqeq: true,
  34. immed: true,
  35. latedef: true,
  36. newcap: true,
  37. noarg: true,
  38. sub: true,
  39. undef: true,
  40. boss: true,
  41. eqnull: true,
  42. node: true,
  43. es5: true,
  44. strict: false
  45. },
  46. globals: {}
  47. }
  48. });
  49. // Default task.
  50. grunt.registerTask('default', 'lint test');
  51. };