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

Commit

Permalink
chore: install npm packages for cpp grammar only
Browse files Browse the repository at this point in the history
  • Loading branch information
itsaky committed Feb 18, 2024
1 parent dd7722f commit 36bfd62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 27 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ jobs:
run: $ATS_SUDO $ATS_APT_UPDATE && $ATS_SUDO $ATS_APT_UPGRADE && $ATS_SUDO $ATS_APT_INSTALL $ATS_APT_DEPS
- name: Install Node packages
run: |
for pck in $(find grammars -maxdepth 2 -name "package.json"); do
cd $(dirname $pck)
npm install
cd -
done
cd grammars/cpp && npm install && cd -
- name: Restore cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -119,11 +115,7 @@ jobs:
run: $ATS_SUDO $ATS_APT_UPDATE && $ATS_SUDO $ATS_APT_UPGRADE && $ATS_SUDO $ATS_APT_INSTALL $ATS_APT_DEPS
- name: Install Node packages
run: |
for pck in $(find grammars -maxdepth 2 -name "package.json"); do
cd $(dirname $pck)
npm install
cd -
done
cd grammars/cpp && npm install && cd -
- name: Restore cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -171,11 +163,7 @@ jobs:
run: $ATS_SUDO $ATS_APT_UPDATE && $ATS_SUDO $ATS_APT_UPGRADE && $ATS_SUDO $ATS_APT_INSTALL $ATS_APT_DEPS
- name: Install Node packages
run: |
for pck in $(find grammars -maxdepth 2 -name "package.json"); do
cd $(dirname $pck)
npm install
cd -
done
cd grammars/cpp && npm install && cd -
- name: Restore cache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -233,11 +221,7 @@ jobs:
run: $ATS_SUDO $ATS_APT_UPDATE && $ATS_SUDO $ATS_APT_UPGRADE && $ATS_SUDO $ATS_APT_INSTALL $ATS_APT_DEPS
- name: Install Node packages
run: |
for pck in $(find grammars -maxdepth 2 -name "package.json"); do
cd $(dirname $pck)
npm install
cd -
done
cd grammars/cpp && npm install && cd -
- name: Restore cache
uses: actions/cache@v4
with:
Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,12 @@ git clone --recurse-submodules https://github.com/AndroidIDEOfficial/android-tre

### Install grammar dependencies

You might need to install the Node packages required by the grammars. To do so, you may do
something like the following:
You might need to install the Node packages required by the grammars. For example, the `cpp` grammar
requires you to install the packages:

```bash
# from the root directory of this project
for pck in $(find grammars -maxdepth 2 -name "package.json" -type f); do
cd $(dirname $pck)
npm install
cd -
done
cd grammars/cpp && npm install && cd -
```

### Build
Expand Down

0 comments on commit 36bfd62

Please sign in to comment.