8
0

bender.js 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* jshint browser: false, node: true */
  2. 'use strict';
  3. // Set it to true to test with the build version.
  4. const isBuild = false;
  5. const 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. },
  34. coverage: {
  35. paths: [
  36. 'ckeditor.js',
  37. 'src/**/*.js',
  38. 'node_modules/ckeditor5-*/src/**/*.js',
  39. '!node_modules/ckeditor5-*/src/lib/**'
  40. ]
  41. }
  42. };
  43. if ( isBuild ) {
  44. // Change the 'ckeditor' application to point to the build.
  45. config.applications.ckeditor = {
  46. path: 'build',
  47. files: [
  48. 'ckeditor.js'
  49. ]
  50. };
  51. }
  52. module.exports = config;