All Projects → andrewwakeling → espruino-webpack-babel-sample

andrewwakeling / espruino-webpack-babel-sample

Licence: other
A sample project which uses Webpack & Babel for Espruino

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to espruino-webpack-babel-sample

eucWatch
EUC Watch. Dash for Electric Unicycles on NRF52xx based wearables. Supports Kingsong ( All models ), Inmotion ( All ), Ninebot ( All ) , Begode ( Gotway, All ) and Leaperkim (All)
Stars: ✭ 44 (+193.33%)
Mutual labels:  espruino
purple-eye
A web-bluetooth controlled one-eyed robot
Stars: ✭ 26 (+73.33%)
Mutual labels:  espruino
micro-mqtt
A lightweight MQTT client with a complete feature set for embedded scenarios.
Stars: ✭ 13 (-13.33%)
Mutual labels:  espruino
usbhostcopro
USB Host Co-processor
Stars: ✭ 54 (+260%)
Mutual labels:  espruino

Espruino Webpack/Babel Sample

A sample project which uses Webpack and Babel with appropriate settings for Espruino.

Setup

Highly recommend installing nvm to enable easy installation of different Node runtimes.

Install/use node for this project:

nvm install
nvm use

Install dependencies:

npm i

Build the project:

npm run build

Upload to microcontroller (using WebIDE or espruino CLI). e.g. Using the command line. (Note: Your port and baud rate may vary).

espruino -b 115200 -p /dev/cu.SLAB_USBtoUART dist/entry.bundle.js

Disclaimer

I have not done comprehensive testing that ensures that all code is compiled or executes as expected.

If you run into any issues, please consider raising an issue here or in the official Espriuno repository.

Thanks!

Many thanks to the Espruino team for making this possible. It's been a real pleasure to get such quick results.

License

nvm is released under the MIT license.

Expected output

For reference, the following output is expected:

value (inside-block): is-inside
value (outside-block): is-outside
{
  "a": 1,
  "b": 2,
  "c": 3,
  "d": 4,
  "e": 5,
  "f": 6
 }
{
  "age": 34,
  "name": "Jane Doe"
 }
wheels: 4 color: yellow
A default parameter: default-value
=Promise {  }
After 2 seconds, promise results: first-promise second-promise
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].