Skip to content

Add devcontainer spec #952

@jsacrist

Description

@jsacrist

Prerequisites

  • I have searched existing issues to ensure this feature hasn't already been requested
  • I have checked the documentation to verify this feature doesn't already exist

Problem Statement

It would improve developer experience if this repository included a devcontainer specification.

VSCode has a feature called devcontainer that allows developers to bundle dependencies, tools, and a whole dev environment into a Docker container, this is particularily useful for keeping the host machine unaffected by dependencies of a project.

Proposed Solution

Some other repositories within the meshtastic project already have a devcontainer setup
(meshtastic/firmware, meshtastic/device-ui) so it would make sense to also onboard the web repo.

A minimal devcontainer spec should include pnpm like so:

{
	"name": "meshtastic-web",
	"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
	"features": {
		"ghcr.io/r3dpoint/devcontainer-features/tailwindcss-standalone-cli:1": {
			"version": "latest"
		},
		"ghcr.io/devcontainers-extra/features/pnpm:2": {
			"version": "latest"
		}
	}
}

Current Alternatives

No response

Importance

Nice to have

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions