Closed darbysauter closed 4 years ago
I don't know enough about rollup to help I'm afraid - but what exactly are you trying to accomplish here?
Usually just npm install
in the root of EspruinoTools
should be enough to get it so you can use it./
I never got it to work, but all I was trying to do was step through this program to see how updating works as I would like to do it from my android app. I got it to run in a debugger by running bin/espruino-cli.js with vscode.
I appreciate the effort!
Ahh, ok - then you shouldn't need to do any of that at all. Just npm install
and bin/espruino-cli.js
should be enough.
If you've got any questions about the upload process feel free to ask on the forum.
You might also find that if you're looking at Bluetooth Low Energy, https://github.com/espruino/BangleApps/blob/master/bin/apploader.js is a less complex thing to look at.
It's meant for Bangle.js but the same basic things (BLE connection, upload to Storage) apply to all BLE Espruino devices.
I am new to building js packages, I come from mainly java, kotlin, native, etc. So maybe I just don't understand this.
I cloned the repo, tried building using "npm run build" and "npm run-script build" but I keep getting:
Which looks like the line
Error: 'isCore' is not exported by node_modules/resolve/index.js
is what is causing it to fail, Which is a part of the resolve package. So I tried "npm install resolve" and tried building, but no success.Some build instructions would be nice in the README