Compare commits

...

2 commits

Author SHA1 Message Date
Bruno BELANYI a884968b0c Add 'bump-version' script
All checks were successful
continuous-integration/drone/push Build is passing
It's always a good idea to simplify the release process.
2022-06-13 13:40:12 +02:00
Bruno BELANYI d97857d25f Release 0.2.0
The indentation and fold queries are now good enough that it merits a
minor bump.
2022-06-13 13:11:57 +02:00
3 changed files with 15 additions and 2 deletions

View file

@ -1,7 +1,7 @@
[package]
name = "tree-sitter-tiger"
description = "Tiger grammar for the tree-sitter parsing library"
version = "0.1.2"
version = "0.2.0"
keywords = ["incremental", "parsing", "tiger"]
categories = ["parsing", "text-editors"]
repository = "https://gitea.belanyi.fr/ambroisie/tree-sitter-tiger"

View file

@ -62,6 +62,18 @@
-c "PlenaryBustedDirectory test/ { minimal_init = './scripts/minimal_init.lua' }"
'';
bump-version = pkgs.writeShellScriptBin "bump-version" ''
NEW_VERSION="''${1}"
${pkgs.jq}/bin/jq ".version = \"''${NEW_VERSION}\"" package.json > package.json.tmp
mv package.json.tmp package.json
${pkgs.gnused}/bin/sed -i -e "s/version = \"[0-9.]\\+\"/version = \"''${NEW_VERSION}\"/" Cargo.toml
git add Cargo.toml package.json
git commit -eF <(echo "Release ''${NEW_VERSION}")
git tag -a "v''${NEW_VERSION}" -m "Release ''${NEW_VERSION}"
'';
tree-sitter-env = pkgs.stdenv.mkDerivation {
name = "tree-sitter-env";
@ -129,6 +141,7 @@
devShells = {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
bump-version
nodejs
nvim-test
(tree-sitter.override { webUISupport = true; })

View file

@ -1,6 +1,6 @@
{
"name": "tree-sitter-tiger",
"version": "0.1.2",
"version": "0.2.0",
"description": "tiger grammar for tree-sitter",
"main": "bindings/node",
"keywords": [