This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(components-e2e): Bazelify components-e2e app.
- Loading branch information
Lukas Holzer
committed
Oct 14, 2020
1 parent
1a39593
commit 0879515
Showing
69 changed files
with
2,340 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
load("//tools/bazel_rules:index.bzl", "stylelint") | ||
load("@npm//@bazel/typescript:index.bzl", "ts_config") | ||
|
||
package(default_visibility = ["//:__subpackages__"]) | ||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
stylelint( | ||
name = "stylelint", | ||
srcs = glob(["**/*.scss"]), | ||
config = ":.stylelintrc" | ||
exports_files([".stylelintrc"]) | ||
|
||
ts_config( | ||
name = "tsconfig-app", | ||
src = ":tsconfig.app.json", | ||
deps = [ | ||
":tsconfig.json", | ||
"//:tsconfig.base.json", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
load("//tools/bazel_rules:index.bzl", "ng_module", "stylelint") | ||
load("@io_bazel_rules_sass//:defs.bzl", "sass_binary") | ||
|
||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
ng_module( | ||
name = "src", | ||
srcs = [ | ||
"main.dev.ts", | ||
"main.prod.ts", | ||
], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
"//apps/components-e2e/src/app", | ||
"@npm//@angular/core", | ||
"@npm//@angular/platform-browser", | ||
], | ||
) | ||
|
||
sass_binary( | ||
name = "styles", | ||
src = "main.scss", | ||
include_paths = ["external/npm"], | ||
output_name = "styles.css", | ||
deps = [ | ||
"//libs/barista-components/style", | ||
], | ||
) | ||
|
||
stylelint( | ||
name = "stylelint", | ||
srcs = glob(["**/*.scss"]), | ||
config = "//apps/components-e2e:.stylelintrc", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
load("//tools/bazel_rules:index.bzl", "ng_module") | ||
|
||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
ROUTES = [ | ||
"//apps/components-e2e/src/components/autocomplete", | ||
"//apps/components-e2e/src/components/button", | ||
"//apps/components-e2e/src/components/button-group", | ||
"//apps/components-e2e/src/components/chart", | ||
"//apps/components-e2e/src/components/checkbox", | ||
"//apps/components-e2e/src/components/combobox", | ||
"//apps/components-e2e/src/components/confirmation-dialog", | ||
"//apps/components-e2e/src/components/consumption", | ||
"//apps/components-e2e/src/components/context-dialog", | ||
"//apps/components-e2e/src/components/drawer", | ||
"//apps/components-e2e/src/components/empty-state", | ||
"//apps/components-e2e/src/components/event-chart", | ||
"//apps/components-e2e/src/components/expandable-panel", | ||
"//apps/components-e2e/src/components/expandable-section", | ||
"//apps/components-e2e/src/components/filter-field", | ||
"//apps/components-e2e/src/components/highlight", | ||
"//apps/components-e2e/src/components/key-value-list", | ||
"//apps/components-e2e/src/components/overlay", | ||
"//apps/components-e2e/src/components/pagination", | ||
"//apps/components-e2e/src/components/progress-bar", | ||
"//apps/components-e2e/src/components/quick-filter", | ||
"//apps/components-e2e/src/components/radial-chart", | ||
"//apps/components-e2e/src/components/radio", | ||
"//apps/components-e2e/src/components/select", | ||
"//apps/components-e2e/src/components/show-more", | ||
"//apps/components-e2e/src/components/slider", | ||
"//apps/components-e2e/src/components/stacked-series-chart", | ||
"//apps/components-e2e/src/components/sunburst-chart", | ||
"//apps/components-e2e/src/components/switch", | ||
"//apps/components-e2e/src/components/table", | ||
"//apps/components-e2e/src/components/tabs", | ||
"//apps/components-e2e/src/components/tag", | ||
"//apps/components-e2e/src/components/tile", | ||
"//apps/components-e2e/src/components/tree-table", | ||
] | ||
|
||
ng_module( | ||
name = "app", | ||
srcs = glob(["*.ts"]), | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = ROUTES + [ | ||
"//libs/barista-components/icon:compile", | ||
"//libs/barista-components/overlay:compile", | ||
"@npm//@angular/common", | ||
"@npm//@angular/core", | ||
"@npm//@angular/forms", | ||
"@npm//@angular/platform-browser", | ||
"@npm//@angular/router", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
apps/components-e2e/src/components/autocomplete/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
load("//tools/bazel_rules:index.bzl", "ng_module") | ||
|
||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
ng_module( | ||
name = "autocomplete", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"**/*.po.ts", | ||
"**/*.e2e.ts", | ||
], | ||
), | ||
angular_assets = ["autocomplete.html"], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
"//libs/barista-components/autocomplete:compile", | ||
"//libs/barista-components/core:compile", | ||
"@npm//@angular/common", | ||
"@npm//@angular/core", | ||
"@npm//@angular/forms", | ||
"@npm//@angular/router", | ||
], | ||
) |
23 changes: 23 additions & 0 deletions
23
apps/components-e2e/src/components/button-group/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
load("//tools/bazel_rules:index.bzl", "ng_module") | ||
|
||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
ng_module( | ||
name = "button-group", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"**/*.po.ts", | ||
"**/*.e2e.ts", | ||
], | ||
), | ||
angular_assets = ["button-group.html"], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
"//libs/barista-components/button-group:compile", | ||
"@npm//@angular/common", | ||
"@npm//@angular/core", | ||
"@npm//@angular/router", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
load("//tools/bazel_rules:index.bzl", "ng_module") | ||
|
||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
ng_module( | ||
name = "button", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"**/*.po.ts", | ||
"**/*.e2e.ts", | ||
], | ||
), | ||
angular_assets = ["button.html"], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
"//libs/barista-components/button:compile", | ||
"@npm//@angular/common", | ||
"@npm//@angular/core", | ||
"@npm//@angular/router", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
load("//tools/bazel_rules:index.bzl", "ng_module") | ||
load("@npm//@bazel/typescript:index.bzl", "ts_library") | ||
|
||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
ng_module( | ||
name = "chart", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"chart-base.ts", | ||
"chart-options.ts", | ||
"**/*.po.ts", | ||
"**/*.e2e.ts", | ||
], | ||
), | ||
angular_assets = [ | ||
"chart/chart.html", | ||
"heatfield/heatfield.html", | ||
"highcharts/chart-highcharts-ui.html", | ||
"pie-chart/pie-chart.html", | ||
], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
"//apps/components-e2e/src/components/chart/selection-area", | ||
"//libs/barista-components/chart:compile", | ||
"//libs/barista-components/core:compile", | ||
"//libs/testing/fixtures", | ||
"@npm//@angular/common", | ||
"@npm//@angular/core", | ||
"@npm//@angular/router", | ||
"@npm//highcharts", | ||
"@npm//rxjs", | ||
], | ||
) | ||
|
||
ts_library( | ||
name = "chart-base", | ||
srcs = ["chart-base.ts"], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
":chart-options", | ||
"//apps/components-e2e/src/services", | ||
"@npm//highcharts", | ||
"@npm//rxjs", | ||
"@npm//tslib", | ||
], | ||
) | ||
|
||
ts_library( | ||
name = "chart-options", | ||
srcs = ["chart-options.ts"], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
"@npm//tslib", | ||
], | ||
) |
29 changes: 29 additions & 0 deletions
29
apps/components-e2e/src/components/chart/selection-area/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
load("//tools/bazel_rules:index.bzl", "ng_module") | ||
|
||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
ng_module( | ||
name = "selection-area", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"**/*.po.ts", | ||
"**/*.e2e.ts", | ||
], | ||
), | ||
angular_assets = [ | ||
"range/range.html", | ||
"timestamp/timestamp.html", | ||
"selection-area.html", | ||
], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
"//apps/components-e2e/src/components/chart:chart-base", | ||
"//apps/components-e2e/src/services", | ||
"//libs/barista-components/button:compile", | ||
"//libs/barista-components/chart:compile", | ||
"@npm//@angular/common", | ||
"@npm//@angular/core", | ||
"@npm//@angular/router", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
load("//tools/bazel_rules:index.bzl", "ng_module") | ||
|
||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
ng_module( | ||
name = "checkbox", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"**/*.po.ts", | ||
"**/*.e2e.ts", | ||
], | ||
), | ||
angular_assets = ["checkbox.html"], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
"//libs/barista-components/checkbox:compile", | ||
"@npm//@angular/common", | ||
"@npm//@angular/core", | ||
"@npm//@angular/router", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
load("//tools/bazel_rules:index.bzl", "ng_module") | ||
|
||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
ng_module( | ||
name = "combobox", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"**/*.po.ts", | ||
"**/*.e2e.ts", | ||
], | ||
), | ||
angular_assets = ["combobox.html"], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
"//libs/barista-components/experimental/combobox:compile", | ||
"@npm//@angular/common", | ||
"@npm//@angular/core", | ||
"@npm//@angular/router", | ||
], | ||
) |
23 changes: 23 additions & 0 deletions
23
apps/components-e2e/src/components/confirmation-dialog/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
load("//tools/bazel_rules:index.bzl", "ng_module") | ||
|
||
package(default_visibility = ["//apps/components-e2e:__subpackages__"]) | ||
|
||
ng_module( | ||
name = "confirmation-dialog", | ||
srcs = glob( | ||
include = ["**/*.ts"], | ||
exclude = [ | ||
"**/*.po.ts", | ||
"**/*.e2e.ts", | ||
], | ||
), | ||
angular_assets = ["confirmation-dialog.html"], | ||
tsconfig = "//apps/components-e2e:tsconfig-app", | ||
deps = [ | ||
"//libs/barista-components/confirmation-dialog:compile", | ||
"//libs/barista-components/core:compile", | ||
"@npm//@angular/common", | ||
"@npm//@angular/core", | ||
"@npm//@angular/router", | ||
], | ||
) |
Oops, something went wrong.