gruntfile.js 468 B

12345678910111213141516171819202122232425262728293031323334
  1. 'use strict';
  2. module.exports = function( grunt ) {
  3. grunt.initConfig( {
  4. pkg: grunt.file.readJSON( 'package.json' ),
  5. jshint: {
  6. options: {
  7. 'ignores': lintIgnores
  8. }
  9. },
  10. jscs: {
  11. options: {
  12. 'excludeFiles': lintIgnores
  13. }
  14. },
  15. githooks: {
  16. all: {
  17. 'pre-commit': 'default'
  18. }
  19. }
  20. } );
  21. grunt.loadTasks( 'dev/tasks' );
  22. grunt.registerTask( 'default', [ 'jshint', 'jscs' ] );
  23. };
  24. var lintIgnores = [
  25. 'node_modules/**',
  26. 'build/**'
  27. ];