mhartington / cordova-config-utils

32 stars 5 forks source link

Enable to override the cordova home folder #7

Closed akofman closed 8 years ago

akofman commented 8 years ago

In some projects it can be clearer to separate all Cordova stuffs in a separate folder. For instance, I like to have a simple project structure like that :

package.json
|
\ src/
\ scripts/
\ cordova/

In this particular case the hooks folder is not accessible from node_modules/../.. anymore. So I propose to add a cordovaHome prop in the package.json file to override the Cordova home path when needed.

I'm not sure this is the more elegant solution here but now you have the idea ;)

mhartington commented 8 years ago

Hmm, looks good, tested out on a regular cordova project. Do you have an example project with the type of structure you talk about? Would love to test it out myself just to verify

akofman commented 8 years ago

Just private ones ... I quickly create this project if you want : https://github.com/akofman/cordova-config-utils-example

mhartington commented 8 years ago

Looks good!