-
Notifications
You must be signed in to change notification settings - Fork 83
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. |
9b77826
to
78b0519
Compare
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. |
9697286
to
e8f0c42
Compare
For reference: without the
|
7c0b7fd
to
ea0f3b6
Compare
ea0f3b6
to
2bb9723
Compare
20de526
to
ba42a32
Compare
ba42a32
to
1f98d61
Compare
@jorgeucano Yes. This PR resolves angular/angular#24521 which was introduced in Angular 6.0.5. |
.circleci/config.yml
Outdated
@@ -60,7 +60,8 @@ jobs: | |||
- run: bazel info release | |||
|
|||
# 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.
BUILD.bazel
Outdated
@@ -5,11 +5,14 @@ alias( | |||
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
@@ -12,3 +12,8 @@ build --strategy=AngularTemplateCompile=worker | |||
build --symlink_prefix=dist/ | |||
|
|||
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.
👍
|
||
ts_library( | ||
name = "e2e", | ||
testonly = 1, | ||
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.