Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit dd7722f

Browse files
committed
docs: add note about grammar dependencies
1 parent 6c511ee commit dd7722f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,20 @@ Clone this repo with :
7373
git clone --recurse-submodules https://github.com/AndroidIDEOfficial/android-tree-sitter
7474
```
7575

76+
### Install grammar dependencies
77+
78+
You might need to install the Node packages required by the grammars. To do so, you may do
79+
something like the following:
80+
81+
```bash
82+
# from the root directory of this project
83+
for pck in $(find grammars -maxdepth 2 -name "package.json" -type f); do
84+
cd $(dirname $pck)
85+
npm install
86+
cd -
87+
done
88+
```
89+
7690
### Build
7791

7892
A normal Gradle build (`./gradlew build`) can be executed in order to build everything for Android

0 commit comments

Comments
 (0)