tree_sitter/README.md
2023-09-22 09:42:35 +00:00

861 B

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.