-
Notifications
You must be signed in to change notification settings - Fork 13
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
Custom Source Directory #34
Comments
How do you propose this path get's specified? |
+1. Allowing |
The Elm compiler doesn't support |
But with elm-git-install, the package's elm.json is never read by the compiler. In which case, elm would never get a chance to complain. Although, I guess using elm-git.json at package level with the source-directories key could work as well and it'll be less hacky. |
|
Right. It'll make working on the package more difficult.
What about this? |
Sorry for the delay on this. I'll try to articulate my concerns this weekend. |
In think the way this would have to be implemented, is that This is not an ideal situation, though, as you'd have to specify it per project, but I think that's the best we can do. |
I've managed to get elm-git-install to install a component library from Gitlab. However, it expects it to be in root/src. The idea was this Elm UI component library we're building would live in a monorepo with other tech stacks like React, documentation, etc. so it'd be in a sub-directory. I've briefly glanced at the elm-git-install source code, and it appears y'all were thinking along the same lines:
If you look at how it installs it, it puts your repo + "/src" at the end. Before I go attempting to make a PR, I just want to make sure I have the right idea here. It appears I'd need to modify
populateSources
to look atopts
to see if there are any custom options, and instead of hardcoding/src
it'd be likeopts.path + '/src'
or something like that.The text was updated successfully, but these errors were encountered: