Skip to content

Commit f069280

Browse files
committed
feat: streamline scratch:init task by removing scratch:patch and ensuring proper extension linking
1 parent 4d0b2fd commit f069280

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Taskfile.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,14 @@ tasks:
2424
- git config --global url."https://github.com/mitmedialab/prg-raise-playground-scratch-vm.git".insteadOf "git@github.com:mitmedialab/prg-raise-playground-scratch-vm.git"
2525
- git clone --recurse-submodules https://github.com/mitmedialab/prg-raise-playground.git
2626
- cd prg-raise-playground
27+
- git fetch origin
2728
- git switch dev
2829
- pnpm install
29-
- task scratch:patch
30-
- cd scratch-prg-extensions/extensions/src/arduino_basics && pnpm install
31-
32-
scratch:patch:
30+
# copy the extension to the rigth place
3331
- ln -s $PWD/scratch-prg-extensions/extensions/src/arduino_basics $PWD/prg-raise-playground/extensions/src/arduino_basics
32+
- cd scratch-prg-extensions/extensions/src/arduino_basics && pnpm install
3433

35-
scratch:local:start:
34+
scratch:watch:
3635
- cd prg-raise-playground && pnpm dev -i arduino_basics
3736

3837
app:build:
@@ -82,7 +81,7 @@ tasks:
8281
- cd build && zip -r scratch-arduino-app-{{.APP_VERSION}}.zip scratch-arduino-app && cd ..
8382

8483
watch:
85-
desc: "wath cfile changes for both python and sketch, and upload the changes to the board and restart"
84+
desc: "wathc files changes for both python and sketch, and upload the changes to the board and restart"
8685
deps:
8786
- python:watch
8887
- sketch:watch

0 commit comments

Comments
 (0)