Skip to content

Commit

Permalink
Bug 1301790 - Bundle codemirror into a single script;r=gl
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: FnK8reRI4Ve
  • Loading branch information
bgrins committed Sep 11, 2016
1 parent 0fc79d4 commit 89be87c
Show file tree
Hide file tree
Showing 17 changed files with 20,222 additions and 76 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ devtools/client/chrome.manifest
devtools/shared/chrome.manifest

# Ignore node_modules directories in devtools
devtools/client/**/node_modules
devtools/**/node_modules

# Tag files generated by GNU Global
GTAGS
Expand Down
2 changes: 1 addition & 1 deletion .hgignore
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ _OPT\.OBJ/
^devtools/shared/chrome.manifest$

# Ignore node_modules directories in devtools
^devtools/client/.*/node_modules/
^devtools/.*/node_modules/

# git checkout of libstagefright
^media/libstagefright/android$
Expand Down
1 change: 1 addition & 0 deletions devtools/client/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "presets": [ "es2015" ] }
25 changes: 1 addition & 24 deletions devtools/client/jar.mn
Original file line number Diff line number Diff line change
Expand Up @@ -31,33 +31,10 @@ devtools.jar:
content/animationinspector/animation-controller.js (animationinspector/animation-controller.js)
content/animationinspector/animation-panel.js (animationinspector/animation-panel.js)
content/animationinspector/animation-inspector.xhtml (animationinspector/animation-inspector.xhtml)
content/sourceeditor/codemirror/addon/comment/comment.js (sourceeditor/codemirror/addon/comment/comment.js)
content/sourceeditor/codemirror/addon/edit/trailingspace.js (sourceeditor/codemirror/addon/edit/trailingspace.js)
content/sourceeditor/codemirror/addon/edit/matchbrackets.js (sourceeditor/codemirror/addon/edit/matchbrackets.js)
content/sourceeditor/codemirror/addon/edit/closebrackets.js (sourceeditor/codemirror/addon/edit/closebrackets.js)
content/sourceeditor/codemirror/addon/dialog/dialog.js (sourceeditor/codemirror/addon/dialog/dialog.js)
content/sourceeditor/codemirror/addon/dialog/dialog.css (sourceeditor/codemirror/addon/dialog/dialog.css)
content/sourceeditor/codemirror/addon/fold/foldcode.js (sourceeditor/codemirror/addon/fold/foldcode.js)
content/sourceeditor/codemirror/addon/fold/brace-fold.js (sourceeditor/codemirror/addon/fold/brace-fold.js)
content/sourceeditor/codemirror/addon/fold/comment-fold.js (sourceeditor/codemirror/addon/fold/comment-fold.js)
content/sourceeditor/codemirror/addon/fold/xml-fold.js (sourceeditor/codemirror/addon/fold/xml-fold.js)
content/sourceeditor/codemirror/addon/fold/foldgutter.js (sourceeditor/codemirror/addon/fold/foldgutter.js)
content/sourceeditor/codemirror/addon/hint/show-hint.js (sourceeditor/codemirror/addon/hint/show-hint.js)
content/sourceeditor/codemirror/addon/search/search.js (sourceeditor/codemirror/addon/search/search.js)
content/sourceeditor/codemirror/addon/search/searchcursor.js (sourceeditor/codemirror/addon/search/searchcursor.js)
content/sourceeditor/codemirror/addon/selection/active-line.js (sourceeditor/codemirror/addon/selection/active-line.js)
content/sourceeditor/codemirror/addon/tern/tern.js (sourceeditor/codemirror/addon/tern/tern.js)
content/sourceeditor/codemirror/lib/codemirror.js (sourceeditor/codemirror/lib/codemirror.js)
content/sourceeditor/codemirror/codemirror.bundle.js (sourceeditor/codemirror/codemirror.bundle.js)
content/sourceeditor/codemirror/lib/codemirror.css (sourceeditor/codemirror/lib/codemirror.css)
content/sourceeditor/codemirror/mode/javascript.js (sourceeditor/codemirror/mode/javascript.js)
content/sourceeditor/codemirror/mode/xml.js (sourceeditor/codemirror/mode/xml.js)
content/sourceeditor/codemirror/mode/css.js (sourceeditor/codemirror/mode/css.js)
content/sourceeditor/codemirror/mode/htmlmixed.js (sourceeditor/codemirror/mode/htmlmixed.js)
content/sourceeditor/codemirror/mode/clike.js (sourceeditor/codemirror/mode/clike.js)
content/sourceeditor/codemirror/mode/wasm.js (sourceeditor/codemirror/mode/wasm.js)
content/sourceeditor/codemirror/keymap/emacs.js (sourceeditor/codemirror/keymap/emacs.js)
content/sourceeditor/codemirror/keymap/sublime.js (sourceeditor/codemirror/keymap/sublime.js)
content/sourceeditor/codemirror/keymap/vim.js (sourceeditor/codemirror/keymap/vim.js)
content/sourceeditor/codemirror/mozilla.css (sourceeditor/codemirror/mozilla.css)
content/debugger/new/index.html (debugger/new/index.html)
content/debugger/new/images/angle-brackets.svg (debugger/new/images/angle-brackets.svg)
Expand Down
18 changes: 18 additions & 0 deletions devtools/client/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "devtools",
"version": "0.1",
"description": "",
"main": "",
"scripts": {
"build": "webpack"
},
"author": "",
"license": "",
"devDependencies": {
"babel-core": "^6.11.4",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"raw-loader": "^0.5.1",
"webpack": "^1.13.1"
}
}
7 changes: 6 additions & 1 deletion devtools/client/sourceeditor/codemirror/README
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ code, and optionally help with indentation.

# Upgrade

Currently used version is 5.16.0. To upgrade, download a new version of
Currently used version is 5.16.0. To upgrade: download a new version of
CodeMirror from the project's page [1] and replace all JavaScript and
CSS files inside the codemirror directory [2].

Then to recreate codemirror.bundle.js:
> cd devtools/client
> npm install
> webpack

To confirm the functionality run mochitests for the following components:

* sourceeditor
Expand Down
Loading

0 comments on commit 89be87c

Please sign in to comment.