-
Notifications
You must be signed in to change notification settings - Fork 519
BUILD file generation #789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
if this were open sourced, I would be interested in using it here at Dropbox. |
Any updates on this? Would love to contribute on this if there is a design doc shared publicly. AFAIK, Gazelle is aiming to provide build file generation for other languages as well, and the implementation is almost language-agnostic already. EDIT: gazelle 0.16 is now released with custom language support |
ts_auto_deps is now released, which has very minimal support for BUILD file generation. |
I actually just added basic |
It seems that ts_auto_deps was removed in bazelbuild/rules_typescript@09f0469 is there a story for this moving forward? asking as we are trying to move a relatively large project (300K LOC across 3K+ components) to bazel and were wondering if there was a tool to generate the first pass of BUILD files. |
As someone who recently left Google, I was just about to file a FR for taze to be open sourced XD I guess this is the right place to add my "please may we get it", cause honestly taze made everything so simple... |
Hi @vpanta welcome to xoogler status! Let me dump a bit of my current thinking on this. There are a few partial attempts at this. I recently wrote a generator for There are a bunch of ways you might want to setup your repo. taze was based on a single opinion and a single rule (ts_library). In the wild, one team might want to generate Finally, you have the polyglot story. You need tooling written in the same language, for example All of this leads me to think that we need a loose coupling and powerful meta-configuration facility, with possibly several tools coordinating work. My current favorite loosely-considered proposal: Gazelle as the coordinator, with a plugin for typescript that spawns a nodejs subprocess to do the actual work. That subprocess has a generalized API for passing stdin/arguments and producing buildozer commands on stdout. In addition to running that tool under gazelle, you can also run it standalone with the If you have any time to dig in, happy to think through this some more. |
I was having the same thoughts around using the plugins for Gazelle in bzlgen (Evertz/bzlgen#50) as there are specific typescript libraries and implementations that make it easier to resolve deps for TS, especially when generating for I think with all of these tools, they are going to be very opinionated depending on where they originated (bzlgen expects Evertz' way of doing Angular folder layouts for example, and lacks support for |
Is it currently possible to create a Gazelle extension that is not purely Go? I was thinking about doing some buildfile generation but hit a wall when trying to figure out how I would let my gazelle extension call a node process that would take care of parsing the files. |
With @achew22 and @mrmeku I started this "rosetta" plugin for gazelle that adapts the API to work with any subprocess |
This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This issue was automatically closed because it went two weeks without a reply since it was labeled "Can Close?" |
What's the preferred way of making a |
Like https://github.com/bazelbuild/rules_go/tree/master/go/tools/gazelle
we should be able to generate/maintain BUILD files automatically from TypeScript sources.
We do this internally at google.
The text was updated successfully, but these errors were encountered: