@@ -23,6 +23,7 @@ const GLOBALS = {
23
23
'firebase/messaging' : 'firebase' ,
24
24
'firebase/firestore' : 'firebase' ,
25
25
'firebase/functions' : 'firebase' ,
26
+ 'firebase/perf' : 'firebase' ,
26
27
'firebase/storage' : 'firebase' ,
27
28
'@angular/fire' : 'angularfire2' ,
28
29
'@angular/fire/auth' : 'angularfire2.auth' ,
@@ -32,6 +33,7 @@ const GLOBALS = {
32
33
'@angular/fire/functions' : 'angularfire2.functions' ,
33
34
'@angular/fire/storage' : 'angularfire2.storage' ,
34
35
'@angular/fire/messaging' : 'angularfire2.messaging' ,
36
+ '@angular/fire/performance' : 'angularfire2.performance'
35
37
} ;
36
38
37
39
// Map of dependency versions across all packages
@@ -57,6 +59,7 @@ const MODULE_NAMES = {
57
59
functions : 'angularfire2.functions' ,
58
60
storage : 'angularfire2.storage' ,
59
61
messaging : 'angularfire2.messaging' ,
62
+ performance : 'angularfire2.performance'
60
63
} ;
61
64
62
65
const ENTRIES = {
@@ -68,6 +71,7 @@ const ENTRIES = {
68
71
functions : `${ process . cwd ( ) } /dist/packages-dist/functions/index.js` ,
69
72
storage : `${ process . cwd ( ) } /dist/packages-dist/storage/index.js` ,
70
73
messaging : `${ process . cwd ( ) } /dist/packages-dist/messaging/index.js` ,
74
+ performance : `${ process . cwd ( ) } /dist/packages-dist/performance/index.js`
71
75
} ;
72
76
73
77
const SRC_PKG_PATHS = {
@@ -80,6 +84,7 @@ const SRC_PKG_PATHS = {
80
84
functions : `${ process . cwd ( ) } /src/functions/package.json` ,
81
85
storage : `${ process . cwd ( ) } /src/storage/package.json` ,
82
86
messaging : `${ process . cwd ( ) } /src/messaging/package.json` ,
87
+ performance : `${ process . cwd ( ) } /src/performance/package.json`
83
88
} ;
84
89
85
90
const DEST_PKG_PATHS = {
@@ -92,6 +97,7 @@ const DEST_PKG_PATHS = {
92
97
functions : `${ process . cwd ( ) } /dist/packages-dist/functions/package.json` ,
93
98
storage : `${ process . cwd ( ) } /dist/packages-dist/storage/package.json` ,
94
99
messaging : `${ process . cwd ( ) } /dist/packages-dist/messaging/package.json` ,
100
+ performance : `${ process . cwd ( ) } /dist/packages-dist/performance/package.json`
95
101
} ;
96
102
97
103
// Constants for running typescript commands
@@ -262,6 +268,7 @@ function getVersions() {
262
268
getDestPackageFile ( 'functions' ) ,
263
269
getDestPackageFile ( 'storage' ) ,
264
270
getDestPackageFile ( 'messaging' ) ,
271
+ getDestPackageFile ( 'performance' ) ,
265
272
getDestPackageFile ( 'database-deprecated' )
266
273
] ;
267
274
return paths
@@ -302,6 +309,7 @@ function buildModules(globals) {
302
309
const functions$ = buildModule ( 'functions' , globals ) ;
303
310
const storage$ = buildModule ( 'storage' , globals ) ;
304
311
const messaging$ = buildModule ( 'messaging' , globals ) ;
312
+ const performance$ = buildModule ( 'performance' , globals ) ;
305
313
const dbdep$ = buildModule ( 'database-deprecated' , globals ) ;
306
314
return forkJoin ( core$ , from ( copyRootTest ( ) ) ) . pipe (
307
315
switchMapTo ( auth$ ) ,
@@ -310,6 +318,7 @@ function buildModules(globals) {
310
318
switchMapTo ( functions$ ) ,
311
319
switchMapTo ( storage$ ) ,
312
320
switchMapTo ( messaging$ ) ,
321
+ switchMapTo ( performance$ ) ,
313
322
switchMapTo ( dbdep$ )
314
323
) ;
315
324
}
@@ -331,6 +340,7 @@ function buildLibrary(globals) {
331
340
const functionsStats = measure ( 'functions' ) ;
332
341
const storageStats = measure ( 'storage' ) ;
333
342
const messagingStats = measure ( 'messaging' ) ;
343
+ const performanceStats = measure ( 'performance' ) ;
334
344
const dbdepStats = measure ( 'database-deprecated' ) ;
335
345
console . log ( `
336
346
core.umd.js - ${ coreStats . size } , ${ coreStats . gzip }
@@ -340,6 +350,7 @@ function buildLibrary(globals) {
340
350
functions.umd.js - ${ functionsStats . size } , ${ functionsStats . gzip }
341
351
storage.umd.js - ${ storageStats . size } , ${ storageStats . gzip }
342
352
messaging.umd.js - ${ messagingStats . size } , ${ messagingStats . gzip }
353
+ performance.umd.js - ${ performanceStats . size } , ${ performanceStats . gzip }
343
354
database-deprecated.umd.js - ${ dbdepStats . size } , ${ dbdepStats . gzip }
344
355
` ) ;
345
356
verifyVersions ( ) ;
0 commit comments