Skip to content

Commit

Permalink
ci: change build configuration for new custom domain
Browse files Browse the repository at this point in the history
  • Loading branch information
nsbarsukov committed Aug 8, 2023
1 parent c61e272 commit 1dacfe5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 38 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Deploy
on:
pull_request:
push:
branches:
- main
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"serve:ssr": "node dist/demo/server/main.js",
"serve:prerender": "http-server dist/demo/browser",
"build:ssr": "nx run demo:server:production",
"build:prerender": "nx run demo:prerender:production",
"build:prerender": "nx run demo:prerender",
"*** Cypress ***": "",
"cy:open": "cypress open --project ./projects/demo-integrations/",
"cy:run": "cypress run --project ./projects/demo-integrations/ --browser chrome",
Expand Down
40 changes: 3 additions & 37 deletions projects/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,30 +68,6 @@
}
]
},
"github": {
"baseHref": "/maskito/",
"fileReplacements": [
{
"replace": "projects/demo/src/environments/environment.ts",
"with": "projects/demo/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
},
"development": {}
},
"defaultConfiguration": "production"
Expand All @@ -104,9 +80,9 @@
"echo 'Github pages require special baseHref + 404.html'",
"echo 'Read more: https://angular.io/guide/deployment#deploy-to-github-pages'",
"echo ------",
"nx build -c github",
"nx build -c production",
"cp dist/demo/browser/index.html dist/demo/browser/404.html",
"nx run demo:prerender -c github"
"nx run demo:prerender"
]
}
},
Expand Down Expand Up @@ -202,11 +178,7 @@
"executor": "@nrwl/workspace:run-commands",
"options": {
"command": "ts-node ./scripts/generate-demo-routes-file.ts"
},
"configurations": {
"github": {}
},
"defaultConfiguration": "github"
}
},
"prerender": {
"executor": "@nguniversal/builders:prerender",
Expand All @@ -215,12 +187,6 @@
"serverTarget": "demo:server:production",
"routesFile": "./projects/demo/routesFile.txt"
},
"configurations": {
"production": {},
"github": {
"browserTarget": "demo:build:github"
}
},
"dependsOn": [
{
"target": "generate-routes-file",
Expand Down

0 comments on commit 1dacfe5

Please sign in to comment.