-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix build #90
Conversation
Problem 1
Problem 2
|
Problem 1 angular/angular#35762 -> This is happening on old library tsconfigs with ...
"angularCompilerOptions": {
"enableIvy": false
}
... when running The compiler option ...
"angularCompilerOptions": {
"compilationMode": "partial"
}
... which removes this behaviour is available in |
This reverts commit 0dcae1e.
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.
Alright, that must have been a lot of work - thanks!
I did leave some comments, but they are only for clarification and fixing some typo's - so this PR is being approved immediately. @boeckMt : I'll leave merging to you, in case you want to add some docs about the comments in this review ... but honestly, I think that's optional, because build-processes change quickly anyway.
# You can see what browsers were selected by your queries by running: | ||
# npx browserslist | ||
|
||
> 0.5% | ||
last 2 versions | ||
last 1 Chrome version |
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.
Do we deliberately test only with latest Chrome, but with the two latest Safaris?
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.
This was generated by angular, I only want to update the File because we did not change anything on it.
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.
Roger that! No further questions.
@@ -14,7 +14,7 @@ jobs: | |||
- uses: actions/checkout@v2 | |||
- uses: actions/setup-node@v2 | |||
with: | |||
node-version: 14 | |||
node-version: 15 |
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.
This comment is here only for documentation-purposes: a few days ago we have decided to build against the newest version of node, which might not always be the LTS. You're welcome, future generations!
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.
To switch to this version was only a test, because the build stopped working somehow here eccac77 where only patch versions are changed. Thought it could be something with the cache of actions/setup-node@v2
. At first I tried the newest node version 16 but it didn't work either. It looked like a problem with node-sass
and node but it also doesn't worked after removal.
On the next week I used node 15 and it suddenly worked... I hope GitHub Actions will get better to debug in the future :)
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.
Hm! Well, whatever works. Thanks for the heads up!
@@ -1,13 +1,19 @@ | |||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files | |||
|
|||
import 'zone.js/dist/zone'; |
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.
There are several cases where we're importing zone
alongside testing-zone
for our unit-tests, but I don't see changes to the actual tests. Is this a CI requirement? Is it because we're no longer using karma-coverage-istanbul
? Or because of those new async methods in the e2e tests?
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.
Also generated by angular.
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.
Thanks!
scripts/library/README.md
Outdated
It uses the package scope `@dlr-eoc`, `main package.json` and the angular config file `angular.json`. | ||
|
||
|
||
- To get the list of all projects is reads the the angular config file (angular.json). |
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.
To get the list of all projects it reads the angular config file (angular.json).
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.
done 9fb3013.
scripts/library/README.md
Outdated
|
||
- To get the list of all projects is reads the the angular config file (angular.json). | ||
- To check all dependencies it uses the package scope `@dlr-eoc` and `depcheck`. | ||
- To get the build order it used `depcheck` and `toposort`. |
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.
To get the build order it uses depcheck
and toposort
.
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.
done 57fd125.
Thanks for the review! I have a few changes left, to adjust the workflow and ci scripts to fix |
A new error occurred on npm ERR! need auth You need to authorize this machine using `npm adduser` |
Now it finally worked :) |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
GitHub Actions is currently not publishing any packages to npm because they were built with
ng build --prod=true
which looks as it is not working correctly anymore since the change to"builder": "@angular-devkit/build-angular:ng-packagr"
.See the workflow run https://github.com/dlr-eoc/ukis-frontend-libraries/runs/2903479305?check_suite_focus=true
npm publish...
for more details.Found out that the original problem for the issue was NGCC running over the compiled packages #90 (comment) !
and Issue Number:
What is the new behavior?
NGCC
was removed from the postinstall script. This corrected the build without compiling withNGCC
so the script"scripts":{"prepublishOnly":"node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by NGCC. This is not allowed.\\nPlease delete and rebuild the package, without compiling with NGCC, before attempting to publish.\\nNote that NGCC may have been run by importing this package into another project that is being built with Ivy enabled.\\n')\" && exit 1"}}
is not added anymore to the packages.Further Issue Correct options for depcheck #87 is fixed so depcheck should work correctly now.
The workspace files generated from angular where recreated, so we don't use any old configuration c0b5d81
Add Types for node again to the packages which need them for test and build 532b73b
Update angular to latest version before 12.x
Fixes Problem 2 Fix build #90 (comment)
Does this PR introduce a breaking change?