Skip to content

Commit

Permalink
Feat: Add firebase hosting and ngx-env/builder to manage secret varia…
Browse files Browse the repository at this point in the history
…bles
  • Loading branch information
Maurog-rgba committed Sep 7, 2024
1 parent 0e80fbb commit 579fb16
Show file tree
Hide file tree
Showing 8 changed files with 2,234 additions and 285 deletions.
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "m-auro-portfolio"
}
}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ yarn-error.log
/libpeerconnection.log
testem.log
/typings
firebase-debug.log
.firebase

# System files
.DS_Store
Thumbs.db
.angular
.vscode
.vscode
.env
10 changes: 5 additions & 5 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"builder": "@ngx-env/builder:application",
"options": {
"outputPath": "dist/portfolio",
"index": "src/index.html",
Expand Down Expand Up @@ -64,7 +64,7 @@
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@ngx-env/builder:dev-server",
"configurations": {
"production": {
"buildTarget": "portfolio:build:production"
Expand All @@ -76,13 +76,13 @@
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"builder": "@ngx-env/builder:extract-i18n",
"options": {
"buildTarget": "portfolio:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"builder": "@ngx-env/builder:karma",
"options": {
"polyfills": [
"zone.js",
Expand All @@ -106,4 +106,4 @@
"cli": {
"analytics": "f00e9fad-529a-41ab-b60a-c33b62b9aa36"
}
}
}
12 changes: 12 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"hosting": {
"public": "dist/portfolio/browser",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
},
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
]
}
Loading

0 comments on commit 579fb16

Please sign in to comment.