Skip to content

Commit b46350b

Browse files
committed
Build tests hit ng 7 & 8
1 parent 273afe2 commit b46350b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+20492
-183
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ script:
4444
./node_modules/.bin/karma start --single-run --browsers ChromeHeadlessTravis --reporters mocha &&
4545
yarn test:node &&
4646
node tools/run-typings-test.js &&
47-
cd test/ng-build/ng6 &&
48-
yarn && yarn build:prod
47+
bash ./test/ng-build/build.sh

test/ng-build/build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
cd ng6 && ng build --prod
1+
cd ./test/ng-build/ng6 && yarn && npx ng build --prod &&
2+
cd ../ng7 && yarn && npx ng build --prod &&
3+
cd ../ng8 && yarn && npx ng build --prod

test/ng-build/index.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

test/ng-build/ng6/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"@angular/common": "6.0.1",
1818
"@angular/compiler": "6.0.1",
1919
"@angular/core": "6.0.1",
20+
"@angular/fire": "../../../dist/packages-dist",
2021
"@angular/forms": "6.0.1",
2122
"@angular/http": "6.0.1",
2223
"@angular/platform-browser": "6.0.1",
2324
"@angular/platform-browser-dynamic": "6.0.1",
2425
"@angular/router": "6.0.1",
25-
"@angular/fire": "../../../dist/packages-dist",
2626
"core-js": "^2.4.1",
2727
"rxjs": "^6.0.0",
2828
"zone.js": "^0.8.14"

test/ng-build/ng6/src/app/app.component.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import { FirebaseApp } from '@angular/fire';
33
import { AngularFireDatabase } from '@angular/fire/database';
44
import { AngularFireAuth } from '@angular/fire/auth';
55
import { AngularFirestore } from '@angular/fire/firestore';
6+
import { AngularFireStorage } from '@angular/fire/storage';
7+
import { AngularFireMessaging } from '@angular/fire/messaging';
8+
import { AngularFireFunctions } from '@angular/fire/functions';
69

710
@Component({
811
selector: 'app-root',
@@ -32,8 +35,11 @@ export class AppComponent {
3235
private readonly app: FirebaseApp,
3336
private readonly db: AngularFireDatabase,
3437
private readonly auth: AngularFireAuth,
35-
private readonly afStore: AngularFirestore
38+
private readonly afStore: AngularFirestore,
39+
private readonly storage: AngularFireStorage,
40+
private readonly messaging: AngularFireMessaging,
41+
private readonly functions: AngularFireFunctions
3642
) {
37-
console.log(app, db, auth, afStore);
43+
console.log(app, db, auth, afStore, storage, messaging, functions);
3844
}
3945
}

test/ng-build/ng6/src/app/app.module.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { FirebaseOptionsToken, AngularFireModule } from '@angular/fire';
44
import { AngularFireDatabaseModule } from '@angular/fire/database';
55
import { AngularFireAuthModule } from '@angular/fire/auth';
66
import { AngularFirestoreModule } from '@angular/fire/firestore';
7+
import { AngularFireStorageModule } from '@angular/fire/storage';
8+
import { AngularFireFunctionsModule } from '@angular/fire/functions';
9+
import { AngularFireMessagingModule } from '@angular/fire/messaging';
710

811
import { AppComponent } from './app.component';
912

@@ -23,7 +26,10 @@ import { AppComponent } from './app.component';
2326
}),
2427
AngularFireAuthModule,
2528
AngularFireDatabaseModule,
26-
AngularFirestoreModule
29+
AngularFirestoreModule,
30+
AngularFireStorageModule,
31+
AngularFireMessagingModule,
32+
AngularFireFunctionsModule
2733
],
2834
bootstrap: [AppComponent]
2935
})

0 commit comments

Comments
 (0)