tree-sitter-rescript icon indicating copy to clipboard operation
tree-sitter-rescript copied to clipboard

Publish to npm and crates

Open aspeddro opened this issue 2 years ago • 0 comments

I think now the parser covers the language well. We can publish to npm and crates.io.

This requires some adaptations:

  1. Update CI to publish on every tag v* push.
  2. Update CI to test on each platform: ubuntu, macos and windows.
  3. Put artifacts of the build in this repository.

The repo https://github.com/nkrkv/nvim-treesitter-rescript is not really necessary. The user can config the parser setup to generate the grammar.

We can add this to README.md:

local parser_config = require('nvim-treesitter.parsers').get_parser_configs()

parser_config.rescript = {
  install_info = {
    url = 'https://github.com/nkrkv/tree-sitter-rescript',
    branch = 'main',
    files = { 'src/parser.c', 'src/scanner.c' },
    requires_generate_from_grammar = true,
  },
  filetype = 'rescript',
}

aspeddro avatar Mar 10 '23 20:03 aspeddro