Skip to content
New issue

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

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

Already on GitHub? # to your account

Custom elm-make commands #125

Open
pietro909 opened this issue Jul 14, 2017 · 2 comments
Open

Custom elm-make commands #125

pietro909 opened this issue Jul 14, 2017 · 2 comments

Comments

@pietro909
Copy link

In my project I use npm tasks, so my make command is actually yarn build which is equivalent to elm-make src/Main.elm --output dist/index.js.

From the online help, I see that there are no settings for the make command to run.

Is there a specific reason for it? Would a PR be welcome?

Thanks!

@joshgillies
Copy link

I'm interested in this also, specifically so I can ensure I'm pulling elm from a projects local ./node_modules/.bin

@pietro909
Copy link
Author

pietro909 commented May 10, 2018

I see that in autoload/elm.vim there's elm#Build accepting an input and an output file. By default is using elm-make but could be used to run another script. Or accept a pre-buld one (ie: ensure that symlinks are there, set environment variables, ...).

Just a few ideas I had right now.

EDIT:
actually, it is already using some global variables like elm_make_output_file - I think that at least in my case would make more sense to use a custom command to run an external script without modifying this plugin.

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

No branches or pull requests

2 participants