as for flashing - probably easiest is to use programmer from nrfconnect for desktop https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-desktop dongle can be flashed over USB
as for build - check http://forum.espruino.com/conversations/323658/?offset=100
@fanoush started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
as for flashing - probably easiest is to use programmer from nrfconnect for desktop
https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-desktop
dongle can be flashed over USB
as for build - check http://forum.espruino.com/conversations/323658/?offset=100