From 56ad4aa3303cf0c2b86886e16bab832ce5d72703 Mon Sep 17 00:00:00 2001 From: SJ Date: Fri, 3 May 2024 09:48:28 -0400 Subject: [PATCH] pants: add page (#12701) --- pages/common/pants.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/pants.md diff --git a/pages/common/pants.md b/pages/common/pants.md new file mode 100644 index 000000000..e1d140af2 --- /dev/null +++ b/pages/common/pants.md @@ -0,0 +1,32 @@ +# pants + +> Fast, scalable, user-friendly, open-source build and developer workflow tool. +> More information: . + +- List all targets: + +`pants list ::` + +- Run all tests: + +`pants test ::` + +- Fix, format, and lint only uncommitted files: + +`pants --changed-since=HEAD fix fmt lint` + +- Typecheck only uncommitted files and their dependents: + +`pants --changed-since=HEAD --changed-dependents=transitive check` + +- Create a distributable package for the specified target: + +`pants package {{path/to/directory:target-name}}` + +- Auto-generate BUILD file targets for new source files: + +`pants tailor ::` + +- Display help: + +`pants help`