Plugin devcontainer config for GitHub Codespaces

Alteras
Fri, 29 Aug 2025 03:00:40 +0000
Development

I recently made a GitHub Codespaces devcontainer config for discourse plugins that will automatically clone the discourse core repo around the plugin, generating a fresh discourse dev environment for each plugin.
Screenshots of my plugin repo codespace auto cloning discourse/discourse (clicca per ulteriori dettagli)
It extends from the existing config for discourse core, preserving the automated setup and task shortcuts for starting a new build.

Here is a commit in one of my repos that contain the related configs for it.

github.com/Alteras1/discourse-collections

Create devcontainer.json setup for GitHub Codespaces (#15)

committed 11:54PM - 27 Aug 25 UTC

Alteras1

+228 -0

This adds configs needed for GitHub Codespace to auto generate a Discourse insta…nce around the plugin. This will let us create a Discourse dev env all from a plugin repo. Currently, users will need to navigate to the `/plugins` directory to make commits back, or use "Add folder to workspace" option.

Unfortunately, to be able to run build tasks via shortcuts, the user lands on the /discourse directory, so the plugin repo is not immediately available. However, users can just navigate to their respective repos plugins in the /discourse/plugins directory, or add it to the explorer as a workspace folder via the command palette. Adding workspace folder will also expose the plugin repo to the vscode source control Git UI.
More screenshots of adding workspace folder (clicca per ulteriori dettagli)
Adding the workspace folder can probably be done programmatically in vscode, but I haven’t tested it.

1 messaggio - 1 partecipante