Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 1ed2d59

Browse files
mgechevalexeagle
authored andcommitted
feat: add firebase deployment
1 parent 91694b5 commit 1ed2d59

5 files changed

Lines changed: 2367 additions & 209 deletions

File tree

‎.firebaserc‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "bazel-angular-io"
4+
}
5+
}

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
bazel-out
33
dist
4+
.firebase

‎firebase.json‎

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

‎package.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"browserify": "16.2.3",
4141
"clang-format": "1.2.4",
4242
"core-js": "2.6.5",
43+
"firebase-tools": "^6.7.1",
4344
"husky": "0.14.3",
4445
"named-amd": "1.0.0",
4546
"protractor": "6.0.0",
@@ -49,6 +50,7 @@
4950
"scripts": {
5051
"build": "bazel build //src:bundle",
5152
"serve": "ibazel run //src:devserver",
53+
"deploy": "ng build && firebase deploy",
5254
"serve-prod": "bazel run //src:prodserver",
5355
"e2e": "bazel test //e2e:all",
5456
"test": "bazel test //src/...",

0 commit comments

Comments
 (0)