Skip to content

build: add devcontainer config for Codespaces and local workflows#19

Merged
sbolel merged 4 commits into
mainfrom
copilot/add-devcontainer-json-file
May 14, 2026
Merged

build: add devcontainer config for Codespaces and local workflows#19
sbolel merged 4 commits into
mainfrom
copilot/add-devcontainer-json-file

Conversation

Copilot AI commented May 14, 2026

Copy link
Copy Markdown
Contributor

Provide a repo-specific devcontainer that matches the requested Paste to Markdown development environment. This standardizes the container image, runtime defaults, forwarded ports, and editor setup for Codespaces and VS Code Dev Containers.

  • Container baseline

    • Pin the workspace to the TypeScript Node 24 Bookworm image
    • Set host sizing guidance for CPU, memory, and disk
    • Run as the node user with development-oriented env defaults
  • Developer workflow

    • Forward the app’s common dev/preview ports
    • Auto-open the primary dev port in preview
    • Run dependency install on create and Vite optimize on start
  • Codespaces / VS Code customization

    • Grant repo write permissions for contents, issues, and PRs
    • Open the main project files on startup
    • Preconfigure formatting, ESLint, TypeScript SDK, terminal shell, and extensions
{
  "postCreateCommand": "npm ci",
  "postStartCommand": "npm run optimize --if-present",
  "forwardPorts": [5000, 5173, 4173]
}

Copilot AI and others added 3 commits May 14, 2026 12:26
Agent-Logs-Url: https://github.com/sbolel/paste-to-markdown/sessions/2211628a-cb4b-4d72-ae9e-035d8e7648c2

Co-authored-by: sbolel <1915925+sbolel@users.noreply.github.com>
Agent-Logs-Url: https://github.com/sbolel/paste-to-markdown/sessions/2211628a-cb4b-4d72-ae9e-035d8e7648c2

Co-authored-by: sbolel <1915925+sbolel@users.noreply.github.com>
Agent-Logs-Url: https://github.com/sbolel/paste-to-markdown/sessions/2211628a-cb4b-4d72-ae9e-035d8e7648c2

Co-authored-by: sbolel <1915925+sbolel@users.noreply.github.com>
@sbolel sbolel requested a review from Copilot May 14, 2026 12:31
@sbolel sbolel marked this pull request as ready for review May 14, 2026 12:31
@sbolel sbolel changed the title Add devcontainer configuration for Codespaces and local container workflows build: add devcontainer config for Codespaces and local workflows May 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a repository-specific devcontainer configuration for Codespaces and VS Code Dev Containers to standardize the Node-based development environment, ports, install/start hooks, and editor setup.

Changes:

  • Tracks .devcontainer/devcontainer.json while continuing to ignore other devcontainer files.
  • Adds a Node 24 Bookworm devcontainer with npm setup, forwarded Vite-related ports, and VS Code/Codespaces customizations.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
.gitignore Allows the primary devcontainer configuration file to be committed.
.devcontainer/devcontainer.json Defines the container image, lifecycle commands, forwarded ports, permissions, and editor defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .devcontainer/devcontainer.json Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Sinan Bolel <1915925+sbolel@users.noreply.github.com>
@sbolel sbolel merged commit 6fcd06e into main May 14, 2026
1 check failed
@sbolel sbolel deleted the copilot/add-devcontainer-json-file branch May 14, 2026 12:34
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants