Custom `elm-make` commands
pietro909 opened this issue · 2 comments
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!
I'm interested in this also, specifically so I can ensure I'm pulling elm from a projects local ./node_modules/.bin
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.