2021-06-17 14:44:03 +02:00
|
|
|
load("//ts:vendor.bzl", "pkg_from_name", "vendor_js_lib")
|
|
|
|
load("@io_bazel_rules_sass//:defs.bzl", "sass_library")
|
|
|
|
|
|
|
|
# copy codemirror sass files in
|
|
|
|
vendor_js_lib(
|
|
|
|
name = "sass-sources",
|
|
|
|
include = [
|
|
|
|
"lib/codemirror.css",
|
2021-06-17 17:18:00 +02:00
|
|
|
"theme",
|
2021-06-17 20:27:34 +02:00
|
|
|
"addon/fold/foldgutter.css",
|
2021-06-17 14:44:03 +02:00
|
|
|
],
|
|
|
|
base = "external/npm/node_modules/codemirror/",
|
|
|
|
pkg = pkg_from_name("codemirror"),
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
# wrap them in a library
|
|
|
|
sass_library(
|
|
|
|
name = "codemirror",
|
|
|
|
srcs = [
|
|
|
|
":sass-sources",
|
|
|
|
],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|