Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify bin creation #31

Open
sindresorhus opened this issue Dec 15, 2014 · 3 comments · May be fixed by #34
Open

Simplify bin creation #31

sindresorhus opened this issue Dec 15, 2014 · 3 comments · May be fixed by #34

Comments

@sindresorhus
Copy link
Contributor

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?

@kevva
Copy link
Owner

kevva commented Dec 30, 2014

So instead of defining .dest() it could check for bin in the package.json and use that path? Sounds good to me.

@sindresorhus
Copy link
Contributor Author

Yup.

@kevva
Copy link
Owner

kevva commented Dec 30, 2014

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.

kevva added a commit that referenced this issue Dec 30, 2014
kevva added a commit that referenced this issue Dec 30, 2014
@kevva kevva linked a pull request Dec 30, 2014 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants