Przeglądaj źródła

Removed all unnecessary files.

Piotrek Koszuliński 9 lat temu
rodzic
commit
4325595209

+ 0 - 37
build-config.js

@@ -1,37 +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';
-
-module.exports = {
-	// Specify path where bundled editor will be saved.
-	destinationPath: './build/dist/',
-
-	editor: 'editor-classic/classic',
-	plugins: [
-		'autoformat',
-		'basic-styles/bold',
-		'basic-styles/italic',
-		'clipboard',
-		'enter',
-		'heading',
-		'image',
-		'link',
-		'list',
-		'paragraph',
-		'typing',
-		'undo'
-	],
-
-	rollupOptions: {
-		// Name of CKEditor instance exposed as global variable by a bundle.
-		moduleName: 'ClassicEditor',
-
-		// The format of the generated bundle.
-		format: 'iife',
-	}
-};

+ 0 - 8
build/README.md

@@ -1,8 +0,0 @@
-CKEditor 5 – Build Directory
-============================
-
-This directory contains files created during build process of CKEditor 5:
-
- - `dist` - bundled version of CKEditor 5, created by executing `gulp bundle` task. See more: [Bundling](https://github.com/ckeditor/ckeditor5/wiki/Development-Workflow#bundling).
- - `modules` - versions of CKEditor transpiled to specified module format: AMD, CommonJS and ES6 modules. See more: [Compiling CKEditor](https://github.com/ckeditor/ckeditor5/wiki/Development-Environment#compiling-ckeditor).
- - `docs` - JavaScript documentation created form source code by `gulp docs` task.

+ 0 - 32
build/test-library.html

@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta charset="utf-8">
-	<title>CKEditor library splitting</title>
-</head>
-<body>
-
-<div id="editor">
-	<p><em>This</em> is an <strong>editor</strong> instance.</p>
-</div>
-
-<script src="./dist/ClassicEditor.ckeditor.js"></script>
-<script src="./dist/CKEditorPresetBasic.ckeditor.js"></script>
-<script src="./dist/CKEditorList.ckeditor.js"></script>
-<script src="./dist/CKEditorLink.ckeditor.js"></script>
-<script src="./dist/CKEditorHeading.ckeditor.js"></script>
-<script>
-	'use strict';
-
-	ClassicEditor.default.create( document.querySelector( '#editor' ), {
-		plugins: [ CKEditorPresetBasic.default, CKEditorList.default, CKEditorLink.default, CKEditorHeading.default, ],
-		toolbar: [ 'undo', 'redo', 'headings', 'bulletedList', 'numberedList', 'link', 'bold', 'italic' ]
-	} ).then( editor => {
-		window.editor = editor;
-	} ).catch( err => {
-		console.error( err.stack );
-	} );
-</script>
-
-</body>
-</html>

+ 0 - 16
build/test.html

@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-	<meta charset="utf-8">
-	<title>CKEditor simple test</title>
-</head>
-<body>
-
-<div id="editor">
-	<p><em>This</em> is an <strong>editor</strong> instance.</p>
-</div>
-<script src="./dist/ckeditor.js"></script>
-
-</body>
-</html>
-

+ 0 - 21
ckeditor-preset-basic.js

@@ -1,21 +0,0 @@
-/**
- * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-/* jshint browser: true */
-
-import Plugin from 'ckeditor5-core/src/plugin';
-import Enter from 'ckeditor5-enter/src/enter';
-import Typing from 'ckeditor5-typing/src/typing';
-import Paragraph from 'ckeditor5-paragraph/src/paragraph';
-import Clipboard from 'ckeditor5-clipboard/src/clipboard';
-import Undo from 'ckeditor5-undo/src/undo';
-import Bold from 'ckeditor5-basic-styles/src/bold';
-import Italic from 'ckeditor5-basic-styles/src/italic';
-
-export default class PresetBasic extends Plugin {
-	static get requires() {
-		return [ Enter, Typing, Paragraph, Clipboard, Undo, Bold, Italic ];
-	}
-}

+ 0 - 27
ckeditor-rollup-plugin.js

@@ -1,27 +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 resolveImportPathInContext = require( './compiler-utils/resolveimportpathincontext' );
-const path = require( 'path' );
-
-function ckeditorRollupPlugin( options ) {
-	return {
-		resolveId( importPath, requesterPath ) {
-			if ( options.useMainPackageModules ) {
-				const resolvedPath = resolveImportPathInContext( requesterPath, importPath, options.mainPackagePath );
-
-				if ( resolvedPath ) {
-					return path.join( resolvedPath.packagePath, resolvedPath.filePath );
-				}
-			}
-		}
-	};
-}
-
-module.exports = ckeditorRollupPlugin;

+ 0 - 51
rollup.config.js

@@ -1,51 +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 path = require( 'path' );
-const ckeditorRollupPlugin = require( './ckeditor-rollup-plugin' );
-const nodeResolve = require( 'rollup-plugin-node-resolve' );
-const stringRollupPlugin = require( 'rollup-plugin-string' );
-const sassRollupPlugin = require( 'rollup-plugin-sass' );
-
-export default {
-	entry: './webpack-entry-point.js',
-	format: 'iife',
-
-	dest: path.join( 'build', 'dist', 'ckeditor.js' ),
-
-	plugins: [
-		ckeditorRollupPlugin( {
-			useMainPackageModules: true,
-			mainPackagePath: process.cwd()
-		} ),
-		nodeResolve(),
-
-		// TODO is it possible to include that in the CKEditor plugin?
-		stringRollupPlugin( {
-			include: '**/ckeditor5-*/theme/icons/*.svg'
-		} ),
-
-		sassRollupPlugin( {
-			insert: true,
-			include: '**/*.scss',
-			exclude: [],
-			options: {
-				importer( url /*, prev */ ) {
-					if ( url.startsWith( '~' ) ) {
-						const path = process.cwd() + '/node_modules/' + url.slice( 1 );
-
-						return {
-							file: path
-						};
-					}
-				}
-			}
-		} )
-	]
-};

+ 0 - 40
webpack-chunks.config.js

@@ -1,40 +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 */
-
-const path = require( 'path' );
-const CKEditorWebpackPlugin = require( './ckeditor-webpack-plugin' );
-const webpack = require( 'webpack' );
-
-module.exports = {
-	context: __dirname,
-	target: 'web',
-
-	entry: {
-		core: './webpack-entry-point',
-		pluginList: 'ckeditor5-list/src/list',
-		pluginLink: 'ckeditor5-link/src/link',
-	},
-
-	output: {
-		path: path.join( 'build', 'dist' ),
-		filename: '[name].ckeditor.js',
-	},
-
-	devtool: 'cheap-source-map',
-
-	plugins: [
-		new CKEditorWebpackPlugin( {
-			useMainPackageModules: true,
-			mainPackagePath: process.cwd()
-		} ),
-		new webpack.optimize.CommonsChunkPlugin( {
-			names: [ 'core' ],
-			// children: true
-			// minChunks: Infinity
-		} )
-	],
-};

+ 0 - 23
webpack-entry-point.js

@@ -1,23 +0,0 @@
-/* jshint browser: true, node: false, strict: implied */
-/* global console */
-
-import ClassicEditor from 'ckeditor5-editor-classic/src/classic';
-import Enter from 'ckeditor5-enter/src/enter';
-import Typing from 'ckeditor5-typing/src/typing';
-import Paragraph from 'ckeditor5-paragraph/src/paragraph';
-import Undo from 'ckeditor5-undo/src/undo';
-import Bold from 'ckeditor5-basic-styles/src/bold';
-import Italic from 'ckeditor5-basic-styles/src/italic';
-import List from 'ckeditor5-list/src/list';
-import Link from 'ckeditor5-link/src/link';
-import Autoformat from 'ckeditor5-autoformat/src/autoformat';
-import Heading from 'ckeditor5-heading/src/heading';
-
-ClassicEditor.create( document.querySelector( '#editor' ), {
-	plugins: [ Enter, Typing, Paragraph, Undo, Bold, Italic, List, Link, Autoformat, Heading ],
-	toolbar: [ 'headings', 'bold', 'italic', 'undo', 'redo', 'numberedList', 'bulletedList', 'link', 'unlink' ]
-} ).then( editor => {
-	window.editor = editor;
-} ).catch( err => {
-	console.error( err.stack );
-} );

+ 0 - 5
webpack-library-entry-point.js

@@ -1,5 +0,0 @@
-/* jshint browser: true */
-
-import ClassicEditor from 'ckeditor5-editor-classic/src/classic';
-
-export default ClassicEditor;

+ 0 - 43
webpack-library.config.js

@@ -1,43 +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 */
-
-const path = require( 'path' );
-const CKEditorWebpackPlugin = require( './ckeditor-webpack-plugin' );
-const webpack = require( 'webpack' );
-
-module.exports = {
-	context: __dirname,
-	target: 'web',
-
-	entry: {
-		ClassicEditor: 'ckeditor5-editor-classic/src/classic',
-		CKEditorPresetBasic: './ckeditor-preset-basic',
-		CKEditorList: 'ckeditor5-list/src/list',
-		CKEditorLink: 'ckeditor5-link/src/link',
-		CKEditorHeading: 'ckeditor5-heading/src/heading',
-	},
-
-	output: {
-		path: path.join( 'build', 'dist' ),
-		filename: '[name].ckeditor.js',
-		library: '[name]',
-	},
-
-	devtool: 'cheap-source-map',
-
-	plugins: [
-		new CKEditorWebpackPlugin( {
-			useMainPackageModules: true,
-			mainPackagePath: process.cwd()
-		} ),
-		new webpack.optimize.CommonsChunkPlugin( {
-			name: 'ClassicEditor',
-			// children: true,
-			minChunks: 2
-		} )
-	],
-};

+ 0 - 54
webpack.config.js

@@ -1,54 +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 */
-
-const path = require( 'path' );
-const CKEditorWebpackPlugin = require( './node_modules/@ckeditor/ckeditor5-dev-tests/ckeditor-webpack-plugin' );
-
-module.exports = {
-	context: __dirname,
-	target: 'web',
-
-	entry: './webpack-entry-point',
-
-	output: {
-		path: path.join( 'build', 'dist' ),
-		filename: 'ckeditor.js',
-	},
-
-	// TODO is it possible to include that in the CKEditor plugin?
-	module: {
-		rules: [
-			{
-				// test: **/ckeditor5-*/theme/icons/*.svg
-				test: /ckeditor5-[^/]+\/theme\/icons\/[^/]+\.svg$/,
-				use: [ 'raw-loader' ]
-			},
-			{
-				// test: **/ckeditor5-*/theme/**/*.scss
-				test: /\.scss$/,
-				use: [ 'style-loader', 'css-loader', 'sass-loader' ]
-			}
-		]
-	},
-
-	// resolve: {
-	// 	modules: [
-	// 		path.resolve( __dirname, 'node_modules' ),
-	// 		'node_modules'
-	// 	]
-	// },
-
-	devtool: 'cheap-source-map',
-
-	plugins: [
-		new CKEditorWebpackPlugin( {
-			packages: {
-				'*': path.join( process.cwd(), 'node_modules' )
-			}
-		} )
-	],
-};