gruntfile.js 748 B

123456789101112131415161718192021222324252627282930313233343536
  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. globals: {
  16. 'CKEDITOR': false
  17. },
  18. ignores: ignoreFiles
  19. }
  20. },
  21. jscs: {
  22. options: {
  23. excludeFiles: ignoreFiles
  24. }
  25. }
  26. } );
  27. // Finally load the tasks.
  28. grunt.loadTasks( 'dev/tasks' );
  29. };