Sample target for a Microsoft MakeCode Editor
If you'd like to start your own editor, fork this repo and fix all the TODOs.
- Fork repo and setup local server (see below)
- Update metadata in
pxtarget.json. Change the id, title, name, etc... to your taste.
sim/simulator.ts. If needed add additional JS library under
- Update the APIs in
sim/api.tsto use your runtime.
- Test your editor in the local server
pgk staticpkg --gh --bumpto upload a static version to GitHub pages.
These instructions allow to run locally to modify the sample.
The following commands are a 1-time setup after synching the repo on your machine.
install the PXT command line
npm install -g pxt
- install the dependencies
Running the local server
After you're done, simple run this command to open a local web server:
After making a change in the source, refresh the page in the browser.
Updating the tools
If you would like to pick up the latest PXT build, simply run
More instructions at https://github.com/Microsoft/pxt#running-a-target-from-localhost