-
Notifications
You must be signed in to change notification settings - Fork 66
elm-package init #122
Comments
+1. This would provide a similar use to things like yo generators. At the moment it's not too much of a hassle to get people to download a standard zip containing Filling out things like repository from This also ties into elm-lang/elm-make#23. Some of the suggestions in there would be more suited to being part of elm-package first and foremost, then called when hitting an error from elm-make. Point number 1 is a great example in there of this - there should be an elm-package init command so that the user doesn't have to run something they wouldn't expect to generate (elm-make) a skeleton in order to start a project. |
I thought about the .gitignore. It would make more sense I think for a .gitignore for Elm to be added to Github's defaults, like every other language. The most common workflow that I see people use with Github is always
This proposal makes it so that the workflow instead becomes
|
There are (I think multiple) PRs open to add an Elm.gitignore to GitHub's gitignores repository. Sadly there is very little activity around merging those PRs. |
There are, with github/gitignore#1440 being the first made, but I think github/gitignore#1610 is the most complete. According to the contribution docs, the only thing that that PR is missing is a link to an official source talking about a valid .gitignore for a standard Elm projects. |
Having a good "get started" path makes sense. I do not think it would look exactly like this though. Some current ideas are to have an Point is, this is in consideration, but having this issue open should not change the time-to-completion. |
enhancement request:
Knowing that one of the main goals of Elm is to make "getting started" as quick as javascript development, I thought this might be a great addition.
When writing front-end or back-end projects or modules with javascript, for the last few years I have been using NPM. Getting a basic project setup is as easy as
npm init
. It seems like this might be overthinking, but we get this same functionality once we install a package.elm-package init
would produce the same workflow as installing a packageMay I add that to elm-package.json for you? (y/n)
Maybe some more interesting defaults to
elm-package.json
would be great too. I might try a PR if interested.It would be really rad if a new user only had to do
elm-package init
and get everything they need to compile their new program with a main and hello world.The text was updated successfully, but these errors were encountered: