Open Kurren123 opened 4 years ago
Note that user names rules are here: https://github.com/shinnn/github-username-regex
According to the form validation messages on Join Github page,
For the module names, they are here: https://github.com/elm/compiler/blob/38670361cd4b9f9f09621f3f5a7dbe07ebde7bf2/compiler/src/Elm/Package.hs#L316
So from a quick glance:
--
inside-
at the beginning or at the endFor user_name/dir
, were you thinking about the logged-in user for the user name?
This would make sense.
Apparently, it is be available cross-plaform with: https://nodejs.org/api/os.html#os_os_userinfo_options.
Perhaps we could transform the directory name into something friendly?
We could indeed, I have put above the restrictions to respect.
I agree that the combination OS_user/current_directory
should be more useful than my/application
for the large majority of cases.
Following from the discussion here:
@rlefevre replied with:
Thinking about this, maybe if the default is no good you would then specify the
name
in the application.json? I'm just trying to think of what happens in the majority of cases. I think most of the time theelm.json
file sits in the root directory which has a kind of application name. But I think we probably need more opinions here.Also from @rlefevre:
Perhaps we could transform the directory name into something friendly?