Gruntfile.js 793 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*jshint node:true */
  2. module.exports = function(grunt) {
  3. 'use strict';
  4. grunt.initConfig({
  5. pkg: grunt.file.readJSON('package.json'),
  6. complexity: {
  7. options: {
  8. errorsOnly: false,
  9. cyclomatic: 10,
  10. halstead: 30,
  11. maintainability: 85
  12. },
  13. generic: {
  14. src: [
  15. 'mousetrap.js'
  16. ]
  17. },
  18. plugins: {
  19. src: [
  20. 'plugins/**/*.js',
  21. '!plugins/**/tests/**',
  22. '!plugins/**/*.min.js'
  23. ]
  24. }
  25. }
  26. });
  27. grunt.loadNpmTasks('grunt-complexity');
  28. grunt.registerTask('default', [
  29. 'complexity'
  30. ]);
  31. };