File tree 5 files changed +10
-16
lines changed
5 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
sudo : false
3
3
node_js :
4
- - ' node '
4
+ - ' lts/* '
5
5
6
6
addons :
7
7
chrome : stable
Original file line number Diff line number Diff line change 51
51
"optionalDependencies" : {
52
52
"bufferutil" : " ~3.0.0" ,
53
53
"utf-8-validate" : " ~4.0.0"
54
- },
54
+ },
55
55
"devDependencies" : {
56
56
"@angular/compiler-cli" : " >=6.0.0 <8" ,
57
57
"@angular/platform-server" : " >=6.0.0 <8" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export * from './packages-dist/database/list/snapshot-changes.spec';
13
13
export * from './packages-dist/database/list/state-changes.spec' ;
14
14
export * from './packages-dist/database/list/audit-trail.spec' ;
15
15
export * from './packages-dist/storage/storage.spec' ;
16
- //export * from './packages-dist/schematics/ng-add .spec';
16
+ //export * from './packages-dist/schematics/index .spec';
17
17
//export * from './packages-dist/messaging/messaging.spec';
18
18
19
19
// // Since this a deprecated API, we run on it on manual tests only
Original file line number Diff line number Diff line change 1
1
import { Tree } from '@angular-devkit/schematics' ;
2
- import { from , Observable } from 'rxjs' ;
2
+ import { from } from 'rxjs' ;
3
+ import { map } from 'rxjs/operators' ;
3
4
import { Project } from './interfaces' ;
4
5
import { ngAdd } from './ng-add' ;
5
6
import { listProjects , projectPrompt } from './utils' ;
@@ -10,14 +11,7 @@ interface DeployOptions {
10
11
11
12
// You don't have to export the function as default. You can also have more than one rule factory
12
13
// per file.
13
- export function ngDeploy ( { project} : DeployOptions ) : ( host : Tree ) => Observable < Tree > {
14
- return ( host : Tree ) : Observable < Tree > => {
15
- return from < Tree > (
16
- listProjects ( ) . then ( ( projects : Project [ ] ) => {
17
- return projectPrompt ( projects ) . then ( ( { firebaseProject} : any ) => {
18
- return ngAdd ( host , { firebaseProject, project} )
19
- } ) ;
20
- } )
21
- ) ;
22
- } ;
23
- }
14
+ export const ngDeploy = ( { project} : DeployOptions ) => ( host : Tree ) => from ( listProjects ( ) ) . pipe (
15
+ map ( ( projects : Project [ ] ) => projectPrompt ( projects ) ) ,
16
+ map ( ( { firebaseProject} : any ) => ngAdd ( host , { firebaseProject, project} ) )
17
+ )
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ function copySchematicFiles() {
248
248
return Promise . all ( [
249
249
copy ( `${ process . cwd ( ) } /src/core/builders.json` , `${ process . cwd ( ) } /dist/packages-dist/builders.json` ) ,
250
250
copy ( `${ process . cwd ( ) } /src/core/collection.json` , `${ process . cwd ( ) } /dist/packages-dist/collection.json` ) ,
251
- copy ( `${ process . cwd ( ) } /src/schematics/deploy/schema.json` , `${ process . cwd ( ) } /dist/packages-dist/schematics/deploy` )
251
+ copy ( `${ process . cwd ( ) } /src/schematics/deploy/schema.json` , `${ process . cwd ( ) } /dist/packages-dist/schematics/deploy/schema.json ` )
252
252
] ) ;
253
253
}
254
254
You can’t perform that action at this time.
0 commit comments