I'd remove -DBOARD_PCA10059 as this pulls in some SDK board definitions for nordic dongle, see targetlibs/nrf5x_15/components/boards/pca10059.h
With SWD it does not matter much as it is easy to recover from mistakes. OTOH having some bootloader is practical. The USB one is nice as it is fast, works also in Windows with nrf tools and does not depend on softdevice version, almost as good as SWD for updates.
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.
I'd remove
-DBOARD_PCA10059
as this pulls in some SDK board definitions for nordic dongle, seetargetlibs/nrf5x_15/components/boards/pca10059.h
With SWD it does not matter much as it is easy to recover from mistakes. OTOH having some bootloader is practical. The USB one is nice as it is fast, works also in Windows with nrf tools and does not depend on softdevice version, almost as good as SWD for updates.