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

Commit

Permalink
πŸ’š add yarn tooling (#10)
Browse files Browse the repository at this point in the history
πŸ’š add yarn tooling
  • Loading branch information
renardeinside authored Feb 21, 2024
2 parents 6dacca8 + 8ec0c70 commit 9adc8c4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/onpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ jobs:
with:
python-version: '3.10'
cache: 'pip'
- uses: actions/setup-node@v4
with:
node-version: 19
cache: 'yarn'
cache-dependency-path: src/typescript/yarn.lock
- name: Install yarn dependencies
run: yarn --cwd src/typescript install
- name: Build bundle
run: yarn --cwd src/typescript build
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/onrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ jobs:
with:
python-version: '3.10'
cache: 'pip'
- uses: actions/setup-node@v4
with:
node-version: 19
cache: 'yarn'
cache-dependency-path: src/typescript/yarn.lock
- name: Install yarn dependencies
run: yarn --cwd src/typescript install
- name: Build bundle
run: yarn --cwd src/typescript build
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ serve-docs:
build-bundle:
@echo "Building bundle..."
cd src/typescript && yarn build
@echo "Done."
@echo "Done."

watch-bundle:
@echo "Watching bundle..."
cd src/typescript && yarn watch

0 comments on commit 9adc8c4

Please sign in to comment.