Example Bazel Gazelle extension tho manage BUILD file contents for Javascript and Typescript code.
Based on rules_nodejs_gazelle.
Intended to generate some of the rules used at my bazel-web-template repository.
⚠️ The extension is still WIP. It is missing some basic features, like import parsing and resolution ⚠️
Setup / Requirements
Run
bazelisk run //:gazelle
# apply only to a specific path:
bazelisk run //:gazelle path/to/folder
Development
Build
bazelisk build //...
Recommendations
Testing
bazelisk test //...
Updates
Apart from updating WORKSPACE
and MODULE.bazel
, you should run:
bazelisk run //:update_go_deps