Closed urfolomeus closed 8 years ago
Hi @urfolomeus thanks for the PR that is a good feature. Also great that you added tests, but it looks like the second commit accidentally includes the node_modules folder with everything. Could I get you remove that folder then I will be happy to merge the PR.
Oops! Yeah good point. I'll add it the gitignore and force push when I get back home. :)
@madsflensted Done now. :)
Would you like me to squash the commits or are you happy with them as is?
@urfolomeus thanks again!
@madsflensted thanks for accepting :)
published new version to npm
:+1:
I wanted to use elm-brunch on a Phoenix project that has the elm file within a
web/elm
folder, butbrunch-config.js
on the root. However doing this was runningelm make
on the root of the project, thus installingelm-stuff
andelm-package.json
on the root. This in turn meant that the elm file was unable to find its dependencies.This PR allows you to set a
config.plugins.elmBrunch.elmFolder
option (defaults tonull
), which is then passed into theexec
command as thecwd
option (setting this to null by default means that current behaviour is maintained).I also wrote some tests around this to ensure I hadn't broken anything, but I put these on a separate commit in case you'd rather not include them or their dependencies.