bender.js 934 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* jshint browser: false, node: true */
  2. 'use strict';
  3. // Set it to true to test with the build version.
  4. var isBuild = false;
  5. var config = {
  6. plugins: [
  7. 'benderjs-chai',
  8. 'benderjs-coverage',
  9. 'benderjs-mocha',
  10. 'benderjs-promise',
  11. 'benderjs-sinon',
  12. 'dev/bender/plugins/ckeditor5'
  13. ],
  14. framework: 'mocha',
  15. applications: {
  16. 'ckeditor': {
  17. path: '.',
  18. files: [
  19. 'node_modules/requirejs/require.js',
  20. 'ckeditor.js'
  21. ]
  22. }
  23. },
  24. tests: {
  25. all: {
  26. applications: [ 'ckeditor' ],
  27. paths: [
  28. 'tests/**',
  29. 'node_modules/ckeditor5-*/tests/**'
  30. ]
  31. }
  32. },
  33. coverage: {
  34. paths: [
  35. 'ckeditor.js',
  36. 'src/**/*.js',
  37. 'node_modules/ckeditor5-*/src/**/*.js',
  38. '!node_modules/ckeditor5-*/src/lib/**'
  39. ]
  40. }
  41. };
  42. if ( isBuild ) {
  43. // Change the 'ckeditor' application to point to the build.
  44. config.applications.ckeditor = {
  45. path: 'build',
  46. files: [
  47. 'ckeditor.js'
  48. ]
  49. };
  50. }
  51. module.exports = config;