gruntfile.js 982 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /* jshint node: true, esnext: true, varstmt: true */
  2. 'use strict';
  3. module.exports = ( 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. const ignoreFiles = [
  8. 'src/lib/**',
  9. // Automatically loaded from .gitignore. Add more if necessary.
  10. ];
  11. // Basic configuration which will be overloaded by the tasks.
  12. grunt.initConfig( {
  13. pkg: grunt.file.readJSON( 'package.json' ),
  14. lodash: {
  15. build: {
  16. dest: 'src/lib/lodash/lodash-ckeditor.js',
  17. options: {
  18. modifier: 'modern',
  19. exports: 'amd',
  20. flags: [
  21. 'development'
  22. ],
  23. include: require( './src/utils-lodash' )
  24. }
  25. }
  26. },
  27. jshint: {
  28. options: {
  29. ignores: ignoreFiles
  30. }
  31. },
  32. jscs: {
  33. options: {
  34. excludeFiles: ignoreFiles
  35. }
  36. }
  37. } );
  38. // Finally load the tasks.
  39. grunt.loadTasks( 'dev/tasks' );
  40. };