Skip to content

Commit 71ae8bc

Browse files
committed
WIP: Tried genrule but it didn't work
1 parent 0bf8d35 commit 71ae8bc

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.bazelrc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
###############################
2+
# Directory structure #
3+
###############################
4+
5+
# Artifacts are typically placed in a directory called "dist"
6+
# Be aware that this setup will still create a bazel-out symlink in
7+
# your project directory, which you must exclude from version control and your
8+
# editor's search path.
9+
build --symlink_prefix=dist/
10+
11+
###############################
12+
# Output #
13+
###############################
14+
15+
# A more useful default output mode for bazel query, which
16+
# prints "ng_module rule //foo:bar" instead of just "//foo:bar".
17+
query --output=label_kind
18+
19+
# By default, failing tests don't print any output, it's logged to a
20+
# file instead.
21+
test --test_output=errors
22+
23+
###############################
24+
# Typescript / Angular / Sass #
25+
###############################
26+
# Make TypeScript and Angular compilation fast, by keeping a few
27+
# copies of the compiler running as daemons, and cache SourceFile
28+
# ASTs to reduce parse time.
29+
build --strategy=TypeScriptCompile=worker --strategy=AngularTemplateCompile=worker
30+
31+
# Enable debugging tests with --config=debug
32+
test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test_strategy=exclusive --test_timeout=9999 --nocache_test_results

client/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ genrule(
2020
":ogpapp_client_src",
2121
],
2222
outs = ["dist"],
23-
cmd = "$(location vue_cli_service) build",
23+
cmd = "@npm//:node_modules/@vue/cli-service/bin/vue_cli_service.js build",
2424
tools = [":vue_cli_service"],
2525
)

0 commit comments

Comments
 (0)