浏览代码

Removed Bender completely.

Piotrek Koszuliński 9 年之前
父节点
当前提交
4b9d79717b

+ 0 - 55
bender.js

@@ -1,55 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-/* jshint browser: false, node: true, strict: true */
-
-'use strict';
-
-const config = {
-	plugins: [
-		'benderjs-chai',
-		'benderjs-coverage',
-		'benderjs-mocha',
-		'benderjs-promise',
-		'benderjs-sinon',
-		'dev/bender/plugins/ckeditor5'
-	],
-
-	framework: 'mocha',
-
-	applications: {
-		ckeditor: {
-			path: '.',
-			files: [
-				'node_modules/requirejs/require.js'
-			],
-			basePath: '/apps/ckeditor/build/modules/amd/'
-		}
-	},
-
-	tests: {
-		all: {
-			applications: [ 'ckeditor' ],
-			paths: [
-				'build/modules/amd/tests/**',
-				'!build/modules/amd/tests/**/@(_utils|_assets)/**'
-			]
-		}
-	},
-
-	coverage: {
-		paths: [
-			'build/modules/amd/ckeditor.js',
-			'build/modules/amd/ckeditor5/**/*.js',
-			'build/modules/amd/tests/**/_*/*.js',
-			'!build/modules/amd/ckeditor5/*/lib/**'
-		]
-	},
-
-	// Due to https://github.com/ckeditor/ckeditor5/issues/190.
-	testTimeout: 5 * 1000 // 5s
-};
-
-module.exports = config;

+ 0 - 43
dev/bender/plugins/ckeditor5/lib/index.js

@@ -1,43 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-'use strict';
-
-const path = require( 'path' );
-const files = [
-	path.join( __dirname, '../static/extensions.js' )
-];
-
-module.exports = {
-	name: 'bender-ckeditor5',
-
-	attach() {
-		this.plugins.addFiles( files );
-
-		this.on( 'test:created', ( test ) => {
-			const moduleRegExp = /^([^\/]+)\//;
-			let name = test.displayName.replace( /^build\/modules\/amd\/tests\//, '' );
-			let module = name.match( moduleRegExp );
-
-			if ( module ) {
-				test.tags.unshift( 'module!' + module[ 1 ] );
-				test.displayName = name.replace( moduleRegExp, '$1: ' );
-			} else {
-				test.tags.unshift( 'module!ckeditor5' );
-				test.displayName = 'ckeditor5: ' + name.replace( /^ckeditor5\//, '' );
-			}
-		} );
-
-		this.pagebuilders.add( 'ckeditor5', build );
-
-		function build( data ) {
-			files.forEach( ( file ) => {
-				data.addJS( path.join( '/plugins/', file ).split( path.sep ).join( '/' ) );
-			} );
-
-			return data;
-		}
-	}
-};

+ 0 - 5
dev/bender/plugins/ckeditor5/package.json

@@ -1,5 +0,0 @@
-{
-  "name": "benderjs-ckeditor5",
-  "description": "CKEditor 5 plugin for Bender.js",
-  "main": "lib/index.js"
-}

+ 0 - 51
dev/bender/plugins/ckeditor5/static/extensions.js

@@ -1,51 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-/* jshint node: false, browser: true, globalstrict: true, varstmt: false */
-/* globals bender, requirejs */
-
-'use strict';
-
-( function() {
-	// This seems to be the only way to force Require.JS to load modules starting with '/' from a different path.
-	var load = requirejs.load;
-	requirejs.load = function( context, moduleId, url ) {
-		var basePath = bender.getCKEditorModuleBasePath().replace( /\/$/, '' );
-
-		if ( moduleId[ 0 ] == '/' ) {
-			url = basePath + url;
-		} else if ( moduleId.startsWith( 'ckeditor5' ) || moduleId.startsWith( 'tests' ) || moduleId.startsWith( 'theme' ) ) {
-			url = basePath + '/' + url;
-		}
-
-		return load( context, moduleId, url );
-	};
-
-	// Reported: https://github.com/benderjs/benderjs/issues/248
-	// Ugh... make some paths cleanup, because we need to combine these fragments and we don't want to
-	// duplicate '/'. BTW. if you want to touch this make sure you haven't broken Bender jobs which
-	// have different bender.basePaths (no trailing '/', unnecessary 'tests/' fragment).
-	bender.getCKEditorModuleBasePath = function() {
-		var appBasePath = bender.basePath;
-		var ckeditorBasePath = bender.config.applications.ckeditor.basePath;
-		var modulebasePath;
-
-		modulebasePath = appBasePath
-			.split( '/' )
-			.filter( nonEmpty )
-			// When running a job we need to drop the last parth of the base path, which is "tests".
-			.slice( 0, -1 )
-			.concat(
-				ckeditorBasePath.split( '/' ).filter( nonEmpty )
-			)
-			.join( '/' );
-
-		return '/' + modulebasePath;
-	};
-
-	function nonEmpty( str ) {
-		return !!str.length;
-	}
-} )();

+ 1 - 9
package.json

@@ -26,8 +26,7 @@
     "ckeditor5-ui": "ckeditor/ckeditor5-ui",
     "ckeditor5-ui-default": "ckeditor/ckeditor5-ui-default",
     "ckeditor5-undo": "ckeditor/ckeditor5-undo",
-    "ckeditor5-utils": "ckeditor/ckeditor5-utils",
-    "requirejs": "Reinmar/requirejs"
+    "ckeditor5-utils": "ckeditor/ckeditor5-utils"
   },
   "devDependencies": {
     "@ckeditor/ckeditor5-dev-bundler-rollup": "^4.0.0",
@@ -36,13 +35,6 @@
     "@ckeditor/ckeditor5-dev-env": "^1.0.0",
     "@ckeditor/ckeditor5-dev-lint": "^1.0.1",
     "@ckeditor/ckeditor5-dev-tests": "^3.0.1",
-    "babel-polyfill": "^6.13.0",
-    "benderjs": "^0.4.1",
-    "benderjs-chai": "^0.2.0",
-    "benderjs-coverage": "benderjs/benderjs-coverage#t/4",
-    "benderjs-mocha": "^0.3.0",
-    "benderjs-promise": "^0.1.0",
-    "benderjs-sinon": "^0.3.0",
     "gulp": "^3.9.0",
     "guppy-pre-commit": "^0.4.0",
     "run-sequence": "^1.1.5"