Skip to content
Discussion options

You must be logged in to vote

Welcome!

(FYI – I converted this question from an Issue report to a Discussion thread)

The Moddable SDK is primarily for building executables for microcontrollers, not computers. We do build and run executables on computers for our simulator (mcsim) and for many of our tools (mcconfig is written in JavaScript and executed by our XS JavaScript engine). We have limited support for building command line tools.

A good place to start is the the JavaScript REPL example at $MODDABLE/examples/js/repl. To run that on macOS, set-up the Moddable SDK and then:

cd $MODDABLE/examples/js/repl
mcconfig -m -p x-cli-mac
repl

Note a couple things:

  • The build target is "x-cli-mac" instead of "mac" or "sim" …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@mikeptweet
Comment options

@phoddie
Comment options

Answer selected by mikeptweet
Comment options

You must be logged in to vote
1 reply
@phoddie
Comment options

Comment options

You must be logged in to vote
1 reply
@phoddie
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #973 on December 06, 2022 16:39.