-
Notifications
You must be signed in to change notification settings - Fork 12k
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
feature(universal): add support for Angular Universal #2749
Conversation
This removes the following warning about webpack dependency. npm WARN string-replace-loader@1.0.3 requires a peer of webpack@1.x.x || 2.x.x but none was installed. Close angular#2265
Allows for faster builds, partially addresses angular#1980
…ar#2486) With angular#1814 the `defaults.poll` property was added to angular-cli.json. This configuration setting currently applies to `ng serve` but not `ng test`. This fix adds the poll value to the karma defaults so that if you set `defaults: { poll: 1000 }` it will apply to both `ng serve` and `ng test`.
…ngular#2565) Earlier invalid angular-cli.json yielded only "Error". Now it prints something like: Parsing angular-cli.json failed. Please make sure your angular-cli.json is valid JSON. Error: SyntaxError: Unexpected token s in JSON at position 2 Almost the same message is now also used for the other configuration files (schema and other).
Added FAQ label note, assets note, removed dead links/sections. Fix angular#2411 Close angular#2596
Follow up from angular#2158 Fix angular#2511 Close angular#2611
Can someone give me a hint why this is happening on appvayor:
I tested this code on Windows 10 64-bit (Node 4/6), Linux Mint 17 (Node 4/6), OSX (Node 4/6) and it worked. Did I miss some dependency updates? I don't see it. |
You can ignore appveyor for now... there's a bug unrelated to our code... I believe when installing a web driver. |
@devCrossNet context for that error: angular/webdriver-manager#107. It's not something we can fix on our side, I think. |
add the possibility to scaffold a universal project with --universal
75f988a
to
d422208
Compare
So, the PR is ready then? |
So the --univseral flag is available now in the CLI if I update? |
@chrillewoodz it has to be published to npm first. @Brocco do you know when it'll be available? |
Where is the seed (git url) of the universal project that gets generated? |
@webmutation here is the blueprint: https://github.com/angular/angular-cli/tree/universal/packages/angular-cli/blueprints/universal. It is based on https://github.com/angular/universal-starter |
I realize that this optional support for universal is already merged; but I wonder if the project might consider an alternative model? Maybe "all CLI projects are universal" instead of "there is a switch you can flip, but most people don't flip it, so will likely be issues that come up which are different for universal projects". |
@devCrossNet Thanks! Ah, its part of the CLI, i was expecting the mechanism would be more expandable, where it would be possible to point to custom blueprints thru a url, something similar to ngt new PROJECT-NAME --url:https://github.com/mgechev/angular2-seed (Whatever seed/blueprint) |
@kylecordes there is a lot going on at the moment. this is the first try to figure out how people will use it and how it can be finally integrated to the CLI. We also have to figure out how to play well with the --mobile flag. Or if we should combine --mobile and --universal but with different build targets like |
@webmutation this kind of mechanism would be part of the core functionality of the CLI. I don't know if the CLI team is planning something like this. My goal is, to integrate a possibility to use universal within the CLI, based on the best practices of the Universal team. |
Hello , thank you very much for your work , i found that angular universal it shows error probably need to renew dependency |
@goriunov I disabled the aot support for now. But I want to update the dependencies anyways :-) maybe I can get it to work. |
@devCrossNet Hello. You have any idea, when the |
@goriunov Please use 2.1.0 for Angular Core packages. 2.1.1 changed CssSelector & SelectorMatcher and I'm working on getting the fix in to Universal at the moment. You can follow angular/universal#607 for when they'll be fixed so that we can use 2.1.1 with Universal. @elekzalan Once we can get a few fixes in there we'll release Universal as 2.1.1, which hopefully will include AoT, the internal compiler fixes (mentioned in my previous comment), etc. |
Is the |
@devCrossNet does it support AOT with universal |
@jaumard the universal-cli support is now a separate package on npm @kuldeepkeshwar no, it is still on universal version 2.0.11, waiting for version 2.1.1. |
@devCrossNet Why is it a separate package? |
@chrillewoodz please read this comment: #1050 (comment) |
@devCrossNet Ok makes sense. And you have to uninstall the angular-cli the same way as before, before installing the universal-cli? |
@chrillewoodz yes |
Has the |
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. |
add the possibility to scaffold a universal project with --universal.
This is the next attempt to bring in the --universal feature flag.
Related PR: #2318
It is rebased onto the angular-cli/master branch and will update the angular-cli/universal branch.