Repository navigation
Conversation
|
You can preview 79edb73 at https://pr20165-79edb73.ngbuilds.io/. |
|
Wow, that was fast! Awesome job @Foxandxss! 💯 On our end, we should be 100% ready to rock&roll by the end of next week - just have a few remaining pieces of func & perf improvements to finish up 👍 Specifically, we'll be rolling out:
Also, in regards to uptime reliability, we've intentionally designed our architecture to scale gracefully & horizontally. Specifically, we're powering the API endpoint all examples hit w/ a lambda that's decoupled from stackblitz's core app servers & the example projects themselves are stored/cached in redis. This ensures all traffic to the examples will be in-memory cache hits, avoiding any potential DB bottlenecks on the app server. Our core app servers are also load balanced & on auto-scale, should traffic ever get super crazy 👍 |
|
@Foxandxss - it would be useful to rebase off the current master. There are conflicts |
|
Yes, I was waiting for more merges, that will bring possibly more conflicts. |
|
this will close #20045 |
|
We are showing holding images for embedded examples (e.g. https://pr20165-79edb73.ngbuilds.io/guide/ngmodule#compile-just-in-time-jit) but the holding image is still generated from Plunker. We need to replace all of these images across the codebase. Ideally, we should either not bother with these images (was it a performance thing?) or find some way to generate them as part of the doc-gen. |
|
@EricSimons: Is it possible to get StackBlitz to provide a URL that will result in a download of a zip file? This would allow us to remove our own zip generation and download functionality. |
There was a problem hiding this comment.
How about we switch "plunker" for something more generic, like "online" or something?
There was a problem hiding this comment.
Or simply "live-example"
There was a problem hiding this comment.
In that concrete use case, I agree.
gkalpak
left a comment
There was a problem hiding this comment.
Feels good to see all that SystemJS-specific code go 😃
A couple of questions/suggestions:
- In order for the ServiceWorker to route the stackblitz URLs correctly, you need to update this RegExp.
- It would be nice if we could replace "stackblitz" with something generic (such as "live-example") whenever possible.
There was a problem hiding this comment.
I would change this to something more descriptive (e.g. activeFile).
There was a problem hiding this comment.
Stackblitz API expects a "file" so its better not to rename it locally.
There was a problem hiding this comment.
Oh, it was intentional? What is main used for?
There was a problem hiding this comment.
Which file to use as the "index.html". So by default it will pick the index.html but if you have a different one, say index.1b.html then you set it to be the main one. This is not stackblitz, this is how we developed the tool in the first place.
There was a problem hiding this comment.
main --> file (here and elsewhere)
There was a problem hiding this comment.
stackblitz --> plunkrs (or live examples) 😃
There was a problem hiding this comment.
Woohoo 🎉
Aren't there more SystemJS-related files that we can remove now?
There was a problem hiding this comment.
Probably not. We will see. I will do a cleanup PR soon.
There was a problem hiding this comment.
This comment doesn't seem to describe what is happening below 😕
There was a problem hiding this comment.
Actually it does, but I am tweaking the comment a bit.
There was a problem hiding this comment.
What a beautiful regex 😛
What about other references to the main.X.ts file? I remember seeing one inside an index.html (System.import('...')).
There was a problem hiding this comment.
That shouldn't be the case anymore
|
As mentioned in the slack channel, we're changing the API url later today from to per request of the Ang Material folks. We'll add in a redirect from the aio->angular url so that nothing breaks, but the url should prob be updated to the new one before merging this PR into master 👍 |
|
@Foxandxss we should really land this PR in the next few days. Do you have time to work on it or shall we bump it to someone else? |
|
Ill give it love at Wed morning. Tomorrow I am out giving a course. |
|
New endpoint URL (https://run.stackblitz.com/api/angular/v1) is now on prod! 👍 |
79edb73 to
e56d61c
Compare
|
Addressed some of the comments. The preview images on embedded are waiting for @wardbell to do them. |
|
You can preview c2c47c3 at https://pr20165-c2c47c3.ngbuilds.io/. |
|
You can preview eeec1eb at https://pr20165-eeec1eb.ngbuilds.io/. |
gkalpak
left a comment
There was a problem hiding this comment.
I didn't go through all the files again, but did check changes related to my previous comments.
Generally LGTM 👍 ❤️ 🎉
There are a couple of things, which are still missing (afaik) and I wouldn't ship this change without:
- In order for the ServiceWorker to route the stackblitz URLs correctly, you need to update this RegExp.
- We need to update testing to work on stackblitz too.
- The placeholder images need to be updated (maybe to something generic).
It still think it would be nice if we could replace "stackblitz" with something generic (such as "live-example") whenever possible, but happy to leave it for a future PR (if at all) 😃
+1 (but happy for that to go in another PR) |
|
Only the image is needed (waiting for @wardbell). Current testing is quite broken, this PR won't fix it so it will be fixed in a different PR. |
|
You can preview 34229ea at https://pr20165-34229ea.ngbuilds.io/. |
Assigning to @IgorMinar to add the |
|
You can preview 4cd9b3b at https://pr20165-4cd9b3b.ngbuilds.io/. |
Also, remove `plnkr.json` for `service-worker-getting-started` guide, since it is not used and ServiceWorker cannot work correctly in plnkr/stackblitz anyway (e.g. no build step to re-compute hashes). A zipper might be useful and can be added in a subsequent PR, but it is currently broken (e.g. no dependency on `@angular/service-worker`).
2867179 to
c604804
Compare
|
You can preview c604804 at https://pr20165-c604804.ngbuilds.io/. |
…20165) Also, remove `plnkr.json` for `service-worker-getting-started` guide, since it is not used and ServiceWorker cannot work correctly in plnkr/stackblitz anyway (e.g. no build step to re-compute hashes). A zipper might be useful and can be added in a subsequent PR, but it is currently broken (e.g. no dependency on `@angular/service-worker`). PR Close #20165
…20165) Also, remove `plnkr.json` for `service-worker-getting-started` guide, since it is not used and ServiceWorker cannot work correctly in plnkr/stackblitz anyway (e.g. no build step to re-compute hashes). A zipper might be useful and can be added in a subsequent PR, but it is currently broken (e.g. no dependency on `@angular/service-worker`). PR Close #20165
|
This is now live. Thank you everyone who made this happen!!! 🎉 🎈 🎆 |
|
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. |



Stackblitz support for the AIO docs.
Should be complete, but I am sure I am missing a tiny bit or something.
ISSUES:
live-example.component.tsthat deals with narrowScreens that won't work with this update but I require someone that knows more about it to fix it.