gruntfile.js 757 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* jshint node: true */
  2. 'use strict';
  3. module.exports = function( grunt ) {
  4. // First register the "default" task, so it can be analyzed by other tasks.
  5. grunt.registerTask( 'default', [ 'jshint:git', 'jscs:git' ] );
  6. // Files that will be ignored by the "jscs" and "jshint" tasks.
  7. var ignoreFiles = [
  8. // Automatically loaded from .gitignore. Add more if necessary.
  9. 'lib/**'
  10. ];
  11. // Basic configuration which will be overloaded by the tasks.
  12. grunt.initConfig( {
  13. pkg: grunt.file.readJSON( 'package.json' ),
  14. jshint: {
  15. options: {
  16. globals: {
  17. 'bender': false
  18. },
  19. ignores: ignoreFiles
  20. }
  21. },
  22. jscs: {
  23. options: {
  24. excludeFiles: ignoreFiles
  25. }
  26. }
  27. } );
  28. // Finally load the tasks.
  29. grunt.loadTasks( 'dev/tasks' );
  30. };