Skip to content

Commit 41d26fb

Browse files
Merge branch 'master' into docs/deploy-getting-started
2 parents a33270d + c57cef4 commit 41d26fb

File tree

103 files changed

+1961
-1682
lines changed

Some content is hidden

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

103 files changed

+1961
-1682
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ branches:
1515

1616
install: yarn
1717

18-
script: yarn build && yarn test:all
18+
script: yarn build && yarn test:all && yarn lint

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ Providing the following information will increase the chances of your issue bein
8080
* **Angular Version** - what version of Angular, Firebase, and AngularFire are you using?
8181
* **Motivation for or Use Case** - explain what are you trying to do and why the current behavior is a bug for you
8282
* **Browsers and Operating System** - is this a problem with all browsers?
83-
* **Reproduce the Error** - provide a live example (using [Plunker][plunker],
84-
[JSFiddle][jsfiddle] or [Runnable][runnable]) or a unambiguous set of steps
83+
* **Reproduce the Error** - provide a live example (using StackBlitz (https://stackblitz.com/edit/angular-fire-start))
84+
or a unambiguous set of steps
8585
* **Related Issues** - has a similar issue been reported before?
8686
* **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
8787
causing the problem (line of code or commit)

ISSUE_TEMPLATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ be fixed in the latest versions. -->
4646

4747
### How to reproduce these conditions
4848

49-
**Failing test unit, Plunkr, or JSFiddle demonstrating the problem**
49+
**Failing test unit, Stackblitz demonstrating the problem**
5050

5151
<!--
5252
Provide a failing test unit, or create a minimal, complete, and
53-
verifiable example (http://stackoverflow.com/help/mcve) using either
54-
Plunker (http://plnkr.co/) or JSFiddle (https://jsfiddle.net/).
53+
verifiable example (http://stackoverflow.com/help/mcve) using
54+
StackBlitz (https://stackblitz.com/edit/angular-fire-start).
5555
-->
5656

5757
**Steps to set up and reproduce**
@@ -60,7 +60,7 @@ Plunker (http://plnkr.co/) or JSFiddle (https://jsfiddle.net/).
6060

6161
**Sample data and security rules**
6262

63-
<-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
63+
<!-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->
6464

6565
### Debug output
6666

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class MyApp {
5151

5252
[Contributing](CONTRIBUTING.md)
5353

54-
[Stackblitz Template](https://stackblitz.com/edit/angular-1iment) - Remember to set your Firebase configuration in `app/app.module.ts`.
54+
[Stackblitz Template](https://stackblitz.com/edit/angular-fire-start) - Remember to set your Firebase configuration in `app/app.module.ts`.
5555

5656
[Upgrading to v6.0? Check out our guide.](docs/version-6-upgrade.md)
5757

docs/auth/router-guards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const belongsToAccount = (next) => hasCustomClaim(`account-${next.params.id}`);
3939
export const routes: Routes = [
4040
{ path: '', component: AppComponent },
4141
{ path: 'login', component: LoginComponent, canActivate: [AngularFireAuthGuard], data: { authGuardPipe: redirectLoggedInToItems }},
42-
{ path: 'items', component: ItemListComponent, canActivate: [AngularFireAuthGuard], data: { authGuardPipe: redirectUnauthorizedToLogin },
42+
{ path: 'items', component: ItemListComponent, canActivate: [AngularFireAuthGuard], data: { authGuardPipe: redirectUnauthorizedToLogin }},
4343
{ path: 'admin', component: AdminComponent, canActivate: [AngularFireAuthGuard], data: { authGuardPipe: adminOnly }},
4444
{ path: 'accounts/:id', component: AdminComponent, canActivate: [AngularFireAuthGuard], data: { authGuardPipe: belongsToAccount }}
4545
];

docs/firestore/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ import { Observable } from 'rxjs';
191191
import { map } from 'rxjs/operators';
192192

193193
export interface AccountDeposit { description: string; amount: number; }
194-
export interface AccountDepoistId extends AccountDeposit { id: string; }
194+
export interface AccountDepositId extends AccountDeposit { id: string; }
195195

196196
@Component({
197197
selector: 'app-root',

docs/functions/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ import { AngularFireFunctionsModule, ORIGIN } from '@angular/fire/functions';
110110
],
111111
...
112112
providers: [
113-
{ provide: ORIGIN, useValue: 'http://localhost:5005' }
113+
{ provide: ORIGIN, useValue: 'http://localhost:5001' }
114114
]
115115
})
116116
export class AppModule {}

docs/install-and-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ ng serve
146146

147147
Your Angular app will compile and serve locally, visit it we should see an empty list.
148148

149-
In another tab [start adding data to an `items` collection in Firestore](https://firebase.corp.google.com/project/_/database/firestore/data). *As we're not authenticating users yet, be sure to start Firestore in **test mode** or allow reading from the `items` collection in Security Rules (`allow read: if true`).*
149+
In another tab [start adding data to an `items` collection in Firestore](https://console.firebase.google.com/project/_/database/firestore/data). *As we're not authenticating users yet, be sure to start Firestore in **test mode** or allow reading from the `items` collection in Security Rules (`allow read: if true`).*
150150

151151
Once you've created a `items` collection and are inserting documents, you should see data streaming into your Angular application.
152152

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"build": "tsc tools/build.ts; node ./tools/build.js",
1717
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 1"
1818
},
19+
"husky": {
20+
"hooks": {
21+
"pre-commit": "npm run lint"
22+
}
23+
},
1924
"schematics": "./dist/packages-dist/collection.json",
2025
"builders": "./dist/packages-dist/builders.json",
2126
"keywords": [
@@ -49,6 +54,7 @@
4954
"firebase-tools": "^8.0.0",
5055
"fs-extra": "^8.0.1",
5156
"fuzzy": "^0.1.3",
57+
"husky": "^4.2.5",
5258
"inquirer": "^6.2.2",
5359
"inquirer-autocomplete-prompt": "^1.0.1",
5460
"rxfire": "^3.9.7",

sample/server.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import { APP_BASE_HREF } from '@angular/common';
99
import { existsSync } from 'fs';
1010

1111
// Polyfill XMLHttpRequest and WS for Firebase
12-
global['XMLHttpRequest'] = require("xhr2");
13-
global['WebSocket'] = require("ws");
12+
/* tslint:disable:no-string-literal */
13+
global['XMLHttpRequest'] = require('xhr2');
14+
global['WebSocket'] = require('ws');
15+
/* tslint:enable:no-string-literal */
1416

1517
// The Express app is exported so that it can be used by serverless Functions.
1618
export function app() {

0 commit comments

Comments
 (0)