8
0

gruntfile.js 405 B

12345678910111213141516171819202122232425262728
  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. } );
  16. grunt.loadTasks( 'dev/tasks' );
  17. grunt.registerTask( 'default', [ 'jshint', 'jscs' ] );
  18. };
  19. var lintIgnores = [
  20. 'node_modules/**',
  21. 'build/**'
  22. ];