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

docs(examples): upgrade Angular to v15 #2540

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

petermetz
Copy link
Contributor

@petermetz petermetz commented Jul 6, 2023

  1. Upgraded from Angular v14 to v15 for both GUI packages that use it.
  2. Upgraded the Typescript compiler project-wide to 4.8.4
  3. Due to 2) There was a change needed in the file
    examples/cactus-example-discounted-asset-trade/transaction-fabric.ts
    which introduces a constraint on the T type parameter.
  4. Disabled the staged files linting because right now ESLint is broken
    due to our Typescript version being >=4.8.0 (and upgrading it was not
    an option because then it is broken due to ESM issues...)
  5. Cleaned out a lot of the unused dev dependencies of the front-end
    packages where angular was upgraded. These dependencies were related to
    end-to-end browser testing which we haven't set up yet to be executed
    because all the front-end packages are just example code that - while
    important to test - does not have the highest priority in this sense.
  6. Set the rootDir property in the electricity trade example's tsconfig.json
    file to the standard value (./) because without it the new tsc compiler
    version seems to be putting the compiled source files in a different
    location by default (probably an accidental breaking change on the compiler's
    part or just a lack of my understanding of how the configuration of it
    should work). With the rootDir explicitly specified, it appears to be
    compiling the files in the correct location as before.

Fixes #2229

Signed-off-by: Peter Somogyvari peter.somogyvari@accenture.com

@petermetz
Copy link
Contributor Author

petermetz commented Jul 6, 2023

@outSH / @izuru0 Please take a look at point 3) and 6) specifically (and the related change that I had to make) and let me know if it's OK!

@takeutak
Copy link
Contributor

@petermetz Sorry for our slow review. Now I'm asking Izuru to review this PR. Please wait for a while?

Copy link
Contributor

@izuru0 izuru0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@petermetz
Copy link
Contributor Author

@petermetz Sorry for our slow review. Now I'm asking Izuru to review this PR. Please wait for a while?

@takeutak No worries, thank you very much to both you and Izuru!

1. Upgraded from Angular v14 to v15 for both GUI packages that use it.
2. Upgraded the Typescript compiler project-wide to 4.8.4
3. Due to 2) There was a change needed in the file
examples/cactus-example-discounted-asset-trade/transaction-fabric.ts
which introduces a constraint on the T type parameter.
4. Disabled the staged files linting because right now ESLint is broken
due to our Typescript version being >=4.8.0 (and upgrading it was not
an option because then it is broken due to ESM issues...)
5. Cleaned out a lot of the unused dev dependencies of the front-end
packages where angular was upgraded. These dependencies were related to
end-to-end browser testing which we haven't set up yet to be executed
because all the front-end packages are just example code that - while
important to test - does not have the highest priority in this sense.
6. Set the rootDir property in the electricity trade example's tsconfig.json
file to the standard value (./) because without it the new tsc compiler
version seems to be putting the compiled source files in a different
location by default (probably an accidental breaking change on the compiler's
part or just a lack of my understanding of how the configuration of it
should work). With the rootDir explicitly specified, it appears to be
compiling the files in the correct location as before.
7. De-duplicated the examples/cactus-example-tcs-huawei/tsconfig.json
file's compilerOptions.tsBuildInfoFile property because it was in collision
with the electricity trade example's property of the same name, leading to
the compiler thinking that it had already compiled the package's code
when it has not.

Fixes hyperledger-cacti#2229

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
@petermetz petermetz merged commit e0eec2d into hyperledger-cacti:main Jul 14, 2023
@petermetz petermetz deleted the petermetz/issue2229 branch July 14, 2023 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

docs(examples): upgrade Angular to v15
4 participants