Skip to content

Publish to npm and crates #203

Open
Open
@aspeddro

Description

@aspeddro

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',
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions