File tree Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Original file line number Diff line number Diff line change 125
125
"node-fetch" : " ^2.2.0" ,
126
126
"npm-registry-client" : " 8.6.0" ,
127
127
"ora" : " ^4.0.2" ,
128
- "pacote" : " 9.5.12" ,
129
- "pidtree" : " ^0.4.0" ,
128
+ "pacote" : " 11.1.4" ,
129
+ "parse5-html-rewriting-stream" : " 5.1.1" ,
130
+ "pidtree" : " ^0.3.0" ,
130
131
"pidusage" : " ^2.0.17" ,
131
132
"prettier" : " ^2.0.0" ,
132
133
"puppeteer" : " 2.1.1" ,
Original file line number Diff line number Diff line change 6
6
licenses (["notice" ]) # MIT
7
7
8
8
load ("@npm_bazel_typescript//:index.bzl" , "ts_library" )
9
+ load ("@npm_bazel_jasmine//:index.bzl" , "jasmine_node_test" )
9
10
load ("//tools:ts_json_schema.bzl" , "ts_json_schema" )
10
11
11
12
package (default_visibility = ["//visibility:public" ])
@@ -27,10 +28,20 @@ ts_library(
27
28
) + [
28
29
"//packages/angular/pwa:pwa/schema.ts" ,
29
30
],
31
+ data = glob (
32
+ include = [
33
+ "collection.json" ,
34
+ "package.json" ,
35
+ "pwa/schema.json" ,
36
+ "pwa/files/**/*" ,
37
+ ],
38
+ ),
30
39
deps = [
31
40
"//packages/angular_devkit/core" ,
32
41
"//packages/angular_devkit/schematics" ,
42
+ "//packages/schematics/angular" ,
33
43
"@npm//@types/node" ,
44
+ "@npm//parse5-html-rewriting-stream" ,
34
45
"@npm//rxjs" ,
35
46
],
36
47
)
@@ -39,3 +50,27 @@ ts_json_schema(
39
50
name = "pwa_schema" ,
40
51
src = "pwa/schema.json" ,
41
52
)
53
+
54
+ ts_library (
55
+ name = "pwa_test_lib" ,
56
+ testonly = True ,
57
+ srcs = glob (
58
+ include = [
59
+ "pwa/**/*_spec.ts" ,
60
+ "pwa/**/*_spec_large.ts" ,
61
+ ],
62
+ ),
63
+ # strict_checks = False,
64
+ tsconfig = "//:tsconfig-test.json" ,
65
+ deps = [
66
+ ":pwa" ,
67
+ "//packages/angular_devkit/schematics/testing" ,
68
+ "@npm//@types/jasmine" ,
69
+ "@npm//@types/node" ,
70
+ ],
71
+ )
72
+
73
+ jasmine_node_test (
74
+ name = "pwa_test" ,
75
+ srcs = [":pwa_test_lib" ],
76
+ )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { Schema as PwaOptions } from './schema';
12
12
describe ( 'PWA Schematic' , ( ) => {
13
13
const schematicRunner = new SchematicTestRunner (
14
14
'@angular/pwa' ,
15
- path . join ( __dirname , '../collection.json' ) ,
15
+ require . resolve ( path . join ( __dirname , '../collection.json' ) ) ,
16
16
) ;
17
17
const defaultOptions : PwaOptions = {
18
18
project : 'bar' ,
You can’t perform that action at this time.
0 commit comments