Skip to content
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

Update to Angular 18 and standalone API #247

Merged
merged 34 commits into from
Oct 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
f7c362a
build: update clr for angular update
boeckMt Oct 4, 2024
6f806fd
BREAKING CHANGE: update to angular 18
boeckMt Oct 7, 2024
4c75c99
BREAKING CHANGE: refactor cookie-alert to standalone
boeckMt Oct 11, 2024
bc49617
fix: type error in template
boeckMt Oct 11, 2024
db24a03
fix: update styles for clr v17
boeckMt Oct 11, 2024
7e16e12
fix: core-ui schemantic ts config no baseUrl
boeckMt Oct 11, 2024
e44a98f
fix: core-ui, icons, replace not found import from cds
boeckMt Oct 11, 2024
0f3ba73
BREAKING CHANGE: refactor core-ui to standalone
boeckMt Oct 11, 2024
4a79d5f
BREAKING CHANGE: refactor core-ui schematics and layer-control to sta…
boeckMt Oct 11, 2024
194fb9a
BREAKING CHANGE: refactor map-ol to standalone
boeckMt Oct 14, 2024
1c3220c
fix: icon shapes in demo from update ng 17
boeckMt Oct 14, 2024
ae656de
BREAKING CHANGE: refactor map-cesium to standalone
boeckMt Oct 14, 2024
9ced053
BREAKING CHANGE: refactor map-maplibre to standalone
boeckMt Oct 14, 2024
e7b4a4f
BREAKING CHANGE: refactor map-three to standalone
boeckMt Oct 14, 2024
5ce22fe
BREAKING CHANGE: refactor map-tools to standalone
boeckMt Oct 14, 2024
59240e2
BREAKING CHANGE: refactor services-layers to standalone
boeckMt Oct 14, 2024
ac48c2d
BREAKING CHANGE: refactor services-map-state to standalone
boeckMt Oct 14, 2024
53ba3a6
BREAKING CHANGE: refactor services-ogc to standalone
boeckMt Oct 14, 2024
44ac68b
BREAKING CHANGE: refactor services-util-store to standalone
boeckMt Oct 14, 2024
6ea37b8
BREAKING CHANGE: refactor user-info to standalone
boeckMt Oct 14, 2024
424abef
docs: refactor tutorials to standalone
boeckMt Oct 14, 2024
cd4092a
refactor: demos to standalone api
boeckMt Oct 14, 2024
26846b7
build: update jasmine to 5
boeckMt Oct 14, 2024
e3dcf0a
refactor: to angular control flow syntax
boeckMt Oct 14, 2024
b50f868
fix: cds icon direction and update of @angular/cdk
boeckMt Oct 14, 2024
b525013
fix: datagrid from migration to control flow syntax
boeckMt Oct 14, 2024
a2c69fe
build: bump a view dependencies
boeckMt Oct 14, 2024
6a97dda
build: pre-version 15.0.0-next.0
boeckMt Oct 14, 2024
832a421
fix: dimension switch
lucas-angermann Oct 18, 2024
79ee484
fix: do not import libs relative - errors with build dist
boeckMt Oct 21, 2024
7ccb75e
fix: Schematics transpile after build
boeckMt Oct 21, 2024
f314883
fix: map-maplibre relativ module paths
lucas-angermann Oct 22, 2024
291a3ee
fix: further relative paths to libs
boeckMt Oct 23, 2024
c682287
build: pre-version 15.0.0-next.1
boeckMt Oct 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Schematics transpile after build
boeckMt committed Oct 21, 2024
commit 7ccb75e66e0b68a1835657b49be43b33d82585d7
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -6,8 +6,9 @@
### Bug Fixes
* **@dlr-eoc/core-ui:**
- Update styles for `@clr 17`
- Schemantic add path in tsconfig no baseUrl
- Schematics add path in tsconfig no baseUrl
- Replace not found import `IconShapeTuple` from `@cds/core`
- Schematics transpile after build because custom buiulder was removed in [v14.0.0](https://github.com/dlr-eoc/ukis-frontend-libraries/tree/v14.0.0/projects/core-ui/schematics).

* **@dlr-eoc/layer-control:**
- Fix direction of `@cds` icon
3 changes: 2 additions & 1 deletion projects/core-ui/package.json
Original file line number Diff line number Diff line change
@@ -14,7 +14,8 @@
"scripts": {
"build": "ng build core-ui --configuration=production --watch=false",
"schematics:build": "tsc -p tsconfig.schematics.json",
"preschematics:test": "npm run build && npm run schematics:build",
"postbuild": "npm run schematics:build",
"preschematics:test": "npm run build",
"schematics:test": "npx jasmine ../../dist/core-ui/schematics/**/*_spec.js"
},
"ng-add": {
19 changes: 16 additions & 3 deletions scripts/library/index.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
* node scripts/projectsVersion.js -l
*/

import { fork } from 'child_process';
import { fork, spawn } from 'child_process';
import { join } from 'path';
import { existsSync } from 'fs';
import { Command } from 'commander';
@@ -112,8 +112,21 @@ function runBuilds(offset = 0, projects) {
const project = projects[offset];
const cliArgs = ['build', '--configuration=production', '--watch=false', project];
if (project) {
console.log(consoleLogColors.Bright, `---------------------->>> ${offset + 1}: run ng ${cliArgs.join(' ')}`);
const child = fork(`${__dirname}/run-ng.js`, cliArgs);

const packageJson: IPackageJSON = require(join(CWD, ANGULARJSON.projects[project].root, 'package.json'));
let child = null;
if(packageJson && packageJson.scripts && packageJson.scripts['build']){
const spawnCliArgs = ['run', 'build', `--workspace=projects/${project}`];
console.log(consoleLogColors.Bright, `---------------------->>> ${offset + 1}: npm ${spawnCliArgs.join(' ')}`);
let command = 'npm';
if (process.platform !== 'win32') {
command = 'npm.cmd'
}
child = spawn(command, spawnCliArgs, { stdio: "inherit", shell: true });
}else{
console.log(consoleLogColors.Bright, `---------------------->>> ${offset + 1}: run ng ${cliArgs.join(' ')}`);
child = fork(`${__dirname}/run-ng.js`, cliArgs);
}
child.on('close', (code, signal) => {
offset++;
if (offset >= projects.length) {