gruntfile.js 449 B

1234567891011121314151617181920212223242526272829303132
  1. /* global module */
  2. 'use strict';
  3. module.exports = function( grunt ) {
  4. grunt.initConfig( {
  5. pkg: grunt.file.readJSON( 'package.json' ),
  6. jshint: {
  7. options: {
  8. 'ignores': lintIgnores,
  9. 'predef': [
  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. ];