Make files.. It seems I can now answer my last query (what batch file calls gradlew.bat)...
It seems that "cordova" in Windows is just a batch file that calls Node (to compile I assume). In Windows, use
where cordova (at the Cmd line) to find
cordova.cmd. This can then be treated as a make file.
It's easily edited and if you have set up the USB Android Device Bridge then, for example, you can add the following two lines after the Node call..
adb install -r -g "C:\AppStudioProjects\HelloWorldProject\phonegap\platforms\android\build\outputs\apk\android-debug.apk"
adb shell monkey -p com.nsbasic.HelloWorld -c android.intent.category.LAUNCHER 1
..assuming you change
com.nsbasic.HelloWorld accordingly, this is tested on Android 7 to deploy and run quickly to a phone and it works well.
It's a long road and a lot of setting up, but in the end well worth it. Once set up, in NSBasic, just do Alt+r, Alt+c (to do "Make Native App with PhoneGap CLI") and watch as within seconds (about 10) the new app is running on your phone in the perfect test environment.
cordova at the Cmd line (dos box) to see the options. I also modified
cordova.cmd to run
cordova build instead of
cordova emulate (replace
build). This removes the error report if you have removed the emulator (as I have) which NSB rightly say is not recommended.
Now if we could just couple that to the F5 function key.....