From ec6742b9dc265c2a20c371dbf0b607fe3f38a0d8 Mon Sep 17 00:00:00 2001 From: Lakshya Singh Date: Mon, 21 Aug 2023 06:43:51 +0530 Subject: [PATCH] feat: tree sitter pkg (#2929) * feat: tree sitter pkg Signed-off-by: Lakshya Singh * rename, fix build, add test --------- Signed-off-by: Lakshya Singh Co-authored-by: Jacob Heider --- projects/tree-sitter.github.io/package.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 projects/tree-sitter.github.io/package.yml diff --git a/projects/tree-sitter.github.io/package.yml b/projects/tree-sitter.github.io/package.yml new file mode 100644 index 0000000000..10ddaa5a62 --- /dev/null +++ b/projects/tree-sitter.github.io/package.yml @@ -0,0 +1,20 @@ +distributable: + url: https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v{{version}}.tar.gz + strip-components: 1 + +provides: + - bin/tree-sitter + +versions: + github: tree-sitter/tree-sitter + strip: /v/ + +build: + dependencies: + rust-lang.org: ^1.65 + rust-lang.org/cargo: '*' + script: cargo install --root {{prefix}} --path cli + +test: + - tree-sitter init-config + - tree-sitter dump-languages \ No newline at end of file