Skip to content

The tree-sitter parser for Textwire, dynamic templating and scripting language for Go. Ideal for embedding dynamic content with Go applications

License

Notifications You must be signed in to change notification settings

textwire/tree-sitter-textwire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

115 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tree Sitter Parser for Textwire

NPM Commands

Install Dependencies

Run the following command to install the required NPM dependencies:

npm i

Available Make Commands

You can find Make commands in the Makefile in the root of the project.

Build the parser

Run the following command to build the parser:

make generate

Install / Setup tree sitter

Run the following command to install tree sitter:

make install

Test that everything works

Run the following command to test that everything works:

make test

Contribute

With a Container Engine

Build the Image

To build the image, run this command.

With Podman:

podman-compose build

With Docker:

docker compose build

Create node_modules

Run this command to install npm packages and generate a node_modules directory on your local machine.

With Podman:

podman-compose run --rm app npm i

With Docker:

docker compose run --rm app npm i

Enter the Container

To enter inside the container, run this command.

With Podman:

podman-compose run --rm app

With Docker:

docker compose run --rm app

You'll be able to run NPM commands inside of the container.

License

The Tree Sitter Textwire project is licensed under the MIT License

About

The tree-sitter parser for Textwire, dynamic templating and scripting language for Go. Ideal for embedding dynamic content with Go applications

Topics

Resources

License

Stars

Watchers

Forks