From 60d3b33a46b82685e215fe5a31029044dca0f1e5 Mon Sep 17 00:00:00 2001 From: Jay Pratt Date: Mon, 30 Sep 2024 02:10:26 +1000 Subject: [PATCH] Make bacon in root work for parser --- bacon.toml | 3 ++- tree-sitter-tako/bacon.toml | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tree-sitter-tako/bacon.toml diff --git a/bacon.toml b/bacon.toml index de42f3d6..7ebfa909 100644 --- a/bacon.toml +++ b/bacon.toml @@ -56,9 +56,10 @@ need_stdout = true allow_warnings = true [jobs.parser] -command = [ "treesitter", "test" ] +command = [ "sh", "-c", "cd ./tree-sitter-tako/ && tree-sitter 'test'" ] need_stdout = true allow_warnings = true +watch = ["./tree-sitter-tako/grammar.js", "./tree-sitter-tako/tests"] # You may define here keybindings that would be specific to # a project, for example a shortcut to launch a specific job. diff --git a/tree-sitter-tako/bacon.toml b/tree-sitter-tako/bacon.toml new file mode 100644 index 00000000..7150f2b8 --- /dev/null +++ b/tree-sitter-tako/bacon.toml @@ -0,0 +1,8 @@ + +[jobs.parser] +command = [ "tree-sitter", "test" ] +need_stdout = true +allow_warnings = true +watch = ["grammar.js", "tests"] + +