Skip to content

Commit a5d2845

Browse files
committed
demo(app): added firebase hosting integration
1 parent ddff485 commit a5d2845

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

demo/.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "ng-bootstrap-auth-firebaseui"
4+
}
5+
}

demo/firebase.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"hosting": {
3+
"public": "dist/browser",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "/public/**",
12+
"destination": "/public.html"
13+
},
14+
{
15+
"source": "**",
16+
"destination": "/index.html"
17+
}
18+
]
19+
}
20+
}

demo/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"start": "ng serve",
99
"serve:prod": "ng serve --prod",
1010
"build": "ng build",
11+
"build:doc": "cd ../ && gulp build:doc",
12+
"build:prod": "ng build --prod ",
13+
"deploy:firebase": "npm run build:prod && npm run build:doc && firebase deploy",
1114
"test": "jest",
1215
"lint": "ng lint",
1316
"e2e": "ng e2e",

0 commit comments

Comments
 (0)