bazel-contrib / rules_jsonnet

Jsonnet rules for Bazel
https://bazelbuild.github.io/rules_jsonnet/
Apache License 2.0
69 stars 73 forks source link

Gazelle Language Extension #193

Open midnightconman opened 5 months ago

midnightconman commented 5 months ago

rules_jsonnet targets aren't too complicated and can be done by hand, but it would be nice to have gazelle do most of the heavy lifting, right?

We should create a rules_jsonnet language extension for gazelle, which would automatically create BUILD definitions for predictable things (like a jsonnet_library target if there is a file.libsonnet or a jsonnet_to_json if there is a file.jsonnet). I know imports are a bit more work, but we can always try to solve that later?

https://github.com/bazelbuild/bazel-gazelle/blob/master/extend.md#supported-languages