Skip to content

chore: add tilt#14

Merged
adkah merged 2 commits into
masterfrom
ak-tilt
May 13, 2026
Merged

chore: add tilt#14
adkah merged 2 commits into
masterfrom
ak-tilt

Conversation

@adkah
Copy link
Copy Markdown
Contributor

@adkah adkah commented May 13, 2026

This PR configures Tilt in the repo.

@adkah adkah marked this pull request as ready for review May 13, 2026 18:52
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 13, 2026

Greptile Summary

This PR introduces Tilt as a local development orchestrator, adding a Tiltfile that wraps the existing bun scripts into named resources, along with supporting .tiltignore, VS Code extension, and language-association settings.

  • Tiltfile: Defines resources for install, dev (hot-reload server), preview (build-then-serve), build, all check:* lints, and fix:* utilities. All referenced bun run script names match those in package.json. The check:writing resource is gated behind a runtime which vale guard with a graceful warn() fallback.
  • .tiltignore: Excludes node_modules/, dist/, .astro/, agent/node_modules/, and *.log from Tilt's file-watcher.
  • VS Code files: Recommend the tilt-dev.tiltfile extension and associate the Tiltfile filename with the tiltfile language mode for syntax highlighting.

Confidence Score: 4/5

Safe to merge — purely additive tooling config with no impact on the production build or runtime.

All bun run script names in the Tiltfile match the ones defined in package.json, the vale guard degrades gracefully, and the VS Code changes are non-breaking. The two minor points are the macOS-only install hint in the warn() call and the undocumented port-sharing constraint between dev and preview.

Tiltfile — the brew-specific install hint and the shared port between dev and preview are worth a quick look before merging.

Important Files Changed

Filename Overview
Tiltfile New Tiltfile defining local dev resources for install, dev server, preview, build, checks, and fix utilities; vale guard is platform-aware but the install hint is macOS-only
.tiltignore Adds standard ignore patterns (node_modules, dist, .astro, agent/node_modules, *.log) to prevent Tilt from watching generated/dependency directories
.vscode/extensions.json Adds tilt-dev.tiltfile extension recommendation alongside the existing astro-build.astro-vscode
.vscode/settings.json Associates the Tiltfile filename with the tiltfile language so VS Code uses correct syntax highlighting

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Tiltfile loads] --> B{vale in PATH?}
    B -- yes --> C[register check:writing resource]
    B -- no --> D[warn + skip check:writing]

    subgraph setup["Label: setup"]
        E[install\nbun install]
    end

    subgraph services["Label: services"]
        F[dev\nserve: bun dev\nauto_init=true]
        G[preview\ncmd: bun run build\nserve: bun preview\nauto_init=false]
    end

    subgraph build_group["Label: build"]
        H[build\nbun run build\nauto_init=false]
    end

    subgraph checks["Label: checks"]
        I[check]
        J[check:format]
        K[check:lint]
        L[check:type]
        M[check:links]
        C
    end

    subgraph utils["Label: utils"]
        N[fix]
        O[fix:format]
        P[fix:lint]
    end

    E --> F
    E --> G
    E --> H
    E --> I
    E --> J
    E --> K
    E --> L
    E --> M
    E --> N
    E --> O
    E --> P

    F -. port 4321 .- G
Loading

Reviews (1): Last reviewed commit: "chore: add tilt" | Re-trigger Greptile

Comment thread Tiltfile Outdated
Comment thread Tiltfile
Comment thread Tiltfile
)

local_resource(
"build",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion(non-blocking): your "build" resource doesnt seem useful, it's never used as a dep and the "preview" resource is already building
You could:

  • remove the "build" resource
  • or don't build in the "preview" resource and set "build" as a dep of "preview"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

or don't build in the "preview" resource and set "build" as a dep of "preview"

This is what I wanted originally, but build was never running when I ran preview because build has auto_init=False - I'd have to manually run both

If it would be better to auto-init build I can do that, or just remove it and keep the build in preview?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This behaviour is really weird, I don't know why it does this
You can maybe remove the build and just keep preview, but that's ok actually

Comment thread Tiltfile
@adkah adkah merged commit 275bb1e into master May 13, 2026
6 checks passed
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