mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
24 lines
586 B
Text
24 lines
586 B
Text
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",
|
|
"theme",
|
|
"addon/fold/foldgutter.css",
|
|
],
|
|
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"],
|
|
)
|