baml icon indicating copy to clipboard operation
baml copied to clipboard

Add create-baml-app script to work with pnpm workspace

Open ashayas opened this issue 8 months ago • 3 comments

  • Migrated code over from http://github.com/ashayas/create-baml-app

  • Usage instructions in README

  • npm, pnpm, yarn, deno, bun, pip, poetry, uv, ruby support

  • Will add Go (can even preemptively add it if I know the instructions)

  • Testing suite for this is interesting: I could maybe do a bunch of docker containers that have the various package managers

  • I did do tests with / without package managers


[!IMPORTANT] Adds create-baml-app CLI tool for setting up BAML projects with support for multiple languages and package managers.

  • New Feature:
    • Adds create-baml-app CLI tool for setting up BAML projects with support for Python, TypeScript, and Ruby.
    • Supports package managers: pip, poetry, uv, npm, pnpm, yarn, deno, bun, bundle.
  • Files:
    • index.js: Main script for handling user input and project setup.
    • package.json: Defines dependencies (chalk, execa, inquirer) and scripts for the CLI tool.
    • pnpm-workspace.yaml: Adds create-baml-app to the workspace packages.
  • Documentation:
    • README.md: Provides installation and usage instructions for the CLI tool.

This description was created by Ellipsis for 630bede1a548827cd24544f7695186ef3757d263. It will automatically update as commits are pushed.

ashayas avatar Mar 22 '25 20:03 ashayas

@ashayas is attempting to deploy a commit to the Gloo Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Mar 22 '25 20:03 vercel[bot]

this is awesome, but a testing flow with a couple containers would be extremely nice for more common setups. If it's part of the onboarding flow it can't fail ever.

I took a look at the code and everything looks reasonable. What do you think? Also do you own create-baml-app on npm? It'd be nice to take custodianship of it!

Thanks for contributing!

aaronvg avatar Mar 25 '25 22:03 aaronvg

@aaronvg I will add a few test containers and fix the issues the linter has found and update the PR. Yep my intention is to transfer the create-baml-app to you guys for sure!

ashayas avatar Mar 25 '25 23:03 ashayas