2016-11-30 08:52:06 +01:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2016-09-21 15:03:54 +02:00
|
|
|
load("//tools/bzl:js.bzl", "bower_component", "js_component")
|
|
|
|
|
2017-02-01 13:33:19 +01:00
|
|
|
# For importing new versions of existing bower packages,
|
2016-09-21 15:03:54 +02:00
|
|
|
#
|
2017-02-01 13:33:19 +01:00
|
|
|
# 1) edit the versions of 'seed' components in WORKSPACE as desired
|
|
|
|
#
|
|
|
|
# 2) Run: 'python tools/js/bower2bazel.py -w lib/js/bower_archives.bzl -b lib/js/bower_components.bzl', to update dependency versions.
|
2016-09-21 15:03:54 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
# For adding a new component as dependency to a bower_component_bundle
|
|
|
|
#
|
|
|
|
# 1) add a new bower_archive in WORKSPACE
|
|
|
|
#
|
|
|
|
# 2) add bower_component(name="my_new_dependency", seed=True) here
|
|
|
|
#
|
|
|
|
# 3) run bower2bazel (see above.)
|
|
|
|
#
|
|
|
|
# 4) remove bower_component(name="my_new_dependency", .. ) here
|
|
|
|
#
|
|
|
|
|
|
|
|
load("//lib/js:bower_components.bzl", "define_bower_components")
|
2016-11-30 08:52:06 +01:00
|
|
|
|
2016-09-21 15:03:54 +02:00
|
|
|
define_bower_components()
|
|
|
|
|
|
|
|
js_component(
|
2016-11-30 08:52:06 +01:00
|
|
|
name = "highlightjs",
|
|
|
|
srcs = ["//lib/highlightjs:highlight.min.js"],
|
|
|
|
license = "//lib:LICENSE-highlightjs",
|
2016-10-20 14:26:11 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
2016-11-30 08:52:06 +01:00
|
|
|
name = "highlightjs_files",
|
|
|
|
srcs = ["//lib/highlightjs:highlight.min.js"],
|
|
|
|
data = ["//lib:LICENSE-highlightjs"],
|
2016-09-21 15:03:54 +02:00
|
|
|
)
|