In Phonegap Boilerplate server, you can set the version number in ./version.json.
When a server is running, you can get its version by calling the route GET /version.
To reduce the start-up time and the app size, you can build a distribution app file.
This file (www/dist/main.js) is a compilation of all the app files.
This file is produced by r.js, the RequireJS optimizer.
The configuration file of the optimizer is www/build.js.
You can refer to the r.js documentation, for more informations.
When you want to build a distribution version of your app,
isProductionConfig to true in your config file (www/js/config.js)make buildTo make requirejs use your compiled file, change the window.useDistFile variable to true.
Note: If isProductionConfig or window.useDistFile are false, a warning will be displayed.

This helps to avoid pushing a dev app on a store (as I once did... :no_mouth:).
To disable this warning, set the hideDistWarning to true in your config file.