Ver Fonte

Merge branch 'ckeditor5/t/389'

Piotrek Koszuliński há 9 anos atrás
pai
commit
6e68c26da1

+ 3 - 7
packages/ckeditor5-autoformat/.travis.yml

@@ -15,11 +15,7 @@ before_install:
   - export DISPLAY=:99.0
   - sh -e /etc/init.d/xvfb start
 install:
-  - npm install
-  - npm install @ckeditor/ckeditor5-dev-tests
-  - npm install codeclimate-test-reporter
+  - npm install gulp mgit2 lerna @ckeditor/ckeditor5-dev-tests @ckeditor/ckeditor5-dev-lint
+  - ckeditor5-dev-tests-install-dependencies
 script:
-  - node_modules/.bin/ckeditor5-dev-tests-travis
-after_success:
-  - node_modules/.bin/codeclimate-test-reporter < build/.automated-tests/coverage/lcov.info
-
+  - ckeditor5-dev-tests-travis

+ 12 - 12
packages/ckeditor5-autoformat/package.json

@@ -1,23 +1,23 @@
 {
-  "name": "ckeditor5-autoformat",
+  "name": "@ckeditor/ckeditor5-autoformat",
   "version": "0.3.0",
   "description": "Replaces predefined characters with corresponding structures.",
   "keywords": [],
   "dependencies": {
-    "ckeditor5-basic-styles": "ckeditor/ckeditor5-basic-styles",
-    "ckeditor5-core": "ckeditor/ckeditor5-core",
-    "ckeditor5-engine": "ckeditor/ckeditor5-engine",
-    "ckeditor5-heading": "ckeditor/ckeditor5-heading",
-    "ckeditor5-list": "ckeditor/ckeditor5-list"
+    "@ckeditor/ckeditor5-basic-styles": "*",
+    "@ckeditor/ckeditor5-core": "*",
+    "@ckeditor/ckeditor5-engine": "*",
+    "@ckeditor/ckeditor5-heading": "*",
+    "@ckeditor/ckeditor5-list": "*"
   },
   "devDependencies": {
     "@ckeditor/ckeditor5-dev-lint": "^2.0.0",
-    "ckeditor5-editor-classic": "ckeditor/ckeditor5-editor-classic",
-    "ckeditor5-enter": "ckeditor/ckeditor5-enter",
-    "ckeditor5-list": "ckeditor/ckeditor5-list",
-    "ckeditor5-paragraph": "ckeditor/ckeditor5-paragraph",
-    "ckeditor5-typing": "ckeditor/ckeditor5-typing",
-    "ckeditor5-undo": "ckeditor/ckeditor5-undo",
+    "@ckeditor/ckeditor5-editor-classic": "*",
+    "@ckeditor/ckeditor5-enter": "*",
+    "@ckeditor/ckeditor5-list": "*",
+    "@ckeditor/ckeditor5-paragraph": "*",
+    "@ckeditor/ckeditor5-typing": "*",
+    "@ckeditor/ckeditor5-undo": "*",
     "gulp": "^3.9.0",
     "guppy-pre-commit": "^0.4.0"
   },

+ 5 - 5
packages/ckeditor5-autoformat/src/autoformat.js

@@ -9,11 +9,11 @@
 
 import BlockAutoformatEngine from './blockautoformatengine';
 import InlineAutoformatEngine from './inlineautoformatengine';
-import Plugin from 'ckeditor5-core/src/plugin';
-import HeadingEngine from 'ckeditor5-heading/src/headingengine';
-import ListEngine from 'ckeditor5-list/src/listengine';
-import BoldEngine from 'ckeditor5-basic-styles/src/boldengine';
-import ItalicEngine from 'ckeditor5-basic-styles/src/italicengine';
+import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
+import HeadingEngine from '@ckeditor/ckeditor5-heading/src/headingengine';
+import ListEngine from '@ckeditor/ckeditor5-list/src/listengine';
+import BoldEngine from '@ckeditor/ckeditor5-basic-styles/src/boldengine';
+import ItalicEngine from '@ckeditor/ckeditor5-basic-styles/src/italicengine';
 
 /**
  * Includes a set of predefined autoformatting actions.

+ 2 - 2
packages/ckeditor5-autoformat/src/blockautoformatengine.js

@@ -7,8 +7,8 @@
  * @module autoformat/blockautoformatengine
  */
 
-import Range from 'ckeditor5-engine/src/model/range';
-import TextProxy from 'ckeditor5-engine/src/model/textproxy';
+import Range from '@ckeditor/ckeditor5-engine/src/model/range';
+import TextProxy from '@ckeditor/ckeditor5-engine/src/model/textproxy';
 
 /**
  * The block autoformatting engine. Allows to format various block patterns. For example,

+ 2 - 2
packages/ckeditor5-autoformat/src/inlineautoformatengine.js

@@ -7,8 +7,8 @@
  * @module autoformat/inlineautoformatengine
  */
 
-import LiveRange from 'ckeditor5-engine/src/model/liverange';
-import getSchemaValidRanges from 'ckeditor5-core/src/command/helpers/getschemavalidranges';
+import LiveRange from '@ckeditor/ckeditor5-engine/src/model/liverange';
+import getSchemaValidRanges from '@ckeditor/ckeditor5-core/src/command/helpers/getschemavalidranges';
 
 /**
  * The inline autoformatting engine. Allows to format various inline patterns. For example,

+ 6 - 6
packages/ckeditor5-autoformat/tests/autoformat.js

@@ -3,12 +3,12 @@
  * For licensing, see LICENSE.md.
  */
 
-import Autoformat from 'ckeditor5-autoformat/src/autoformat';
-import Paragraph from 'ckeditor5-paragraph/src/paragraph';
-import VirtualTestEditor from 'ckeditor5-core/tests/_utils/virtualtesteditor';
-import Enter from 'ckeditor5-enter/src/enter';
-import { setData, getData } from 'ckeditor5-engine/src/dev-utils/model';
-import testUtils from 'ckeditor5-core/tests/_utils/utils';
+import Autoformat from '../src/autoformat';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
+import Enter from '@ckeditor/ckeditor5-enter/src/enter';
+import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
 testUtils.createSinonSandbox();
 

+ 7 - 7
packages/ckeditor5-autoformat/tests/blockautoformatengine.js

@@ -3,13 +3,13 @@
  * For licensing, see LICENSE.md.
  */
 
-import BlockAutoformatEngine from 'ckeditor5-autoformat/src/blockautoformatengine';
-import Paragraph from 'ckeditor5-paragraph/src/paragraph';
-import VirtualTestEditor from 'ckeditor5-core/tests/_utils/virtualtesteditor';
-import Enter from 'ckeditor5-enter/src/enter';
-import { setData, getData } from 'ckeditor5-engine/src/dev-utils/model';
-import testUtils from 'ckeditor5-core/tests/_utils/utils';
-import Command from 'ckeditor5-core/src/command/command';
+import BlockAutoformatEngine from '../src/blockautoformatengine';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
+import Enter from '@ckeditor/ckeditor5-enter/src/enter';
+import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
+import Command from '@ckeditor/ckeditor5-core/src/command/command';
 
 testUtils.createSinonSandbox();
 

+ 6 - 6
packages/ckeditor5-autoformat/tests/inlineautoformatengine.js

@@ -3,12 +3,12 @@
  * For licensing, see LICENSE.md.
  */
 
-import InlineAutoformatEngine from 'ckeditor5-autoformat/src/inlineautoformatengine';
-import Paragraph from 'ckeditor5-paragraph/src/paragraph';
-import VirtualTestEditor from 'ckeditor5-core/tests/_utils/virtualtesteditor';
-import Enter from 'ckeditor5-enter/src/enter';
-import { setData, getData } from 'ckeditor5-engine/src/dev-utils/model';
-import testUtils from 'ckeditor5-core/tests/_utils/utils';
+import InlineAutoformatEngine from '../src/inlineautoformatengine';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
+import Enter from '@ckeditor/ckeditor5-enter/src/enter';
+import { setData, getData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
+import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
 testUtils.createSinonSandbox();
 

+ 10 - 10
packages/ckeditor5-autoformat/tests/manual/autoformat.js

@@ -5,16 +5,16 @@
 
 /* globals console, window, document */
 
-import ClassicEditor from 'ckeditor5-editor-classic/src/classic';
-import Autoformat from 'ckeditor5-autoformat/src/autoformat';
-import Enter from 'ckeditor5-enter/src/enter';
-import List from 'ckeditor5-list/src/list';
-import Typing from 'ckeditor5-typing/src/typing';
-import Heading from 'ckeditor5-heading/src/heading';
-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 ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classic';
+import Autoformat from '../../src/autoformat';
+import Enter from '@ckeditor/ckeditor5-enter/src/enter';
+import List from '@ckeditor/ckeditor5-list/src/list';
+import Typing from '@ckeditor/ckeditor5-typing/src/typing';
+import Heading from '@ckeditor/ckeditor5-heading/src/heading';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
+import Undo from '@ckeditor/ckeditor5-undo/src/undo';
+import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
+import Italic from '@ckeditor/ckeditor5-basic-styles/src/italic';
 
 ClassicEditor.create( document.querySelector( '#editor' ), {
 	plugins: [ Enter, Typing, Paragraph, Undo, Bold, Italic, Heading, List, Autoformat ],