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

Request: option to use use local elm binary #18

Open
urfolomeus opened this issue Mar 31, 2016 · 4 comments
Open

Request: option to use use local elm binary #18

urfolomeus opened this issue Mar 31, 2016 · 4 comments

Comments

@urfolomeus
Copy link
Contributor

This is more of a request than an issue. It occurred to me that seeing as you can now install the elm command line tool via npm, that you could install a project-specific version of elm and run from node_modules/bin/elm instead of elm. This would allow you specify elm as a project dependency and also lock to a particular version if need be.

With this being the case elm-brunch would need to be able to either take an option that would specify the elm binary command to run, or that would check first for a local elm and default to global if a local not found.

What do you think? I don't mind adding this feature if you think it is worthwhile.

@madsflensted
Copy link
Owner

I guess you would normally have the elm binary location in your path of in the shell you run brunch in, but having an option to specify to location could maybe come in handy anyway.

@urfolomeus
Copy link
Contributor Author

Cool, thanks. I'll have a look at it over the weekend. :)

@AdrianRibao
Copy link

+1 for this. Now I'm getting always

/bin/sh: 1: elm: not found

and I have in bashrc:

export PATH=./node_modules/.bin:$PATH

So it could be great if we had an option for setting the executable to:

$(npm bin)/elm

@urfolomeus
Copy link
Contributor Author

Yeah sorry, I've been tied up with other stuff so never got round to implementing. I might have time over the coming week though :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants