-
Notifications
You must be signed in to change notification settings - Fork 45
Friendlier elm-make interface for beginners #23
Comments
The above is my suggestion for how |
I am going to try to do this in the next couple days. I like it. I think we can combine the |
Feedback based on the Sublime plugin:
|
I can't understand either of these points. Can you move this to its own issue and describe your scenario more completely? I don't know how sublime works, I don't know what you are asking for or how it relates to any of the very concrete suggestions made in this thread. |
The latter point is more concrete:
The default we use is The former point might belong in a separate thread. It's difficult for us to infer what file to build. It seems like a |
I.e. |
Please open another issue. |
@evancz I've changed my mind regarding the Instead I think we should:
Let's talk about this at the meeting later. |
@laszlopandy, if you get a chance, I'd be curious if you think we can bring any ideas over. |
That link makes it look like a cabal-type thing. Is there any info about On Thursday, September 24, 2015, Evan Czaplicki [email protected]
|
@laszlopandy I noticed under For Library Authors there were no suggestions but I believe I have one from my own experience today. It looks like if no modules are specified for |
For end users (not creating a library)
$ elm make
(no arguments)elm-package.json
or*.elm
, print:No elm project found, should one be created?
Main.elm
and defaultelm-package.json
*.elm
exists, print:No elm-package.json was found, should one be created? (y/n)
elm-package.json
*.elm
andelm-package.json
exist, print:Error: Please specify a main .elm file
$ elm make Main.elm
elm-package.json
Main.elm
, and all modules it depends onindex.html
$ elm make Main.elm -o elm.js
elm.js
$ elm make Main.elm -o mypage.html
mypage.html
$ elm make Main.elm --node-js -o node-test.js
Elm.worker(Elm.Main);
to the end to start the app in NodeJS$ elm make X.elm --node-js -o node.html
--node-js
is used.$ elm make X.elm -o page.htm
For library creators
TODO
The text was updated successfully, but these errors were encountered: