Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 39 additions & 8 deletions modules/builders/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ts_library(
srcs = glob(
["**/*.ts"],
exclude = [
"testing/**",
"**/*.spec.ts",
],
),
Expand All @@ -45,19 +46,49 @@ npm_package(
deps = [":builders"],
)

### Testing rules
jasmine_node_test(
name = "unit_tests",
srcs = [":unit_test_lib"],
data = [
"@npm//@angular/cli",
"@npm//@angular-devkit/build-angular",
"@npm//@angular/core",
"@npm//@angular/router",
"@npm//@angular/common",
"@npm//@angular/compiler-cli",
"@npm//@angular/compiler",
"@npm//@angular/platform-browser",
"@npm//@angular/platform-browser-dynamic",
"@npm//@types/node",
"@npm//browser-sync",
"@npm//express",
"@npm//rxjs",
"@npm//shelljs",
"@npm//node-fetch",
"@npm//zone.js",
"//modules/express-engine:npm_package",
":npm_package",
] + glob([
"testing/hello-world-app/**/*",
]),
)

ng_test_library(
name = "unit_test_lib",
srcs = glob([
"**/*.spec.ts",
]),
srcs = glob(
[
"testing/*.ts",
"**/*.spec.ts",
],
exclude = ["testing/hello-world-app/**/*"],
),
deps = [
":builders",
"@npm//@angular-devkit/architect",
"@npm//@angular-devkit/core",
"@npm//@types/browser-sync",
"@npm//@types/shelljs",
"@npm//rxjs",
],
)

jasmine_node_test(
name = "unit_test",
srcs = [":unit_test_lib"],
)
12 changes: 11 additions & 1 deletion modules/builders/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,14 @@
* found in the LICENSE file at https://angular.io/license
*/

export * from './ssr-dev-server/index';
export {
execute as executeSSRDevServerBuilder,
SSRDevServerBuilderOptions,
SSRDevServerBuilderOutput,
} from './ssr-dev-server';

export {
execute as executePrerenderBuilder,
PrerenderBuilderOptions,
PrerenderBuilderOutput,
} from './prerender';
Loading