According to cordova documentation cordova prepare does:
Transforms config.xml metadata to platform-specific manifest files, copies icons & splashscreens, copies plugin files for specified platforms so that the project is ready to build with each native SDK.
I use cordova with npm and when I run npm update the packages are updated automatically. In this particular case I used npm package jquery whose main file is stored at node_modules/jquery/dist/jquery.min.js. Then I manually copy this file to www/js/res/jquery.min.js and then I load it at www/index.html by:
<script src="js/res/jquery-ui.min.js"></script>
But I want to automate this process in cordova prepare.
Thus the question is: how can you customise your cordova prepare, such that you can copy extra files to www directory?