|
@@ -2,6 +2,9 @@
|
|
|
|
|
|
|
|
'use strict';
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
+// Set it to true to test with the build version.
|
|
|
|
|
+var isBuild = false;
|
|
|
|
|
+
|
|
|
var config = {
|
|
var config = {
|
|
|
plugins: [
|
|
plugins: [
|
|
|
// Uncomment to enable code coverage.
|
|
// Uncomment to enable code coverage.
|
|
@@ -22,20 +25,11 @@ var config = {
|
|
|
'node_modules/requirejs/require.js',
|
|
'node_modules/requirejs/require.js',
|
|
|
'ckeditor.js'
|
|
'ckeditor.js'
|
|
|
]
|
|
]
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
- 'ckeditor-build': {
|
|
|
|
|
- path: 'build',
|
|
|
|
|
- files: [
|
|
|
|
|
- 'ckeditor.js'
|
|
|
|
|
- ]
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
tests: {
|
|
tests: {
|
|
|
all: {
|
|
all: {
|
|
|
- // Swap the following "applications" lines to test the build version.
|
|
|
|
|
- // applications: [ 'ckeditor-build' ],
|
|
|
|
|
applications: [ 'ckeditor' ],
|
|
applications: [ 'ckeditor' ],
|
|
|
paths: [
|
|
paths: [
|
|
|
'tests/**',
|
|
'tests/**',
|
|
@@ -54,4 +48,14 @@ var config = {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+if ( isBuild ) {
|
|
|
|
|
+ // Change the 'ckeditor' application to point to the build.
|
|
|
|
|
+ config.applications[ 'ckeditor' ] = {
|
|
|
|
|
+ path: 'build',
|
|
|
|
|
+ files: [
|
|
|
|
|
+ 'ckeditor.js'
|
|
|
|
|
+ ]
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
module.exports = config;
|
|
module.exports = config;
|