anki/BUILD.bazel
Damien Elmes 46b80ca773 move node_modules into root folder [action required]
Recommend removing ts/node_modules folder before attempting to
build after this update.

This moves ts/node_modules into the root of the project to work around
https://github.com/ankitects/anki/pull/1405#issuecomment-936213861

Also fixes the sass errors shown when running scripts/svelte-check
2021-10-07 11:42:27 +10:00

40 lines
876 B
Python

load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
config_setting(
name = "release",
values = {
"compilation_mode": "opt",
},
)
genrule(
name = "buildinfo",
srcs = ["//:defs.bzl"],
outs = ["buildinfo.txt"],
cmd = select({
"release": "$(location //scripts:buildinfo) $(location //:defs.bzl) bazel-out/stable-status.txt release > $@",
"//conditions:default": "$(location //scripts:buildinfo) $(location //:defs.bzl) bazel-out/stable-status.txt devel > $@",
}),
stamp = 1,
tools = [
"//scripts:buildinfo",
],
visibility = ["//visibility:public"],
)
pkg_tar(
name = "dist",
srcs = [
"//pylib/anki:wheel",
"//qt/aqt:wheel",
],
mode = "0644",
package_dir = "bazel-dist",
tags = ["manual"],
)
exports_files([
"defs.bzl",
"package.json",
])