Skip to content

Commit

Permalink
add generated content files during build (#134)
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Mollik <[email protected]>
  • Loading branch information
cre8 authored Dec 23, 2024
1 parent 97133b2 commit 1af0044
Show file tree
Hide file tree
Showing 33 changed files with 4,446 additions and 6,782 deletions.
4 changes: 4 additions & 0 deletions viewer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
.env
newsletter.html

src/app/wallets/wallets-data.generated.ts
src/app/dependencies/dependencies-data.generated.ts
src/app/case-studies/case-studies-data.generated.ts

# Compiled output
/dist
/tmp
Expand Down
43 changes: 41 additions & 2 deletions viewer/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"prerender": true,
"ssr": {
"entry": "server.ts"
}
},
"fileReplacements": []
},
"configurations": {
"production": {
Expand All @@ -51,7 +52,21 @@
"maximumError": "4kb"
}
],
"outputHashing": "all"
"outputHashing": "all",
"fileReplacements": [
{
"replace": "src/app/wallets/wallets-data.ts",
"with": "src/app/wallets/wallets-data.generated.ts"
},
{
"replace": "src/app/dependencies/dependencies-data.ts",
"with": "src/app/dependencies/dependencies-data.generated.ts"
},
{
"replace": "src/app/case-studies/case-studies-data.ts",
"with": "src/app/case-studies/case-studies-data.generated.ts"
}
]
},
"ssr": {
"budgets": [
Expand All @@ -71,6 +86,18 @@
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.ssr.ts"
},
{
"replace": "src/app/wallets/wallets-data.ts",
"with": "src/app/wallets/wallets-data.generated.ts"
},
{
"replace": "src/app/dependencies/dependencies-data.ts",
"with": "src/app/dependencies/dependencies-data.generated.ts"
},
{
"replace": "src/app/case-studies/case-studies-data.ts",
"with": "src/app/case-studies/case-studies-data.generated.ts"
}
]
},
Expand All @@ -82,6 +109,18 @@
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.development.ts"
},
{
"replace": "src/app/wallets/wallets-data.ts",
"with": "src/app/wallets/wallets-data.generated.ts"
},
{
"replace": "src/app/dependencies/dependencies-data.ts",
"with": "src/app/dependencies/dependencies-data.generated.ts"
},
{
"replace": "src/app/case-studies/case-studies-data.ts",
"with": "src/app/case-studies/case-studies-data.generated.ts"
}
]
}
Expand Down
Loading

0 comments on commit 1af0044

Please sign in to comment.