-
Notifications
You must be signed in to change notification settings - Fork 10.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
feat: add gitpod config #15034
feat: add gitpod config #15034
Conversation
The failed
I don't think that has anything to do with my change. Is the build a bit flaky? |
This is awesome! On my test I think it took ~2 minutes to get env ready which is pretty sweet. The config file seems straight forward (at least to modify test site to something else than gatsbygram). I do have a question - is there a way to provide multiple presets (using different example sites)? Flow I could see working - if you want to work on I really need to take Code Review feature for a spin - this sounds awesome
This is pretty weird. Definitely not related to the PR content. Don't worry about this. Only check that we need to make sure is passing is linting, and this is green, so all good! |
Is the file name |
That's a great idea. We can pass an environment variable in to overwrite the default example (gatsbygram). We could put buttons into the individual example Readmes. |
Still pretty long, it usually was more like 40 seconds for me. But it might be because Gitpod runs in three regions (US, Europe, Asia) and I created the prebuilt in Europe, which is a big tar of the full workspaces including all node dependencies. If you start it from US it has to be transferred there first. Prebuilds that are automatically triggered from the GitHub webhook are located in US (because GitHub is triggering from US). So then it might be the other way around. That said there's a change coming up that will improve the startup time further. |
Oh, I wasn't really measuring - it might have been shorter than 2 minutes and closer to 40s - my point was it was pretty quick - much faster than setting up local env usually :) To move this forward with this addition, I think we could split this PR into 2:
|
@pieh I have updated this PR to only include the config. Will follow up with the documentation once it's merged. |
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.
Awesome! Thanks 🙏
Holy buckets, @svenefftinge — we just merged your PR to Gatsby! 💪💜 Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! |
Hey Gatsby folks 👋
this PR adds support for onboarding contributors through Gitpod, a free online dev environment. The PR will allow anyone to get up and running with a browser-based dev environment in a few seconds, lowering the barrier for any code contributions.
This is what a dev environment looks like:

The environment starts with a pre-built state of the given branch. On startup three processes are started in three different terminals watching changes in core and the example I picked (gatsbygram). All is based on a configuration file (
.gitpod.yml
) so hopefully pretty transparent. In case it is not, we're always happy to help.Give it a try: https://gitpod.io/#https://github.com/svenefftinge/gatsby
Shaving off the local setup and a five minutes of build, I hope this will streamline your onboarding process a lot.
I also added a proposal for documentation. So if you think this is useful, please advice how and where you'd prefer to see information about this and of course feedback on the configuration would be great, too.
P.S.: Awesome framework! We really enjoyed building our website with Gatsby.