Projects/Modules with Esprunio CLI #6194
Unanswered
espruino-discuss3
asked this question in
General
Replies: 1 comment
-
Posted at 2019-10-09 by @gfwilliams Should be, yes. I believe it looks in a 'modules' directory for any modules. eg. $ cat modules/bar.js
exports = 42;
$ cat foo.js
var a = require("bar");
print(a);
$ espruino -d Pixl foo.js
# writes it to RAM
$ espruino -d Pixl --minify foo.js
# writes it to RAM with minification
$ espruino -d Pixl --minify --config MODULE_AS_FUNCTION=true --config SAVE_ON_SEND=1 foo.js
# writes to flash with minified code You may also have some success with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-10-09 by sammachin
I've got my project setup with a number of separate modules, is it possible to write this to the pixl using the command line tool?
Beta Was this translation helpful? Give feedback.
All reactions