This is a really outdated example. I keep it up for reference, but be carefull. You'll probably need to update loads of code and dependencies in order to keep the code safe 'n working. Either way, feel free to use it if you understand it 'll be a lot of work.
To run it run:
$ npm i -g cordova
$ npm i --save-dev
$ cordova platform add <platform>
$ cordova run <platform>
To make changes:
1. make your changes
$ webpack
$ cordova run <platform>