If we add node_modules to search path, will we be able to adjust which versions of platforms/plugins it uses just by modifying package.json?
Not sure if platforms use search path, or just plugins? Also not sure if we can install plugins from our registry using npm proper, but you can use the git repos as a workaround if not. May be useful for testing specific versions for JIRA issues etc. -Michal On Thu, Jan 8, 2015 at 3:20 PM, Andrew Grieve <[email protected]> wrote: > Nice! Great example of how to use the JS API. > > On Thu, Jan 8, 2015 at 2:55 PM, Mark Koudritsky <[email protected]> wrote: > > > Josh, thanks for the suggestion. Added it here > > < > > > https://github.com/kamrik/cordova-test-rc/commit/d3a1abeda45357c4cf32b28e6e63cc269d7d3bda > > > > > as > > process.env.HOME = path.join(__dirname, 'home'); > > > > > > On Thu, Jan 8, 2015 at 2:19 PM, Josh Soref <[email protected]> > wrote: > > > > > Mark Koudritsky wrote: > > > >Trying to run MobileSpec with the tools release candidate yesterday > > > >inspired me to write a script that would do it all with a single > > command > > > >and a local installation of cordova-lib@rc without affecting the > global > > > >install/link. This also turned out to be a good example of how to use > > > >cordova via JS API without CLI. > > > > > > I'd suggest setting HOME to path.join(PWD, 'home'); > > > > > > (or optionally doing that) > > > > > > > > > That avoids: > > > > > > * You may want to remove the ~/.cordova and ~/.plugman directories to > > > avoid using cached versions. > > > > > > > > > > > >
