-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Allow loading babel-standalone from CircleCI to enable easy testing of PRs #1284
Conversation
Awesome, it looks good! Thanks @Daniel15 |
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.
Nice!
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.
👍
Note to self: Now that we're on Netlify, I can make these URLs a bit nicer (like |
@Daniel15 we can still merge this now right? if so feel free to |
I didn't get a chance to finish this tonight, so I'll take a look over the weekend. I have "Daniel15" hard-coded in the CircleCI API URL for testing purposes. I need it to "babel" before merging. I'll also add a querystring parameter to provide a CircleCI username for testing purposes so I can do something like |
- Change CircleCI username from Daniel15 to Babel
Deploy preview ready! Built with commit 6c7e0a5 |
^ Looked like a transient error with Netlify. Retried the deploy and it worked fine. Confirmed working fine: (in theory a URL like https://deploy-preview-1284--babel.netlify.com/repl/build/5/ would work to load a Babel build, but we need to merge babel/babel#6029 first) I added a bonus feature - Ability to load older Babel versions: |
Whoo!!!!!!!!! 🎉, maybe we should think about the UI to let people know about the build #'s? Or I guess it can just be for ourselves. Oh yeah I guess we can use babel-bot to do it (or https://github.com/danger/danger-js if thats possible too) I was thinking about the version # - would be nice to add the PR link to the version http://babeljs.io/repl - normal url |
Yeah I'll update babel-bot to add a comment and set a build status with the
link. :)
Sent from my phone.
…On Aug 12, 2017 6:18 AM, "Henry Zhu" ***@***.***> wrote:
Whoo!!!!!!!!! 🎉, maybe we should think about the UI to let people know
about the build #'s? Or I guess it can just be for ourselves. Oh yeah I
guess we can use babel-bot to do it (or https://github.com/danger/
danger-js if thats possible too)
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1284 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAFnHRs7Q8nqXW99WnLekyJ5UAyEArGwks5sXaYXgaJpZM4OnzWl>
.
|
This PR adds a new "circleci_build" parameter to the Babel v7 REPL page. When provided, this is treated as a CircleCI build number and
babel-standalone
is loaded from the CircleCI build artifacts rather than from unpkg. The idea is that we can have a bot that runs as a CircleCI webhook and automatically comments on all Babel PRs with a link to the REPL to allow easy testing of changes.The new parameter is passed like this:
The
lazyLoadScript
function added in this PR is a generalised version of thehasBabiliLoaded
function in the currentrepl.js
.Depends on babel/babel#6029 ("Move babel-standalone into main Babel repo"). We can't test this with real Babel PRs until the other PR lands.
cc @hzoo