-
Notifications
You must be signed in to change notification settings - Fork 26.6k
refactor(compiler): remove old ngtools api and add listLazyRoutes to … #19836
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
Conversation
packages/compiler-cli/src/main.ts
Outdated
@@ -28,15 +28,15 @@ export function main( | |||
let {project, rootNames, options, errors: configErrors, watch, emitFlags} = | |||
config || readNgcCommandLineAndConfiguration(args); | |||
if (configErrors.length) { | |||
return reportErrorsAndExit(configErrors, consoleError); | |||
return reportErrorsAndExit(configErrors, undefined, consoleError); |
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.
Put a /* options */
in front of undefined
to indicate what parameter you are skipping.
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
You can preview a2d6859 at https://pr19836-a2d6859.ngbuilds.io/. |
Fails now on the expected error |
a2d6859
to
2fcfa6c
Compare
You can preview 2fcfa6c at https://pr19836-2fcfa6c.ngbuilds.io/. |
8ee2997
to
aa5802d
Compare
You can preview 8ee2997 at https://pr19836-8ee2997.ngbuilds.io/. |
aa5802d
to
45fbada
Compare
You can preview 45fbada at https://pr19836-45fbada.ngbuilds.io/. |
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
45fbada
to
a54e059
Compare
You can preview a54e059 at https://pr19836-a54e059.ngbuilds.io/. |
a54e059
to
f878222
Compare
You can preview f878222 at https://pr19836-f878222.ngbuilds.io/. |
f878222
to
b1123f6
Compare
You can preview b1123f6 at https://pr19836-b1123f6.ngbuilds.io/. |
b1123f6
to
8efa16e
Compare
You can preview 8efa16e at https://pr19836-8efa16e.ngbuilds.io/. |
8efa16e
to
4d0161c
Compare
You can preview 4d0161c at https://pr19836-4d0161c.ngbuilds.io/. |
4d0161c
to
b164603
Compare
You can preview b164603 at https://pr19836-b164603.ngbuilds.io/. |
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
Regarding the approval for root: I talked to @IgorMinar about them, so this PR is good to go. |
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
This is also green in G3. |
…new api Usages of `NgTools_InternalApi_NG_2` from `@angular/compiler-cli` will now throw an error. Adds `listLazyRoutes` to `@angular/compiler-cli/ngtools2.ts` for getting the lazy routes of a `ng.Program`.
…f the `rootDir`. Fixes angular#19718
b164603
to
52a8f2b
Compare
You can preview 52a8f2b at https://pr19836-52a8f2b.ngbuilds.io/. |
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
@@ -7,7 +7,7 @@ | |||
"license": "MIT", | |||
"scripts": { | |||
"aio-use-local": "node tools/ng-packages-installer overwrite . --debug --ignore-packages @angular/service-worker", | |||
"aio-use-npm": "node tools/ng-packages-installer restore .", | |||
"aio-use-npm": "node tools/ng-packages-installer restore . && yarn upgrade @angular/cli@1.3.0", |
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.
What is this change for? Is this supposed to use the same version as currently specified in the lockfile?
Can we remove the changes in aio/package.json
once we upgrade to @angular/cli@1.5.0-rc.2
(or higher)?
once we upgrade to cli rc.3 we can remove this bit.
…On Tue, Oct 24, 2017 at 12:10 AM George Kalpakas ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In aio/package.json
<#19836 (comment)>:
> @@ -7,7 +7,7 @@
"license": "MIT",
"scripts": {
"aio-use-local": "node tools/ng-packages-installer overwrite . --debug --ignore-packages @angular/service-worker",
- "aio-use-npm": "node tools/ng-packages-installer restore .",
+ "aio-use-npm": "node tools/ng-packages-installer restore . && yarn upgrade @***@***.***",
What is this change for? Is this supposed to use the same version as
currently specified in the lockfile?
Can we remove the changes in aio/package.json once we upgrade to
@***@***.*** (or higher)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19836 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AANM6MTW9-H2O2dnBMaXLHkTh0KwhtRNks5svY14gaJpZM4QBD85>
.
|
Replacing the old API. We keep the old API because we need it for JIT (with either --aot=false or unittests). Depends on angular/angular#19836
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…new api
Usages of
NgTools_InternalApi_NG_2
from@angular/compiler-cli
will nowthrow an error.
Adds
listLazyRoutes
to@angular/compiler-cli/ngtools2.ts
for gettingthe lazy routes of a
ng.Program
.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?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information