This could actually be an issue with your adaptor... It's been reported a bit before - Espruino draws so little power that the adaptor thinks it isn't connected to anything, and it keeps turning itself off.
If you have a high-ish wattage 10 ohm resistor, you could put that across the gnd + bat connectors on Espruino. That'll draw ~0.5 amps which should easily force the charger on. Failing that you could try plugging a USB hub in, and charging a phone on the charger at the same time :)
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.
This could actually be an issue with your adaptor... It's been reported a bit before - Espruino draws so little power that the adaptor thinks it isn't connected to anything, and it keeps turning itself off.
If you have a high-ish wattage 10 ohm resistor, you could put that across the gnd + bat connectors on Espruino. That'll draw ~0.5 amps which should easily force the charger on. Failing that you could try plugging a USB hub in, and charging a phone on the charger at the same time :)