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. > > > > > > >
