Skip to content

Commit 2390bff

Browse files
Add tree-sitter-properties parser (#20)
1 parent 8dab10d commit 2390bff

File tree

4 files changed

+53
-25
lines changed

4 files changed

+53
-25
lines changed

.github/workflows/deploy.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ jobs:
3333
- name: Build
3434
run: pnpm build
3535

36+
- name: Read version from package.json
37+
run: |
38+
VERSION=$(node -p "require('./package.json').version")
39+
echo "version=$VERSION" >> $GITHUB_ENV
40+
41+
- name: Create Git tag
42+
run: |
43+
git tag ${{ env.version }}
44+
git push origin ${{ env.version }}
45+
3646
- name: Publish to NPM
3747
uses: JS-DevTools/npm-publish@v3
3848
with:

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ Repository building wasms for use by Cursorless.
44

55
Instructions for adding new parser wasms (WIP):
66

7-
- Add the tree-sitter package for the specific language to `package.json` directly, or use pnpm to do so.
7+
1. Add the tree-sitter package for the specific language to `package.json` directly, or use pnpm to do so.
88

9-
- If a build failure of some sort occurs, you will need to utilize the special build options in `build.ts`, specifically in the `processParser` function. If you can't figure it out, leave the PR as a draft and ask for help.
9+
1. Bump minor version in `package.json`
10+
11+
1. Run `pnpm install --ignore-scripts` to update pnpm lock file
12+
13+
- If a build failure of some sort occurs, you will need to utilize the special build options in `build.ts`, specifically in the `processParser` function. If you can't figure it out, leave the PR as a draft and ask for help.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"tree-sitter-nix": "github:nix-community/tree-sitter-nix#66e3e9ce9180ae08fc57372061006ef83f0abde7",
5252
"tree-sitter-perl": "github:ganezdragon/tree-sitter-perl#8d48b29910d2094cb1fc5c9c4ed8917c26b907de",
5353
"tree-sitter-php": "github:tree-sitter/tree-sitter-php#f7cf7348737d8cff1b13407a0bfedce02ee7b046",
54+
"tree-sitter-properties": "github:tree-sitter-grammars/tree-sitter-properties#6310671b24d4e04b803577b1c675d765cbd5773b",
5455
"tree-sitter-python": "github:tree-sitter/tree-sitter-python#71778c2a472ed00a64abf4219544edbf8e4b86d7",
5556
"tree-sitter-query": "github:tree-sitter-grammars/tree-sitter-query#930202c2a80965a7a9ca018b5b2a08b25dfa7f12",
5657
"tree-sitter-r": "github:r-lib/tree-sitter-r#v1.1.0",

pnpm-lock.yaml

Lines changed: 36 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)