bender.js 978 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. // Uncomment to enable code coverage.
  8. // 'benderjs-coverage',
  9. 'benderjs-mocha',
  10. 'benderjs-chai',
  11. 'benderjs-sinon',
  12. 'benderjs-promise',
  13. 'dev/bender/plugins/ckeditor5'
  14. ],
  15. framework: 'mocha',
  16. applications: {
  17. 'ckeditor': {
  18. path: '.',
  19. files: [
  20. 'node_modules/requirejs/require.js',
  21. 'ckeditor.js'
  22. ]
  23. }
  24. },
  25. tests: {
  26. all: {
  27. applications: [ 'ckeditor' ],
  28. paths: [
  29. 'tests/**',
  30. 'node_modules/ckeditor5-*/tests/**'
  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;