Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
chore: switch to new vite-based angular builder (#240)
Browse files Browse the repository at this point in the history
chore: clean up angular.json
  • Loading branch information
rmoesbergen authored Apr 22, 2024
1 parent 6551b65 commit 5564ff9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 37 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN yarn install --frozen-lockfile && yarn build

FROM nginx:stable

COPY --from=builder /build/dist /usr/share/nginx/html
COPY --from=builder /build/dist/browser /usr/share/nginx/html
38 changes: 2 additions & 36 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser-esbuild",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/",
"index": "src/index.html",
"main": "src/main.ts",
"browser": "src/main.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
Expand Down Expand Up @@ -96,8 +96,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -123,8 +121,6 @@
"sourceMap": true,
"namedChunks": false,
"extractLicenses": false,
"vendorChunk": false,
"buildOptimizer": false,
"budgets": [
{
"type": "initial",
Expand Down Expand Up @@ -164,41 +160,11 @@
"buildTarget": "leaphy-client:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": ["src/favicon.ico", "src/assets"],
"styles": [
"src/styles.scss",
"src/theme.scss",
"./node_modules/bootstrap/@fortawesome/fontawesome-free/css/all.css"
],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
},
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "leaphy-client:serve"
},
"configurations": {
"production": {
"devServerTarget": "leaphy-client:serve:production"
},
"dev": {
"devServerTarget": "leaphy-client:serve:dev"
}
}
}
}
}
Expand Down

0 comments on commit 5564ff9

Please sign in to comment.