bin-wrapper
bin-wrapper copied to clipboard
Simplify bin creation
Currently we manually have to create useless proxies like these: https://github.com/kevva/elm-platform-bin/tree/master/bin
The reason is that we have to define the path to the binary in package.json up front.
Another way we could do it is to instead have bin-wrapper copy/move the binary to a fixed path/name we define in package.json.
@kevva What do you think?
So instead of defining .dest() it could check for bin in the package.json and use that path? Sounds good to me.
Yup.
It has to match the one defined in .use() though if you were to create multiple binaries like we do in elm-platform. In other words, the binary name must be the same as the bin in package.json.