-
Notifications
You must be signed in to change notification settings - Fork 480
Bring back modern angular builder for dotcms-ui #34539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,14 +6,19 @@ | |
| "prefix": "dot", | ||
| "targets": { | ||
| "build": { | ||
| "executor": "@nx/angular:browser-esbuild", | ||
| "executor": "@angular-devkit/build-angular:application", | ||
| "outputs": ["{options.outputPath.base}"], | ||
| "options": { | ||
| "baseHref": "./", | ||
| "outputPath": "dist/apps/dotcms-ui", | ||
| "outputPath": { | ||
| "base": "dist/apps/dotcms-ui", | ||
| "browser": "" | ||
| }, | ||
| "index": "apps/dotcms-ui/src/index.html", | ||
| "main": "apps/dotcms-ui/src/main.ts", | ||
| "polyfills": "apps/dotcms-ui/src/polyfills.ts", | ||
| "browser": "apps/dotcms-ui/src/main.ts", | ||
| "polyfills": ["apps/dotcms-ui/src/polyfills.ts"], | ||
| "tsConfig": "apps/dotcms-ui/tsconfig.app.json", | ||
| "inlineStyleLanguage": "scss", | ||
| "allowedCommonJsDependencies": [ | ||
| "lodash", | ||
| "dragula", | ||
|
|
@@ -67,19 +72,11 @@ | |
| "node_modules/primeng/resources/primeng.min.css", | ||
| "node_modules/gridstack/dist/gridstack.min.css" | ||
| ], | ||
| "scripts": [ | ||
| "node_modules/prismjs/prism.js", | ||
| "node_modules/prismjs/components/prism-css.min.js", | ||
| "node_modules/prismjs/components/prism-typescript.min.js", | ||
| "node_modules/prismjs/components/prism-bash.min.js", | ||
| "node_modules/clipboard/dist/clipboard.min.js" | ||
| ], | ||
| "scripts": [], | ||
| "stylePreprocessorOptions": { | ||
| "includePaths": ["libs/dotcms-scss/angular"] | ||
| }, | ||
| "vendorChunk": true, | ||
| "extractLicenses": false, | ||
| "buildOptimizer": false, | ||
| "sourceMap": true, | ||
| "optimization": false, | ||
| "namedChunks": true | ||
|
|
@@ -97,8 +94,6 @@ | |
| "sourceMap": false, | ||
| "namedChunks": false, | ||
| "extractLicenses": true, | ||
| "vendorChunk": false, | ||
| "buildOptimizer": true, | ||
| "budgets": [ | ||
| { | ||
| "type": "initial", | ||
|
|
@@ -119,8 +114,6 @@ | |
| "optimization": false, | ||
| "sourceMap": false, | ||
| "namedChunks": false, | ||
| "vendorChunk": true, | ||
| "buildOptimizer": false, | ||
| "extractLicenses": false, | ||
| "fileReplacements": [], | ||
|
Comment on lines
114
to
118
|
||
| "progress": false, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
outputsis set to{options.outputPath.base}, butoutputPathis not consistently an object across configurations (e.g.,developmentoverrides it with a string). This can break Nx output tracking/caching and may fail option validation depending on the builder schema. KeepoutputPaththe same type in all configurations (either always a string, or always an object) and makeoutputsreference the correct path accordingly.