Skip to content

[feat] bamlproject.toml instead of baml_src/ #1904

@Elijas

Description

@Elijas

Use case

I use step-based prototyping (step 1, step2, etc.)
this makes prototypes super readable

Image

Problem

however this means that I HAVE to always hold everything in baml_src, I think it's not as elegant once you start mixing baml files with the rest of the codebase (if you know what you're doing and why holding everything in a dedicated baml_src would still make most sense for most projects)

I do however understand the value of baml_src pattern, it makes browsing 3rd party baml projects really easy

Solution spec

  1. Treat baml_src/ and */ the same if folder */ has */bamlproject.toml (the same way how pyproject.toml signifies the root of a python project instead of python_src/). Keep the file empty, or you can make it bamlproject.baml, where it would be included like any other baml file.
  2. Ignore nested baml project folders (baml_src would ignore all baml_src/**/baml_src/ folders, and X folders where baml_src/**/X/bamlproject.toml)

(TL;DR all I'm asking is for VSCode support for this alternate convention)
(P.S. Now that I think about it, I could probably symlink a x/* folder to a gitignored .baml/baml_src/x/*, and VSCode should pick it up (?))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions