gruntfile.js 681 B

12345678910111213141516171819202122232425262728293031323334
  1. /* global module */
  2. 'use strict';
  3. module.exports = function( grunt ) {
  4. // First register the "default" task, so it can be analized by other tasks.
  5. grunt.registerTask( 'default', [ 'jshint:git', 'jscs' ] );
  6. // Basic configuration, which will be overloaded by the tasks.
  7. grunt.initConfig( {
  8. pkg: grunt.file.readJSON( 'package.json' ),
  9. jshint: {
  10. options: {
  11. 'ignores': lintIgnores
  12. }
  13. },
  14. jscs: {
  15. options: {
  16. 'excludeFiles': lintIgnores
  17. }
  18. }
  19. } );
  20. // Finally load the tasks.
  21. grunt.loadTasks( 'dev/tasks' );
  22. };
  23. // The list of files we want to exclude from linting tasks, like jshint and jscs.
  24. var lintIgnores = [
  25. 'node_modules/**',
  26. 'build/**'
  27. ];