Skip to content

A template for creating a new Bazel ruleset

License

Notifications You must be signed in to change notification settings

kormide/rules-template

This branch is 1 commit ahead of, 98 commits behind bazel-contrib/rules-template:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

496a134 · Jan 19, 2022

History

4 Commits
Jan 19, 2022
Dec 13, 2021
Dec 13, 2021
Dec 13, 2021
Dec 14, 2021
Dec 13, 2021
Dec 13, 2021
Dec 13, 2021
Dec 13, 2021
Dec 13, 2021
Nov 29, 2021
Jan 19, 2022
Dec 13, 2021
Dec 13, 2021

Repository files navigation

Template for Bazel rules

Copy this template to create a Bazel ruleset.

Features:

See https://docs.bazel.build/versions/main/skylark/deploying.html#readme

Ready to get started? Copy this repo, then

  1. search for "com_myorg_rules_mylang" and replace with the name you'll use for your workspace
  2. search for "myorg" and replace with GitHub org
  3. search for "mylang" and replace with the language/tool your rules are for
  4. rename directory "mylang" similarly
  5. run pre-commit install to get lints (see CONTRIBUTING.md)
  6. if you don't need to fetch platform-dependent tools, then remove anything toolchain-related.
  7. update the actions/cache@v2 bazel cache key in .github/workflows/ci.yaml and .github/workflows/release.yml to be a hash of your source files.
  8. delete this section of the README (everything up to the SNIP).

---- SNIP ----

Bazel rules for mylang

Installation

From the release you wish to use: https://github.com/myorg/rules_mylang/releases copy the WORKSPACE snippet into your WORKSPACE file.

About

A template for creating a new Bazel ruleset

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Starlark 94.5%
  • Shell 5.5%