Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish to npm and crates #203

Open
aspeddro opened this issue Mar 10, 2023 · 0 comments
Open

Publish to npm and crates #203

aspeddro opened this issue Mar 10, 2023 · 0 comments

Comments

@aspeddro
Copy link
Collaborator

aspeddro commented Mar 10, 2023

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',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant