wzrd.in icon indicating copy to clipboard operation
wzrd.in copied to clipboard

specify node/browserify version to use when bundling

Open max-mapper opened this issue 9 years ago • 2 comments

We have to globally upgrade node and browserify right now which on the one hand is nice because we get new versions, but is bad from an API standpoint because the same GET request to wzrd.in one day might return different results the next day.

It would be cool if we strived towards reproducibility by default in the HTTP API, so you could specify the node + browserify versions in the GET requests to build a module in a specific environment

Maybe combined with https://github.com/jfhbrook/wzrd.in/issues/117 this wouldn't be too bad to implement

max-mapper avatar Oct 01 '16 17:10 max-mapper

I've been thinking about exposing a number of new APIs, either under separate routes or under a /v2/ namespace. This could be a good way to do this.

An open question here is what to do when we don't feel like supporting tomorrow's 0.10 anymore.

jfhbrook avatar Oct 02 '16 01:10 jfhbrook

As far as how docker can enable this: We can extend the docker stuff to adjust node version using nvm, frontloading the node install in the image for speed. There isn't a similar tool that I know of for npm, though I would very much like one to exist.

jfhbrook avatar Oct 02 '16 01:10 jfhbrook