halohalospecial / atom-elmjutsu

A bag of tricks for developing with Elm. (Atom package)
https://atom.io/packages/elmjutsu
MIT License
192 stars 24 forks source link

Add option for running Elm executable(s) local to project directory #133

Closed mrattner closed 5 years ago

mrattner commented 5 years ago

What is the change?: Add a config option to prepend \<project directory>/node_modules/bin to the PATH when running the Elm executable(s). The options.local object is defined in the sb-exec readme.

Why did I do this?: To support a "virtual environment" style of Elm projects. I like to install language compilers in a local sandbox rather than use a system-wide binary. This means I can, for example, use different versions of a language in different projects.

halohalospecial commented 5 years ago

Hi @mrattner!

Elmjutsu 9.0.0 now allows relative paths (relative to elm.json) for Elm Path. Would that be enough for your use case?

mrattner commented 5 years ago

That feature should cover what I want, and is more flexible than what I've come up with here--thank you for implementing it! :+1:

I can't get it to work, unfortunately, so I opened an issue: #141