forked from gnucoop/ajf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
79 lines (75 loc) · 2.21 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
load("@npm//@bazel/concatjs:index.bzl", "concatjs_devserver")
load("//:packages.bzl", "getAngularUmdTargets")
load("//tools:defaults.bzl", "ng_module")
package(default_visibility = ["//visibility:public"])
exports_files([
"protractor.conf.js",
"start-devserver.js",
"devserver-configure.js",
])
ng_module(
name = "e2e-app",
testonly = True,
srcs = glob(
["**/*.ts"],
exclude = ["test-util/**"],
),
assets = glob(
[
"**/*.html",
"**/*.css",
],
exclude = ["index.html"],
),
deps = [
"//src/ajf-examples/private",
"//src/core/file-input",
"//src/ionic/calendar",
"//src/ionic/forms",
"//src/material/calendar",
"//src/material/forms",
"//src/material/reports",
"@npm//@angular/common",
"@npm//@angular/core",
"@npm//@angular/forms",
"@npm//@angular/platform-browser",
"@npm//@angular/router",
"@npm//@ionic/angular",
"@npm//@ngx-translate/core",
"@npm//@ngx-translate/http-loader",
],
)
concatjs_devserver(
name = "devserver",
testonly = True,
additional_root_paths = [
"npm/node_modules",
],
# Name of the AMD module that should be required on page load.
entry_module = "gc_ajf/src/e2e-app/main",
port = 4200,
# Scripts which will be included in the serving_path bundle after
# RequireJS has been loaded.
scripts = [
":devserver-configure.js",
"//tools/rxjs:rxjs_umd_modules",
"@npm//:node_modules/tslib/tslib.js",
] + getAngularUmdTargets(),
# Serving path of the bundle that serves all files specified in "deps" and "scripts".
serving_path = "/bundle.js",
# Files which should be provided by Bazel when running the devserver. These are not
# automatically served, but can be loaded manually through HTTP requests.
static_files = [
"@npm//zone.js",
"@npm//core-js-bundle",
"@npm//date-fns",
"@npm//esprima",
"@npm//leaflet",
"@npm//numbro",
"@npm//pdfmake",
"@npm//@ngx-translate/core",
":index.html",
],
tags = ["manual"],
deps = [":e2e-app"],
)