Skip to content

Commit

Permalink
chore(ui): upgrade to angular 16 (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
rclsilver authored Jan 24, 2024
1 parent 2a31fb4 commit 965b145
Show file tree
Hide file tree
Showing 28 changed files with 11,604 additions and 8,233 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ release:

release-utask-lib:
cd ui/dashboard/projects/utask-lib && npm version $(VERSION) --allow-same-version
cd ui/dashboard && npm ci && ng build --prod utask-lib
cd ui/dashboard && npm ci && ng build --configuration production utask-lib
npm publish ui/dashboard/dist/utask-lib --access public

test:
Expand Down
71 changes: 66 additions & 5 deletions ui/dashboard/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,23 @@
"defaultConfiguration": "development"
},
"serve": {
"builder": "@angular-builders/custom-webpack:dev-server",
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"proxyConfig": "proxy.conf.js",
"browserTarget": "utask-ui:build",
"proxyConfig": "/home/proxy.conf.js",
"disableHostCheck": true
},
"configurations": {
"production": {
"browserTarget": "utask-ui:build:production"
},
"development": {
"browserTarget": "utask-ui:build:development"
},
"experimental": {
"browserTarget": "utask-ui:experimental:development"
}
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
Expand Down Expand Up @@ -153,6 +159,59 @@
"devServerTarget": "utask-ui:serve:production"
}
}
},
"experimental": {
"builder": "@angular-devkit/build-angular:browser-esbuild",
"options": {
"outputPath": "dist/utask-ui",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.app.json",
"aot": true,
"assets": [
"src/assets",
{
"glob": "**/*",
"input": "./node_modules/@ant-design/icons-angular/src/inline-svg/",
"output": "/assets/"
},
{
"glob": "ng-zorro-antd.dark.min.css",
"input": "./node_modules/ng-zorro-antd",
"output": "/assets/"
},
{
"glob": "**/*",
"input": "./node_modules/monaco-editor/min/vs",
"output": "/assets/vs/"
}
],
"styles": [
"./node_modules/ng-zorro-antd/ng-zorro-antd.min.css",
"./node_modules/ng-zorro-antd/graph/style/index.css",
"./node_modules/ng-zorro-antd/code-editor/style/index.min.css",
"src/styles.sass"
],
"scripts": [],
"allowedCommonJsDependencies": [
"dagre-d3"
]
},
"configurations": {
"development": {
"buildOptimizer": false,
"optimization": {
"scripts": false,
"styles": false,
"fonts": false
},
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
}
}
}
},
Expand Down Expand Up @@ -197,5 +256,7 @@
}
}
},
"defaultProject": "utask-ui"
"cli": {
"analytics": false
}
}
Loading

0 comments on commit 965b145

Please sign in to comment.