auth0 / webtask-bundle

Module and CLI to bundle your code for use on https://webtask.io
28 stars 6 forks source link

Adding dependency version checker #2

Closed jcenturion closed 8 years ago

jcenturion commented 8 years ago

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.

screen shot 2016-02-11 at 8 59 16 pm

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.

screen shot 2016-02-11 at 9 00 24 pm

wt-bundle modules sync -i

Same as sync but asking for each module.

screen shot 2016-02-11 at 9 00 57 pm
ggoodman commented 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.

jcenturion commented 8 years ago

@ggoodman: I've already applied the changes :)