You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
Python
46 lines
1.1 KiB
Python
1 year ago
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
||
1 year ago
|
load("@bazel_gazelle//:def.bzl", "gazelle")
|
||
|
|
||
1 year ago
|
# gazelle:prefix code.ndumas.com/ndumas/obsidian-markdown
|
||
1 year ago
|
gazelle(name = "gazelle")
|
||
|
|
||
1 year ago
|
gazelle(
|
||
|
name = "gazelle-update-repos",
|
||
|
args = [
|
||
|
"-from_file=go.mod",
|
||
|
"-to_macro=deps.bzl%go_dependencies",
|
||
|
"-prune",
|
||
|
"-build_file_proto_mode=disable_global",
|
||
|
],
|
||
|
command = "update-repos",
|
||
|
)
|
||
|
|
||
1 year ago
|
go_library(
|
||
|
name = "obsidian-markdown",
|
||
|
srcs = [
|
||
|
"lexemetype_string.go",
|
||
|
"lexer.go",
|
||
|
"states.go",
|
||
|
"wikilink.go",
|
||
|
],
|
||
|
importpath = "code.ndumas.com/ndumas/obsidian-markdown",
|
||
1 year ago
|
visibility = ["//visibility:public"],
|
||
1 year ago
|
deps = [
|
||
|
"@org_uber_go_zap//:go_default_library",
|
||
|
"@org_uber_go_zap//zapcore:go_default_library",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
go_test(
|
||
|
name = "obsidian-markdown_test",
|
||
|
srcs = [
|
||
|
"lexer_test.go",
|
||
|
"wikilink_test.go",
|
||
|
],
|
||
|
deps = [
|
||
|
":obsidian-markdown",
|
||
|
"@com_github_stretchr_testify//assert:go_default_library",
|
||
|
"@org_uber_go_zap//zapcore:go_default_library",
|
||
1 year ago
|
],
|
||
|
)
|