Skip to content

Commit 1569f4b

Browse files
Fabian Wilesalexeagle
authored andcommitted
feat(examples): add serve to angular architect
1 parent 2002046 commit 1569f4b

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

examples/angular_bazel_architect/BUILD.bazel

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,36 @@ architect_test(
112112
],
113113
)
114114

115+
architect(
116+
name = "serve",
117+
args = [
118+
"frontend:serve",
119+
],
120+
configuration_env_vars = ["NG_BUILD_CACHE"],
121+
data = glob(
122+
[
123+
"src/*",
124+
"src/**",
125+
],
126+
exclude = [
127+
"src/**/*.spec.ts",
128+
"src/test.ts",
129+
],
130+
) + [
131+
"angular.json",
132+
"browserslist",
133+
"tsconfig.app.json",
134+
"tsconfig.json",
135+
"@npm//mime",
136+
"@npm//@angular/cli",
137+
"@npm//@angular/core",
138+
"@npm//@angular/router",
139+
"@npm//@angular/platform-browser-dynamic",
140+
"@npm//@angular-devkit/build-angular",
141+
],
142+
tags = ["ibazel_notify_changes"],
143+
)
144+
115145
# Just a dummy test so that we have a test target for //... on certain bazelci platforms with bazel_integration_test
116146
sh_test(
117147
name = "dummy_test",

0 commit comments

Comments
 (0)