No description
Find a file
Robert Prehn 53845e9dc3
Some checks failed
CI / test (lint, map[elixir:1.14 otp:25]) (push) Has been cancelled
CI / test (map[elixir:1.11 otp:22]) (push) Has been cancelled
chore: Update repo URL
2024-10-29 12:56:58 -05:00
.github/workflows feat: Commit initially 2023-09-22 09:42:35 +00:00
config feat: Update dump-languages logic 2024-01-31 19:42:55 -06:00
lib feat: Update dump-languages logic 2024-01-31 19:42:55 -06:00
test feat: Commit initially 2023-09-22 09:42:35 +00:00
tree-sitter feat: Update dump-languages logic 2024-01-31 19:42:55 -06:00
.formatter.exs feat: Commit initially 2023-09-22 09:42:35 +00:00
.gitignore feat: Commit initially 2023-09-22 09:42:35 +00:00
LICENSE.md feat: Commit initially 2023-09-22 09:42:35 +00:00
mix.exs chore: Update repo URL 2024-10-29 12:56:58 -05:00
mix.lock feat: Update dump-languages logic 2024-01-31 19:42:55 -06:00
README.md feat: Commit initially 2023-09-22 09:42:35 +00:00

TreeSitter

Mix tasks for installing and invoking tree-sitter.

Installation

If you are going to build assets in production, then you add tree_sitter as dependency on all environments but only start it in dev:

def deps do
  [
    {:tree_sitter, "~> 0.1.1"}
  ]
end

Once installed, change your config/config.exs and pick a version for the tree_sitter CLI of your choice:

config :tree_sitter, version: "0.20.8"

Now you can install tree_sitter by running:

$ mix tree_sitter.install

The executable is kept at _build/tree_sitter-TARGET. Where TARGET is your system target architecture.

License

Copyright (c) 2023 Robert Prehn.

tree_sitter source code is licensed under the MIT License.