-
Notifications
You must be signed in to change notification settings - Fork 82
Build angular from source #160
Build angular from source #160
Conversation
|
Build & e2e working. Still have a karma test failure with a long call stack that I haven't looked into yet. |
|
Karma test failure resolved |
|
Hmmm. Looks like the added memory load of building angular is crashing the JVM again. Lowered the memory usage in bazelrc some more. |
|
For reference: without the |
|
@gregmagolan this PR fix the ": Error: Could not resolve ./router.ngfactory " error ??? |
|
@jorgeucano Yes. This PR resolves angular/angular#24521 which was introduced in Angular 6.0.5. |
.circleci/config.yml
Outdated
|
|
||
| # Install the dependencies from NPM | ||
| - run: bazel run @nodejs//:yarn install | ||
| # TODO(gmagolan): use `bazel run :install` once bootstrap issue resolved |
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.
file an issue to reference here
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.
which repo?
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.
| actual = "@nodejs//:yarn", | ||
| ) | ||
|
|
||
| alias( |
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.
maybe a comment that this is the place ts_library will look by default, allows us to omit explicit tsconfig attributes?
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.
👍
WORKSPACE
Outdated
| node_repositories(package_json = ["//:package.json"]) | ||
|
|
||
| # 0.11.3: proper module resolution & check_rules_nodejs_version | ||
| check_rules_nodejs_version("0.11.3") |
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.
yeah users shouldn't need to do transitive checks
tools/bazel.rc
Outdated
| test --test_output=errors | ||
|
|
||
| ################################ | ||
| # Temporary Settings for Ivy # |
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.
I mean, change the comment, ppl will think this means we are enabling Ivy in legacy mode
| @@ -0,0 +1,11 @@ | |||
| const protractorUtils = require('@angular/bazel/protractor-utils'); | |||
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.
since this repo is the canonical example, could you add more explanatory comments about when this file executes and how it relates to the protractor rule and the code under test?
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.
👍
| srcs = glob(["*.ts"]), | ||
| ) | ||
|
|
||
| protractor_web_test_suite( |
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.
maybe we should add comments with links to API docs now that they are published
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.
where did those get published to?
| @@ -1,3 +1,5 @@ | |||
| import 'tslib'; | |||
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.
maybe something in Angular should depend on it. Who actually uses a symbol that requires tslib to be present? It's related to the --noHelpers flag in the tsconfig right?
No description provided.