Skip to content

scratch-ed/scratch-gui

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11,915 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scratch-debugger-gui

This repository

This repository is a fork of scratch-gui. Blink, the scratch debugger described in the master's thesis Blink: een educatieve software-debugger voor Scratch 3.0, is implemented in this repository and the scratch-debugger-vm repository.

Building & development

Dependencies

  • node.js v16.18.0 (lts Gallium)
  • npm
  • git

scratch-judge

scratch-debugger-gui uses the scratch-judge as local npm package.

Clone the scratch-judge repository in the same directory where you clone(d) scratch-debugger-gui.

git clone git@github.ugent.be:scratch4d/scratch-judge.git

Install its dependencies and build the scratch-judge package.

cd itch
npm install
npm run build

Next link this local npm package. Run this command in the scratch-judge-folder:

npm link

Every change in the scratch-judge package needs a rebuild with npm run build for the changes to take effect in scratch-debugger-gui.

scratch-debugger-vm

scratch-debugger-gui uses a modified version of scratch-vm, scratch-debugger-vm.

Clone the repository.

git clone git@github.ugent.be:scratch4d/scratch-debugger-vm.git

Install and build the package:

cd scratch-debugger-vm
npm install
npm run build

Next link this local npm package. Run this command in the scratch-debugger-vm-folder:

npm link

scratch-debugger-gui

Clone the scratch-debugger-gui-repository in the same folder as where the scratch-judge repository is. You can add the --depth=1 option because this repository contains a few big files.

git clone --depth=1 git@github.ugent.be:scratch4d/scratch-debugger-gui.git

Install and build the scratch-debugger-gui package.

cd scratch-debugger-gui
npm install
npm run build

The npm install command can give an error. As suggested, use --legacy-peer-deps to make it work.

Finally, execute the following command in the root of the repository. This makes sure the local scratch-vm is being used, instead of the one from the npm repositories.

npm link scratch-vm

Running

The scratch GUI with debugger can be executed with the command below, in the scratch-debugger-gui-directory. It can be accessed on http://localhost:8601/ and changes to the code will immediately be visible.

npm start

Deploying

Make sure that the build folder contains the most recent build (see Building & development). Run this command to deploy to GitHub Pages:

npm run deploy

The project will be visible on: https://github.ugent.be/pages/scratch4d/scratch-debugger-gui/.

Icons

All added icons are located in src/debugger-icons.

Links

Changes

  • icon--debugger.svg: Added color #4C97FF.

Extra

See README_ORIGINAL.md for the original README of the scratch-gui-project.

About

Graphical User Interface for creating and running Scratch 3.0 projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 93.2%
  • CSS 6.7%
  • Other 0.1%