Closed jcenturion closed 8 years ago
@jcenturion this is awesome work. I really like the usability boost that this will give.
So much so, that I want to explore integrating it into wt-cli
as well. To make that work, what we need is the ability to call your exported utility functions without them directly calling console.log
.
Ideally, the utility methods you expose in checker.js
should be async functions that either return a Promise
or Observable
or accept node-style callback functions when they complete. Depending on the type of async approach you take, they will need a mechanism to either accept callback functions, emit values (observable) or resolve to something with all the information needed to generate the output you show.
I think this library will be more useful in the long-run if it has a node API that is output-agnostic that is consumed by the CLI where the output is actually generated.
@ggoodman: I've already applied the changes :)
This PR adds new functionalities to sync/check modules against available modules on webtask.io.
wt-bundle modules check
This option allows you to check if the required modules by your app are available on webtask.io.
wt-bundle modules sync
This option allows you to sync your
package.json
with the available version of each module on webtask.io. It will take the latest version of each module.wt-bundle modules sync -i
Same as
sync
but asking for each module.