-
Notifications
You must be signed in to change notification settings - Fork 12k
feat(deps): Unblock the version of Angular to >= 2.3 #3569
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
"@angular/core": "2.2.3", | ||
"@angular/compiler": "~2.3.1", | ||
"@angular/compiler-cli": "~2.3.1", | ||
"@angular/core": "~2.3.1", | ||
"@angular/tsc-wrapped": "0.4.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.
0.5.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.
Done.
const split = entry.split('#'); | ||
return new ModuleRoute(split[0], split[1]); | ||
} | ||
// We do not have an include because tsconfig can be used for that. |
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.
// Use tsconfig to include
(positive form)
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.
@@ -93,7 +65,12 @@ export class AotPlugin implements Tapable { | |||
get compilerHost() { return this._compilerHost; } | |||
get compilerOptions() { return this._compilerOptions; } | |||
get done() { return this._donePromise; } | |||
get entryModule() { return this._entryModule; } | |||
get entryModule() { | |||
const splitted = this._entryModule.split('#'); |
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.
const {path, className} = this._entryModule.split('#');
return {path, className: className || 'default'};
const basePathPattern = '(' + basePath.replace(/\\/g, '/') | ||
.replace(/[\-\[\]\/{}()+?.\\^$|*]/g, '\\$&') + ')?'; | ||
pattern = pattern | ||
// Replace windows path separators to forward slashes. |
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.
with
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.
Donezzzo
"@angular/forms": "~2.3.1", | ||
"@angular/http": "~2.3.1", | ||
"@angular/platform-browser": "~2.3.1", | ||
"@angular/platform-browser-dynamic": "~2.3.1", | ||
"@angular/router": "3.2.3", | ||
"core-js": "^2.4.1", | ||
"rxjs": "5.0.0-beta.12", |
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.
update?
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.
"@angular/forms": "~2.3.1", | ||
"@angular/http": "~2.3.1", | ||
"@angular/platform-browser": "~2.3.1", | ||
"@angular/platform-browser-dynamic": "~2.3.1", | ||
"@angular/router": "3.2.3", | ||
"core-js": "^2.4.1", | ||
"rxjs": "5.0.0-beta.12", | ||
"ts-helpers": "^1.1.1", | ||
"zone.js": "^0.6.23" |
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.
update
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.
@@ -59,6 +60,10 @@ const BuildCommand = Command.extend({ | |||
} | |||
|
|||
const project = this.project; | |||
|
|||
// Check angular version. | |||
Version.assertAngularVersionIs2_3_1OrBetter(project.root); |
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 would say "Higher" :)
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.
Good point.
@@ -45,6 +45,8 @@ export class Version { | |||
isReleaseCandidate() { return this.qualifier == 'rc'; } | |||
isKnown() { return this._version !== null; } | |||
|
|||
isLocal() { return this.isKnown() ? path.isAbsolute(this._version) : false; } |
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.
return this.isKnown() && path.isAbsolute(this._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.
Done.
upgrade your angular version, e.g. by running: | ||
|
||
npm install @angular/core@latest | ||
` + '\n'))); |
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.
nit ...
+ '\n' ?
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.
stripIndents
remove \n
s so we have to concatenate the string.
lgtm with a few comments |
Thanks a lot @vicb ! |
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. |
This includes using a private API not published.
Also added a SHA option when running e2e to install a SHA of Angular. This is the first 7 digits of an angular SHA that is on master.