gruntfile.js 442 B

12345678910111213141516171819202122232425262728293031
  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. 'predef': [
  9. 'module'
  10. ]
  11. }
  12. },
  13. jscs: {
  14. options: {
  15. 'excludeFiles': lintIgnores
  16. }
  17. }
  18. } );
  19. grunt.loadTasks( 'dev/tasks' );
  20. grunt.registerTask( 'default', [ 'jshint', 'jscs' ] );
  21. };
  22. var lintIgnores = [
  23. 'node_modules/**',
  24. 'build/**'
  25. ];