8
0

gruntfile.js 1001 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. lodash: {
  14. build: {
  15. dest: 'src/lib/lodash/lodash-ckeditor.js',
  16. options: {
  17. modifier: 'modern',
  18. exports: 'amd',
  19. flags: [
  20. 'debug'
  21. ],
  22. include: require( './src/utils-lodash' )
  23. }
  24. }
  25. },
  26. jshint: {
  27. options: {
  28. globals: {
  29. 'CKEDITOR': false,
  30. 'bender': false
  31. },
  32. ignores: ignoreFiles
  33. }
  34. },
  35. jscs: {
  36. options: {
  37. excludeFiles: ignoreFiles
  38. }
  39. }
  40. } );
  41. // Finally load the tasks.
  42. grunt.loadTasks( 'dev/tasks' );
  43. };