gruntfile.js 714 B

12345678910111213141516171819202122232425262728293031323334
  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. 'lib/**'
  10. ];
  11. // Basic configuration which will be overloaded by the tasks.
  12. grunt.initConfig( {
  13. pkg: grunt.file.readJSON( 'package.json' ),
  14. jshint: {
  15. options: {
  16. ignores: ignoreFiles
  17. }
  18. },
  19. jscs: {
  20. options: {
  21. excludeFiles: ignoreFiles
  22. }
  23. }
  24. } );
  25. // Finally load the tasks.
  26. grunt.loadTasks( 'dev/tasks' );
  27. };