gruntfile.js 703 B

123456789101112131415161718192021222324252627282930313233
  1. /* jshint node: true */
  2. 'use strict';
  3. module.exports = function( grunt ) {
  4. // First register the "default" task, so it can be analyzed by other tasks.
  5. grunt.registerTask( 'default', [ 'jshint:git', 'jscs:git' ] );
  6. // Files that will be ignored by the "jscs" and "jshint" tasks.
  7. var ignoreFiles = [
  8. // Automatically loaded from .gitignore. Add more if necessary.
  9. ];
  10. // Basic configuration which will be overloaded by the tasks.
  11. grunt.initConfig( {
  12. pkg: grunt.file.readJSON( 'package.json' ),
  13. jshint: {
  14. options: {
  15. ignores: ignoreFiles
  16. }
  17. },
  18. jscs: {
  19. options: {
  20. excludeFiles: ignoreFiles
  21. }
  22. }
  23. } );
  24. // Finally load the tasks.
  25. grunt.loadTasks( 'dev/tasks' );
  26. };