Fixing Up the Svelte Community Site

Canonical URL: https://www.swyx.io/writing/svelte-community-fixup/

One of my longstanding projects that I’m always feeling guilty about not spending time on is the Svelte Community site.

image

At it’s surface it is just a simple static site with searchable links to resources, but the vision is that this would hold all the stuff that the official docs and chat would not be able to hold.

Obviously the Svelte maintainers are stretched thin, and I’m just one (busy) guy, so you’re welcome to swim on in to contribute if you want to help grow the Svelte community!

I took a couple hours to update it today and here are my public notes from what I did.

Updating the ssg dependency

https://github.com/sveltejs/community/blob/master/package.json#L15

I have been bumping up the ssg version as I tweak features and fix bugs, so just keeping this up to par. I anticipate biting the bullet to move off of Sapper sooner rather than later given I am now consistently running into scaling issues with it on my own site.

Updating the data and data fetching scripts

sveltejs/community@efc0953

We scrape GitHub stars and npm downloads to give a little indication of the maintenance and adoption status of the ecosystem, this needed to be done on a more regular basis but was written just for a onetime run, so I just ran it once.

Automating Data Scraping with GitHub Actions

I previously wrote about this so I assumed this would be easy, but boy I wasted an hour going nuts with the unintuitive GitHub Actions UI:

2020-02-25 at 12 37 AM

This was because this is what happens when you add a valid GitHub Action:

image

That’s right, absolutely no recognition at all from GH Actions that you did something right. Ugh. Took me an hour to verify that nothing went wrong, the GH Actions syntax didnt change, I wasn’t going crazy.

The other thing I found out was that you can’t add an environment variable prefixed with GITHUB_ as that is a reserved env var. Understandable, but the docs say setting an environment variable or secret with the GITHUB_ prefix will result in an error and there was most certainly no error.

Work, Work

Anyway, the fixup is done, at the cost of some hair pulling from the GH Actions debacle. There is no manual trigger (some hacks here and you can create a custom webhook event if you really need to but ugh) so the only way to tell if this thing will work is to… wait.

The remaining work to do on the Svelte Community Site is:

  • Add everything in Discord over the last few months
  • Make events easier to signup for and notify - wire it to a Google Sheet
  • Make the Showcase more impressive
  • Start writing Recipes
  • Look at the Vue folks for more ideas.

Once again, if you’d like to help, you’re welcome to join us!

Tagged in: #tech #community #javascript #svelte

Leave a reaction if you liked this post! 🧡
Loading comments...
Webmentions
❤️ 0 💬 11
  • avatar of Jamon Holmgren
    Jamon Holmgren mentioned this on 2020-02-26

    Cool. I like CircleCI’s approach — give an SSH tunnel into the box.

  • avatar of shawn swyx wang🤗
    shawn swyx wang🤗 mentioned this on 2020-02-26

    someone made a local testing thing, may help: twitter.com/nektos/status/… yeah what the cloud giveth the cloud sometimes taketh away 😢

  • avatar of Jamon Holmgren
    Jamon Holmgren mentioned this on 2020-02-26

    And the debugging experience is awful. No insight into what's happening, why they're stalling.

  • avatar of Jamon Holmgren
    Jamon Holmgren mentioned this on 2020-02-26

    I haven't -- basically, these tests pass on my local machine but I can't for the life of me get them to even run on GH actions. It just stalls partway through installing some of the prerequisites (at random places). g

  • avatar of shawn swyx wang🤗
    shawn swyx wang🤗 mentioned this on 2020-02-26

    trying to. I have a long backlog of post ideas. but won't beat myself up if I miss some days.

  • avatar of shawn swyx wang🤗
    shawn swyx wang🤗 mentioned this on 2020-02-26

    I'm sorry about that. I do think they are unbeatable for open source. have you filed your issues with the gh actions community site? I'd love to see what you ran into

  • avatar of Jamon Holmgren
    Jamon Holmgren mentioned this on 2020-02-26

    I'm really not happy with Github Actions and don't recommend them at this point. I've wasted far too many hours beating my head against the wall with them.

  • avatar of James K Nelson
    James K Nelson mentioned this on 2020-02-25

    in the process of moving place atm. one problem is I've been stuck in a 20sqm apartment next to multiple big construction sites for 2 years due to stuff, and it can make it really hard to think at times. gonna take a shot at doing daily content again after the move.

  • avatar of Swizec Teller
    Swizec Teller mentioned this on 2020-02-25

    👏 are you writing/publishing every day now?

  • avatar of shawn swyx wang🤗
    shawn swyx wang🤗 mentioned this on 2020-02-25

    you definitely have a lot to share with the wider world! make it small so you can get it out without overthinking it

  • avatar of James K Nelson
    James K Nelson mentioned this on 2020-02-25

    Good on you for pushing through and getting something written anyway. Something is better than nothing. It's something I really need to learn to do myself.

  • avatar of Kevin A. K.
    Kevin A. K. retweeted

Subscribe to the newsletter

Join >10,000 subscribers getting occasional updates on new posts and projects!

I also write an AI newsletter and a DevRel/DevTools newsletter.

Latest Posts

Search and see all content