The user might run donejs add cordova more than once, so it might be a good idea to do a sanity check that the build.js doesn't already contain the cordova text. Probably a simple regex test for cordovaOptions and/or require("steal-cordova") is enough.
The user might run
donejs add cordova
more than once, so it might be a good idea to do a sanity check that the build.js doesn't already contain the cordova text. Probably a simple regex test for cordovaOptions and/or require("steal-cordova") is enough.