Skip to content

Commit

Permalink
Merge pull request #353 from arkedge/feature/move-to-pnpm
Browse files Browse the repository at this point in the history
Move NodeJS package manager to pnpm
  • Loading branch information
sksat authored Jul 22, 2024
2 parents eb2f6f3 + c03b58e commit 6512540
Show file tree
Hide file tree
Showing 12 changed files with 1,750 additions and 2,619 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@ jobs:
- name: setup c2a-core
run: ./setup.sh

- uses: pnpm/[email protected]
with:
package_json_file: examples/${{ matrix.c2a_user }}/package.json

- uses: actions/[email protected]
with:
cache: npm
cache-dependency-path: examples/${{ matrix.c2a_user }}/package-lock.json
cache: pnpm
cache-dependency-path: examples/${{ matrix.c2a_user }}/pnpm-lock.yaml

- name: Cache C2A devtools
id: cache-c2a-devtools
Expand Down Expand Up @@ -88,7 +92,7 @@ jobs:
- name: the heaviest objects in universe
working-directory: ./examples/mobc
run: |
npm ci
pnpm install --frozen-lockfile
- name: build mobc C2A
if: matrix.c2a_user == 'subobc'
Expand All @@ -105,7 +109,7 @@ jobs:
if: matrix.c2a_user == 'mobc'
working-directory: ./examples/mobc
run: |
npm run devtools:sils &
pnpm run devtools:sils &
sleep 3
- name: run C2A (mobc & subobc)
if: matrix.c2a_user == 'subobc'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/validate-renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ jobs:

steps:
- uses: actions/[email protected]

- uses: pnpm/[email protected]
with:
version: 9

- uses: actions/[email protected]

- name: install
run: |
npm install -g renovate
pnpm install -g renovate
- name: validate
run: |
renovate-config-validator
2 changes: 1 addition & 1 deletion docs/development/development_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ nvm は Node.js のインストーラー・バージョンマネージャであ
インストール: https://github.com/nvm-sh/nvm#installing-and-updating

### yarn
[C2A DevTools](https://github.com/arkedge/gaia/tree/v0.6.1/tmtc-c2a/devtools_frontend) が有効な [Gaia](https://github.com/arkedge/gaia) (tmtc-c2a) のビルド (現状では `npm install` 時に内部で行われる) に必要.
[C2A DevTools](https://github.com/arkedge/gaia/tree/v0.6.1/tmtc-c2a/devtools_frontend) が有効な [Gaia](https://github.com/arkedge/gaia) (tmtc-c2a) のビルド (現状では `pnpm install` 時に内部で行われる) に必要.

インストール: https://classic.yarnpkg.com/lang/en/docs/install/

Expand Down
9 changes: 5 additions & 4 deletions docs/sils/c2a_dev_runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ sudo apt install gcc-multilib protobuf-compiler libclang-dev cmake g++ g++-multi
3. `/examples/mobc/``/examples/subobc/` で次を実行する.
```
nvm install
npm install
corepack enable
pnpm install
```


Expand All @@ -39,7 +40,7 @@ MOBC 環境 (`/examples/mobc/`) を例にする.

1. 1 つ目のターミナルで `/examples/mobc/` に移動し,次を実行する.
```
npm run devtools:sils
pnpm run devtools:sils
```
2. ブラウザで `http://localhost:8900/devtools/` を開くと,テレコマ通信が可能となる.

Expand All @@ -50,7 +51,7 @@ MOBC 環境 (`/examples/mobc/`) を例にする.

1. 1 つ目のターミナルで `/examples/mobc/` に移動し,次を実行する.
```
npm run devtools:debug
pnpm run devtools:debug
```
2. VS Code のデバッガで `Debug executable 'c2a-example-mobc` を実行する.
3. ブラウザで `http://localhost:8900/devtools/` を開くと,テレコマ通信が可能となる.
Expand All @@ -64,5 +65,5 @@ npm run devtools:debug


## その他
`npm run *` コマンドについては,以下のファイルなどを参照すること.
`pnpm run *` コマンドについては,以下のファイルなどを参照すること.
https://github.com/arkedge/c2a-core/blob/63af0662d09ecf427e035602935891abc09d09dd/examples/mobc/package.json#L1-L25
Loading

0 comments on commit 6512540

Please sign in to comment.