Last active
March 27, 2024 16:26
-
-
Save microbit-carlos/39de03831c0d020e667d0dd5c5d859e2 to your computer and use it in GitHub Desktop.
Build MakeCode with local CODAL build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure node is at v16 | |
# asdf local nodejs 16.19.1 | |
git clone https://github.com/microsoft/pxt-microbit.git | |
cd pxt-microbit | |
npm install pxt --no-save | |
npm install | |
# To use a different CODAL version the branch/tag can be configured changing pxtarget.json | |
# The PXT_COMPILE_SWITCHES value builds only CODAL | |
# PXT_NODOCKER disables using docker to use the local tooling | |
# PXT_FORCE_LOCAL, PXT_RUNTIME_DEV & --local ensure everything is build locally without cloud builds | |
PXT_COMPILE_SWITCHES=csv---mbcodal PXT_NODOCKER=1 PXT_FORCE_LOCAL=1 npx pxt buildtarget --local | |
PXT_COMPILE_SWITCHES=csv---mbcodal PXT_NODOCKER=1 PXT_FORCE_LOCAL=1 PXT_RUNTIME_DEV=1 npx pxt serve --local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment