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.

38 lines
730 B

  1. module.exports = function(grunt) {
  2. "use strict";
  3. // Project configuration.
  4. grunt.initConfig({
  5. pkg: '<json:package.json>',
  6. test: {
  7. files: ['test/**/*.js']
  8. },
  9. lint: {
  10. files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
  11. },
  12. watch: {
  13. files: '<config:lint.files>',
  14. tasks: 'default'
  15. },
  16. jshint: {
  17. options: {
  18. curly: true,
  19. eqeqeq: true,
  20. immed: true,
  21. latedef: true,
  22. newcap: true,
  23. noarg: true,
  24. sub: true,
  25. undef: true,
  26. boss: true,
  27. eqnull: true,
  28. node: true
  29. },
  30. globals: {
  31. exports: true
  32. }
  33. }
  34. });
  35. // Default task.
  36. grunt.registerTask('default', 'test');
  37. };