-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Upgrade CodeMirror to latest v5 #10778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
westonruter
wants to merge
29
commits into
WordPress:trunk
Choose a base branch
from
westonruter:trac-48456-codemirror-v5-upgrade
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+672
−18,098
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
aaf2ccb
Build Tools: Add CodeMirror and linters to dependencies.
westonruter 7ac44f9
Build Tools: Remove pre-bundled CodeMirror files and linters.
westonruter e192eaf
Build Tools: Add CodeMirror bundle entry point.
westonruter 4c7295d
Build Tools: Add CodeMirror Webpack configuration.
westonruter 0a0d960
Build Tools: Implement CodeMirror build tasks.
westonruter ac581bc
CodeMirror: Update version strings in script-loader.php.
westonruter 2fb47e4
Build Tools: Restore license headers for CodeMirror JS and CSS.
westonruter 3fb2281
Build Tools: Add license header to unminified CodeMirror CSS.
westonruter 79295b3
Build Tools: Apply CodeMirror license banner before minification.
westonruter 404c7fa
Address JSHint complaint and redundant regex escaping
westonruter 0dcbf28
Build Tools: Consolidate CodeMirror CSS concatenation and minification.
westonruter f96389f
Tests: Update script dependencies test for CodeMirror packages.
westonruter 10ce369
Build Tools: Upgrade HTMLHint and fix CodeMirror externalization.
westonruter 5d691d0
Use minified htmlhint
westonruter 6f83bcf
Build Tools: Fix HTMLHint build patch for minified source.
westonruter 3928682
Build Tools: Upgrade CodeMirror to latest v5 release.
westonruter 39a8bfe
Editor: Update JSHint settings in `wp_get_code_editor_settings()`.
westonruter 1802d4d
Build Tools: Parameterize CodeMirror Webpack output path.
westonruter a5858ec
Build Tools: Refine CodeMirror entry point documentation.
westonruter 6dce922
Build Tools: Restore global linebreak option for banner task.
westonruter 5378ec6
Build Tools: Centralize CodeMirror license banner.
westonruter d5ffce2
Build Tools: Align CodeMirror Webpack configuration with Core convent…
westonruter 1535b0c
Use String.includes() instead of String.indexOf()
westonruter ee2b6bd
Editor: Switch from Esprima to Espree for JavaScript validation.
westonruter 744f1c3
Omit CodeMirror license banner from Espree script
westonruter cf742fa
Build Tools: Target specific usebanner tasks in build processes.
westonruter 7db8792
Fix formatting of codemirror.config.js
westonruter 3d58f09
Use core version for jshint (fakejshint.js) since not an external dep…
westonruter 6bc559f
Remove duplicate extractComments key
westonruter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
usebanneris invoked without a target as part ofbuild:css(see thebuild:csstask later in this file). Adding a separateusebanner:codemirrortarget meansgrunt usebannerwill also try to bannerwp-includes/js/codemirror/codemirror.min.cssduringbuild:css, but that file is only generated inbuild:codemirror(which runs afterwards). Consider changingbuild:cssto runusebanner:files(and keepusebanner:codemirroronly inbuild:codemirror), or otherwise reordering tasks so the file exists when theusebanner:codemirrortarget runs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in cf742fa.
Gemini's reasoning: