Commit b1f462b2 authored by Christopher C. Wells's avatar Christopher C. Wells
Browse files

Issue #3243437 by wells: Move plugin to external library

parent e38a6d43
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -17,16 +17,17 @@ REQUIREMENTS
------------

* [CodeMirror v5](https://www.npmjs.com/package/codemirror/v/version5)
  (CodeMirror v6 is **not supported**.)
* [CKEditor 5 CodeMirror plugin](https://www.npmjs.com/package/@cdubz/ckeditor5-source-editing-codemirror)

CodeMirror v6 is **not supported**.
These requirements must be located in the `libraries` directory of the Drupal
installation:

The CodeMirror v5 library must be located in the `libraries` directory of the
Drupal installation.

This module also provides a `composer.libraries.json` file to be used with the
[Composer Merge Plugin](https://github.com/wikimedia/composer-merge-plugin) if
desired.
 * `/libraries/codemirror`
 * `/libraries/ckeditor5-source-editing-codemirror`

A `composer.libraries.json` file is provided for use with the
[Composer Merge Plugin](https://github.com/wikimedia/composer-merge-plugin).

CONFIGURATION
-------------
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ codemirror.search:

source_editing_code_mirror:
  js:
    js/ckeditor5_plugins/ckeditor5-source-editing-codemirror/build/source-editing-codemirror.js: { preprocess: false, minified: true }
    /libraries/ckeditor5-source-editing-codemirror/build/source-editing-codemirror.js: { preprocess: false, minified: true }
  dependencies:
    - core/ckeditor5
    - core/ckeditor5.sourceEditing
+19 −0
Original line number Diff line number Diff line
{
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "@cdubz/ckeditor5-source-editing-codemirror",
                "version": "v0.9.0",
                "type": "drupal-library",
                "extra": {
                    "installer-name": "ckeditor5-source-editing-codemirror"
                },
                "dist": {
                    "url": "https://registry.npmjs.org/@cdubz/ckeditor5-source-editing-codemirror/-/ckeditor5-source-editing-codemirror-0.9.0.tgz",
                    "type": "tar"
                },
                "require": {
                    "composer/installers": "~1.0"
                }
            }
        },
        {
            "type": "package",
            "package": {
@@ -20,6 +38,7 @@
        }
    ],
    "require": {
        "@cdubz/ckeditor5-source-editing-codemirror": "v0.9.0",
        "codemirror/codemirror": "v5.65.8"
    }
}
+0 −19
Original line number Diff line number Diff line
# Configurations to normalize the IDE behavior.
# http://editorconfig.org/

root = true

[*]
indent_style = tab
tab_width = 4
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.{js,jsx,ts}]
quote_type = single

[package.json]
indent_style = space
tab_width = 2
+0 −25
Original line number Diff line number Diff line
/* eslint-env node */

'use strict';

module.exports = {
	extends: 'ckeditor5',
	root: true,
	rules: {
		// This rule disallows importing core DLL packages directly. Imports should be done using the `ckeditor5` package.
		// Also, importing non-DLL packages is not allowed. If the package requires other features to work, they should be
		// specified as soft-requirements.
		// Read more: https://ckeditor.com/docs/ckeditor5/latest/builds/guides/migration/migration-to-26.html#soft-requirements.
		'ckeditor5-rules/ckeditor-imports': 'error'
	},
	overrides: [
		{
			files: [ 'tests/**/*.js', 'sample/**/*.js' ],
			rules: {
				// To write complex tests, you may need to import files that are not exported in DLL files by default.
				// Hence, imports CKEditor 5 packages in test files are not checked.
				'ckeditor5-rules/ckeditor-imports': 'off'
			}
		}
	]
};
Loading