Add codemirror-minified to WORKSPACE
Adding this dependency to WORKSPACE allows a plugin (codemirror-editor)
to load it in a descendant change.
Bug: Issue 4437
Change-Id: I6cf5a55a21c6e749215ef91e895554444e49b657
diff --git a/WORKSPACE b/WORKSPACE
index 6810f79..ccd90e5 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1145,6 +1145,13 @@
version = "1.0.0",
)
+bower_archive(
+ name = "codemirror-minified",
+ package = "Dominator008/codemirror-minified",
+ sha1 = "51ba8d9256c63ce95238253c5b2eb7d5b12d6ed3",
+ version = "5.28.0",
+)
+
# bower test stuff
bower_archive(
diff --git a/lib/js/BUILD b/lib/js/BUILD
index 93b321f..0bb7b0c 100644
--- a/lib/js/BUILD
+++ b/lib/js/BUILD
@@ -35,3 +35,8 @@
srcs = ["//lib/highlightjs:highlight.min.js"],
data = ["//lib:LICENSE-highlightjs"],
)
+
+bower_component(
+ name = "codemirror-minified",
+ license = "//lib:LICENSE-codemirror-minified",
+)
diff --git a/lib/js/bower_archives.bzl b/lib/js/bower_archives.bzl
index d3f7483..fea111e 100644
--- a/lib/js/bower_archives.bzl
+++ b/lib/js/bower_archives.bzl
@@ -23,6 +23,11 @@
version = "3.5.0",
sha1 = "849ad3ee7c77506548b7b5db603a4e150b9431aa")
bower_archive(
+ name = "codemirror-minified",
+ package = "Dominator008/codemirror-minified",
+ version = "5.28.0",
+ sha1 = "51ba8d9256c63ce95238253c5b2eb7d5b12d6ed3")
+ bower_archive(
name = "font-roboto",
package = "PolymerElements/font-roboto",
version = "1.0.3",
diff --git a/tools/js/bower2bazel.py b/tools/js/bower2bazel.py
index b55a643..0ee44b3 100755
--- a/tools/js/bower2bazel.py
+++ b/tools/js/bower2bazel.py
@@ -33,6 +33,7 @@
# list of licenses for packages that don't specify one in their bower.json file.
package_licenses = {
+ "codemirror-minified": "codemirror-minified",
"es6-promise": "es6-promise",
"fetch": "fetch",
"font-roboto": "polymer",