Skip to content

Set up Advent of Code 2025 with Bun, Effect-TS, DevContainer, and Biome - #1

Merged
Nvveen merged 6 commits into
mainfrom
copilot/setup-day-1-hello-world
Dec 4, 2025
Merged

Set up Advent of Code 2025 with Bun, Effect-TS, DevContainer, and Biome#1
Nvveen merged 6 commits into
mainfrom
copilot/setup-day-1-hello-world

Conversation

Copilot AI commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

Bootstrap a Bun-based TypeScript project using Effect-TS for Advent of Code 2025, with full DevContainer/Codespaces support and modern tooling.

Project Structure

  • Days organized under src/days/dayXX/index.ts
  • Day 1 implements Hello World using Effect-TS

Tooling

  • Runtime: Bun with bleeding-edge TypeScript 5.9.3
  • Linting/Formatting: Biome 2.3.8 (replaces ESLint/Prettier)
  • Framework: Effect-TS 3.19.8 with platform packages

VS Code / Codespaces

  • DevContainer with Bun feature for local and Codespaces use
  • Required extensions: Effect language server, Biome, Bun
  • Launch configs, tasks, and MCP configuration included
  • Watch mode support for iterative development:
    • VS Code launch config: "Watch Current File" with automatic re-run on file changes
    • Package.json script: bun run day01:watch
    • VS Code tasks: "Watch Day 01" and "Watch Current Day"

CI

  • GitHub Actions workflow for lint, format check, and typecheck
  • Minimal permissions (contents: read)
// src/days/day01/index.ts
import { Effect, Console } from "effect";

const program = Effect.gen(function* () {
  yield* Console.log("Hello World from Day 1!");
});

Effect.runPromise(program).catch(console.error);
Original prompt

A Bun-based codebase in typescript using Effect-TS. It's for advent of code 2025, so organise by day. Also create a minimal devcontainer setup that I can run in vscode with remote containers. Start off with day 1 only, which for now only does Hello World


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits December 4, 2025 10:59
…gs, Biome, and MCP

Co-authored-by: Nvveen <486978+Nvveen@users.noreply.github.com>
Co-authored-by: Nvveen <486978+Nvveen@users.noreply.github.com>
Co-authored-by: Nvveen <486978+Nvveen@users.noreply.github.com>
Copilot AI changed the title [WIP] Add day 1 Hello World setup in Bun with Effect-TS Set up Advent of Code 2025 with Bun, Effect-TS, DevContainer, and Biome Dec 4, 2025
Copilot AI requested a review from Nvveen December 4, 2025 11:05
@Nvveen

Nvveen commented Dec 4, 2025

Copy link
Copy Markdown
Owner

@copilot Add a watch launch script to iteratively develop per day solution

Co-authored-by: Nvveen <486978+Nvveen@users.noreply.github.com>

Copilot AI commented Dec 4, 2025

Copy link
Copy Markdown
Contributor Author

@copilot Add a watch launch script to iteratively develop per day solution

Added watch mode support in cbad051:

  • VS Code launch config: "Watch Current File" with watchMode: true
  • Package.json script: bun run day01:watch
  • VS Code tasks: "Watch Day 01" and "Watch Current Day"

You can use any of these to re-run your solution automatically on file changes.

Remove isBackground flag from watch tasks so the terminal panel
stays open and visible when running watch mode
@Nvveen
Nvveen marked this pull request as ready for review December 4, 2025 11:24
@Nvveen
Nvveen merged commit ecc7349 into main Dec 4, 2025
2 checks passed
@Nvveen
Nvveen deleted the copilot/setup-day-1-hello-world branch December 4, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants