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

💚 add yarn tooling #10

Merged
merged 3 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading