add build instructions

This commit is contained in:
Peli de Halleux
2019-11-18 10:23:58 -08:00
parent 7e3b0d95d1
commit 9a0483d942

View File

@ -64,7 +64,7 @@ cd ..
``` ```
6. Clone this repository. 6. Clone this repository.
``` ```
git clone https://github.com/microsoft/pxt-microbit git clone https://github.com/microsoft/pxt-microbit-next
cd pxt-microbit cd pxt-microbit
``` ```
7. Install the PXT command line (add `sudo` for Mac/Linux shells). 7. Install the PXT command line (add `sudo` for Mac/Linux shells).
@ -80,8 +80,8 @@ This step is only required if you intend to make changes to pxt and/or
pxt-common-packages repos. If all you want is serve a local Makecode, you can skip pxt-common-packages repos. If all you want is serve a local Makecode, you can skip
this step. this step.
``` ```
npm link ../pxt pxt link ../pxt
npm link ../pxt-common-packages pxt link ../pxt-common-packages
``` ```
Note the above command assumes the folder structure of Note the above command assumes the folder structure of
``` ```
@ -92,6 +92,16 @@ Note the above command assumes the folder structure of
pxt pxt-common-packages pxt-microbit pxt pxt-common-packages pxt-microbit
``` ```
## Building with CODAL locally
The following commands force a local build using CODAL.
```
export PXT_NODOCKER=1
pxt clean
pxt buildtarget --local
```
### Running ### Running
Run this command from inside pxt-microbit to open a local web server Run this command from inside pxt-microbit to open a local web server