Skip to content

Commit ffb128c

Browse files
committed
docs: add script to build and deploy API docs to firebase hosting
1 parent e376c99 commit ffb128c

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules/
22
dist/
3+
docs/api/
34
typings/
45
npm-debug.log
56
.idea/

docs/firebase.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"firebase": "angular-fire-2",
3+
"public": ".",
4+
"redirects": [
5+
{
6+
"source": "/",
7+
"destination": "/api",
8+
"type": 302
9+
}
10+
],
11+
"ignore": [
12+
"firebase.json",
13+
"**/.*",
14+
"**/node_modules/**"
15+
]
16+
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "./dist/angularfire2.js",
66
"scripts": {
77
"test": "npm run build; karma start",
8+
"docs": "typedoc --out docs/api/ --module commonjs --mode modules --name AngularFire2 src",
89
"build": "rm -rf dist; tsc && cp package.json README.md LICENSE .npmignore dist/",
910
"postbuild": "node tools/rewrite-published-package.js",
1011
"postinstall": "typings install; webdriver-manager update",
@@ -54,6 +55,7 @@
5455
"systemjs-builder": "^0.15.7",
5556
"traceur": "0.0.96",
5657
"tsd": "^0.6.5",
58+
"typedoc": "github:jeffbcross/typedoc",
5759
"typescript": "1.7.5",
5860
"typings": "^0.6.2",
5961
"zone.js": "0.5.15"

src/angularfire2.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ export const WORKER_RENDER_FIREBASE_PROVIDERS: any[] = [
6363
}),
6464
MessageBasedFirebaseAuth
6565
];
66-
66+
/**
67+
* Used to define the default Firebase root location to be
68+
* used throughout an application.
69+
*/
6770
export const defaultFirebase = (url: string): Provider => {
6871
return provide(FirebaseUrl, {
6972
useValue: url

0 commit comments

Comments
 (0)