Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit c164f1c

Browse files
committed
Add a plain typescript library to demo the worker turnaround speed
1 parent 0c1535a commit c164f1c

5 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎.bazelrc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ build --strategy=TypeScriptCompile=worker
99
#
1010
# Instead, you should run `bazel info bazel-bin` to find out where the outputs went.
1111
build --symlink_prefix=/
12+
13+
query --noimplicit_deps --output graph

‎src/hello-world/BUILD.bazel‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ sass_binary(
1515
ng_module(
1616
name = "hello-world",
1717
srcs = glob(["*.ts"]),
18+
deps = ["//src/lib"],
1819
assets = [":hello-world-styles.css"],
1920
tsconfig = "//src:tsconfig.json",
2021
)

‎src/hello-world/hello-world.component.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {Component, NgModule} from '@angular/core';
2+
import {msg} from '../lib/file';
23

34
@Component({
45
selector: 'hello-world-app',
@@ -9,5 +10,5 @@ import {Component, NgModule} from '@angular/core';
910
styleUrls: ['./hello-world-styles.css']
1011
})
1112
export class HelloWorldComponent {
12-
name: string = 'world';
13+
name: string = msg;
1314
}

‎src/lib/BUILD.bazel‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package(default_visibility = ["//visibility:public"])
2+
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library")
3+
4+
ts_library(
5+
name = "lib",
6+
srcs = ["file.ts"],
7+
)

‎src/lib/file.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const msg: string = 'monde';

0 commit comments

Comments
 (0)