Ver código fonte

Various improvements.

Piotrek Koszuliński 8 anos atrás
pai
commit
a71f36861c

+ 18 - 0
packages/ckeditor5-build-classic/.gitattributes

@@ -0,0 +1,18 @@
+*			text=auto
+
+*.htaccess	eol=lf
+*.cgi		eol=lf
+*.sh		eol=lf
+
+*.css		text
+*.htm		text
+*.html		text
+*.js		text
+*.json		text
+*.php		text
+*.txt		text
+*.md		text
+
+*.png		-text
+*.gif		-text
+*.jpg		-text

+ 1 - 0
packages/ckeditor5-build-classic/.gitignore

@@ -0,0 +1 @@
+node_modules/**

+ 4 - 0
packages/ckeditor5-build-classic/CONTRIBUTING.md

@@ -0,0 +1,4 @@
+Contributing
+========================================
+
+Information about contributing can be found on the following page: <https://github.com/ckeditor/ckeditor5/blob/master/CONTRIBUTING.md>.

+ 23 - 0
packages/ckeditor5-build-classic/LICENSE.md

@@ -0,0 +1,23 @@
+Software License Agreement
+==========================
+
+**CKEditor 5 classic build** – https://github.com/ckeditor/ckeditor5-build-classic <br>
+Copyright (c) 2003-2017, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
+
+Licensed under the terms of any of the following licenses at your choice:
+
+* [GNU General Public License Version 2 or later (the "GPL")](http://www.gnu.org/licenses/gpl.html)
+* [GNU Lesser General Public License Version 2.1 or later (the "LGPL")](http://www.gnu.org/licenses/lgpl.html)
+* [Mozilla Public License Version 1.1 or later (the "MPL")](http://www.mozilla.org/MPL/MPL-1.1.html)
+
+You are not required to, but if you want to explicitly declare the license you have chosen to be bound to when using, reproducing, modifying and distributing this software, just include a text file titled "legal.txt" in your version of this software, indicating your license choice. In any case, your choice will not restrict any recipient of your version of this software to use, reproduce, modify and distribute this software under any of the above licenses.
+
+Sources of Intellectual Property Included in CKEditor
+-----------------------------------------------------
+
+Where not otherwise indicated, all CKEditor content is authored by CKSource engineers and consists of CKSource-owned intellectual property. In some specific instances, CKEditor will incorporate work done by developers outside of CKSource with their express permission.
+
+Trademarks
+----------
+
+**CKEditor** is a trademark of [CKSource](http://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.

+ 12 - 0
packages/ckeditor5-build-classic/README.md

@@ -0,0 +1,12 @@
+CKEditor 5 classic build
+========================================
+
+[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-build-classic.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-build-classic)
+[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-build-classic/status.svg)](https://david-dm.org/ckeditor/ckeditor5-build-classic)
+[![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-build-classic/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-build-classic?type=dev)
+
+Classic build of CKEditor 5. More information about the project can be found at the following URL: <https://github.com/ckeditor/ckeditor5-build-classic>.
+
+## License
+
+Licensed under the GPL, LGPL and MPL licenses, at your choice. For full details about the license, please check the `LICENSE.md` file.

+ 1 - 1
packages/ckeditor5-build-classic/bin/build.js

@@ -15,7 +15,7 @@ const buildConfig = require( '../config-build' );
 const log = logger();
 const entryPoint = 'ckeditor.js';
 
-log.info( 'Creating an entry file...' );
+log.info( 'Creating the entry file...' );
 
 bundler.createEntryFile( entryPoint, './config-editor', {
 	plugins: buildConfig.plugins,

+ 1 - 1
packages/ckeditor5-build-classic/ckeditor.js

@@ -38,7 +38,7 @@ ClassicEditor.build = {
 		ListPlugin,
 		ParagraphPlugin,
 		TypingPlugin,
-		UndoPlugin 
+		UndoPlugin
 	],
 	config: require( './config-editor' )
 };

+ 20 - 5
packages/ckeditor5-build-classic/package.json

@@ -1,11 +1,10 @@
 {
   "name": "@ckeditor/ckeditor5-build-classic",
   "version": "0.0.1",
+  "description": "CKEditor 5 classic build.",
+  "keywords": [],
   "main": "./build/ckeditor.es6.js",
-  "dependencies": {},
-  "devDependencies": {
-    "@ckeditor/ckeditor5-dev-utils": "^2.4.2",
-    "@ckeditor/ckeditor5-dev-webpack-utils": "^1.0.0",
+  "dependencies": {
     "@ckeditor/ckeditor5-editor-classic": "*",
     "@ckeditor/ckeditor5-autoformat": "*",
     "@ckeditor/ckeditor5-basic-styles": "*",
@@ -17,9 +16,25 @@
     "@ckeditor/ckeditor5-list": "*",
     "@ckeditor/ckeditor5-paragraph": "*",
     "@ckeditor/ckeditor5-typing": "*",
-    "@ckeditor/ckeditor5-undo": "*",
+    "@ckeditor/ckeditor5-undo": "*"
+  },
+  "devDependencies": {
+    "@ckeditor/ckeditor5-dev-utils": "^2.4.2",
+    "@ckeditor/ckeditor5-dev-webpack-utils": "^1.0.0",
     "webpack": "^2.2.1"
   },
+  "engines": {
+    "node": ">=6.0.0",
+    "npm": ">=3.0.0"
+  },
+  "author": "CKSource (http://cksource.com/)",
+  "license": "(GPL-2.0 OR LGPL-2.1 OR MPL-1.1)",
+  "homepage": "https://ckeditor5.github.io",
+  "bugs": "https://github.com/ckeditor/ckeditor5-build-classic/issues",
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/ckeditor/ckeditor5-build-classic.git"
+  },
   "scripts": {
     "build": "node ./bin/build.js"
   }

+ 17 - 12
packages/ckeditor5-build-classic/sample/index.html

@@ -2,15 +2,18 @@
 <html lang="en">
 <head>
 	<meta charset="utf-8">
-	<title>CKEditor 5 - Build Classic Sample</title>
+	<title>CKEditor 5 – classic build sample</title>
 	<style>
 		body {
 			max-width: 800px;
-			margin: 0 auto;
+			margin: 20px auto;
 		}
 	</style>
 </head>
 <body>
+
+<h1>CKEditor 5 – classic build sample</h1>
+
 <div id="editor">
 	<h2>About CKEditor&nbsp;5</h2>
 
@@ -18,14 +21,14 @@
 	</p>
 
 	<figure class="image">
-		<img src="../tests/manual/sample.jpg" alt="Autumn fields"/>
+		<img src="../tests/manual/sample.jpg" alt="Autumn fields" />
 	</figure>
 
 	<p>After more than 2 years of building the next generation editor from
 		scratch and closing over 980 tickets, we created a highly <strong>extensible
-			and flexible architecture</strong> which consists of an <strong>amazing
-			editing framework</strong> and <strong>editing
-			solutions</strong> that will be built on top of it.</p>
+		and flexible architecture</strong> which consists of an <strong>amazing
+		editing framework</strong> and <strong>editing
+		solutions</strong> that will be built on top of it.</p>
 
 	<h3>Notes</h3>
 
@@ -50,15 +53,17 @@
 		will be working on in the next few iterations of the project. Stay
 		tuned for some updates soon!</p>
 </div>
+
 <script src="../build/ckeditor.js"></script>
 <script>
 	ClassicEditor.create( document.querySelector( '#editor' ) )
-		.then( editor => {
-			window.editor = editor;
-		} )
-		.catch( err => {
-			console.error( err.stack );
-		} );
+	.then( editor => {
+		window.editor = editor;
+	} )
+	.catch( err => {
+		console.error( err.stack );
+	} );
 </script>
+
 </body>
 </html>