@@ -14,22 +14,67 @@ filegroup(
14
14
# TODO(alexeagle): figure out what to do
15
15
srcs = glob (["/" .join (["node_modules" , pkg , "**" , ext ]) for pkg in [
16
16
"@angular" ,
17
- "jasmine" ,
18
- "typescript" ,
19
- "tslib" ,
20
- "zone.js" ,
21
17
"@types" ,
22
- "tsickle" ,
23
- "hammerjs" ,
24
- "protobufjs" ,
25
18
"bytebuffer" ,
26
- "reflect-metadata" ,
19
+ "hammerjs" ,
20
+ "jasmine" ,
27
21
"minimist" ,
28
22
"moment" ,
23
+ "protobufjs" ,
24
+ "protractor" ,
25
+ "reflect-metadata" ,
26
+ "tsickle" ,
27
+ "tslib" ,
28
+ "tsutils" ,
29
+ "typescript" ,
30
+ "zone.js" ,
29
31
] for ext in [
30
32
"*.js" ,
31
33
"*.json" ,
32
34
"*.d.ts" ,
33
- ]]),
35
+ ]] + [
36
+ "node_modules/http-server/**" ,
37
+ ]),
38
+ )
39
+
40
+
41
+ # Glob pattern that matches all Angular testing bundles.
42
+ ANGULAR_TESTING = [
43
+ "node_modules/@angular/*/bundles/*-testing.umd.js" ,
44
+ # The compiler and the dynamic platform-browser should be visible only in tests
45
+ "node_modules/@angular/compiler/bundles/*.umd.js" ,
46
+ "node_modules/@angular/platform-browser-dynamic/bundles/*.umd.js" ,
47
+ ]
48
+
49
+ filegroup (
50
+ name = "angular_bundles" ,
51
+ srcs = glob (["node_modules/@angular/*/bundles/*.umd.js" ], exclude = ANGULAR_TESTING ),
52
+ )
53
+
54
+ filegroup (
55
+ name = "angular_test_bundles" ,
56
+ testonly = 1 ,
57
+ srcs = glob (ANGULAR_TESTING ),
34
58
)
35
59
60
+ filegroup (
61
+ name = "tslib_bundle" ,
62
+ testonly = 1 ,
63
+ srcs = glob (["node_modules/tslib/tslib.js" ]),
64
+ )
65
+
66
+ # Files necessary for unit tests that use zonejs
67
+ filegroup (
68
+ name = "web_test_bootstrap_scripts" ,
69
+ # The order of these deps is important.
70
+ # Do not sort.
71
+ srcs = [
72
+ "//:node_modules/reflect-metadata/Reflect.js" ,
73
+ "//:node_modules/zone.js/dist/zone.js" ,
74
+ "//:node_modules/zone.js/dist/async-test.js" ,
75
+ "//:node_modules/zone.js/dist/sync-test.js" ,
76
+ "//:node_modules/zone.js/dist/fake-async-test.js" ,
77
+ "//:node_modules/zone.js/dist/proxy.js" ,
78
+ "//:node_modules/zone.js/dist/jasmine-patch.js" ,
79
+ ],
80
+ )
0 commit comments