gruntfile.js 430 B

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