Skip to content

Commit 5a4cb38

Browse files
alan-agius4vikerman
authored andcommitted
ci: add bazel builder testing infra (#1362)
closes #1359
1 parent f5134b9 commit 5a4cb38

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+5210
-583
lines changed

modules/builders/BUILD.bazel

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ts_library(
2323
srcs = glob(
2424
["**/*.ts"],
2525
exclude = [
26+
"testing/**",
2627
"**/*.spec.ts",
2728
],
2829
),
@@ -45,19 +46,49 @@ npm_package(
4546
deps = [":builders"],
4647
)
4748

49+
### Testing rules
50+
jasmine_node_test(
51+
name = "unit_tests",
52+
srcs = [":unit_test_lib"],
53+
data = [
54+
"@npm//@angular/cli",
55+
"@npm//@angular-devkit/build-angular",
56+
"@npm//@angular/core",
57+
"@npm//@angular/router",
58+
"@npm//@angular/common",
59+
"@npm//@angular/compiler-cli",
60+
"@npm//@angular/compiler",
61+
"@npm//@angular/platform-browser",
62+
"@npm//@angular/platform-browser-dynamic",
63+
"@npm//@types/node",
64+
"@npm//browser-sync",
65+
"@npm//express",
66+
"@npm//rxjs",
67+
"@npm//shelljs",
68+
"@npm//node-fetch",
69+
"@npm//zone.js",
70+
"//modules/express-engine:npm_package",
71+
":npm_package",
72+
] + glob([
73+
"testing/hello-world-app/**/*",
74+
]),
75+
)
76+
4877
ng_test_library(
4978
name = "unit_test_lib",
50-
srcs = glob([
51-
"**/*.spec.ts",
52-
]),
79+
srcs = glob(
80+
[
81+
"testing/*.ts",
82+
"**/*.spec.ts",
83+
],
84+
exclude = ["testing/hello-world-app/**/*"],
85+
),
5386
deps = [
5487
":builders",
5588
"@npm//@angular-devkit/architect",
5689
"@npm//@angular-devkit/core",
90+
"@npm//@types/browser-sync",
91+
"@npm//@types/shelljs",
92+
"@npm//rxjs",
5793
],
5894
)
59-
60-
jasmine_node_test(
61-
name = "unit_test",
62-
srcs = [":unit_test_lib"],
63-
)

modules/builders/src/index.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,14 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
export * from './ssr-dev-server/index';
9+
export {
10+
execute as executeSSRDevServerBuilder,
11+
SSRDevServerBuilderOptions,
12+
SSRDevServerBuilderOutput,
13+
} from './ssr-dev-server';
14+
15+
export {
16+
execute as executePrerenderBuilder,
17+
PrerenderBuilderOptions,
18+
PrerenderBuilderOutput,
19+
} from './prerender';

0 commit comments

Comments
 (0)