GithubHelp home page GithubHelp logo

Comments (5)

twitchard avatar twitchard commented on May 18, 2024 3

@evancz
I propose the following: suppose elm-make includes an HTML comment somewhere in its output, indicating the file was generated with elm-make. Then, when elm-make detects that it is about to overwrite a file, it checks for that comment. If the comment is present, it overwrites the file without another thought. Otherwise, it warns the user it is going to overwrite a file and prompts for confirmation.

from elm-make.

doppioslash avatar doppioslash commented on May 18, 2024

also, how do we compile a stand-alone js file now? --output=file.js doesn't work.

from elm-make.

igrep avatar igrep commented on May 18, 2024

Well, I experienced both cases in 0.16.
According to my experience, it creates elm.js in newly created elm project,
but it creates index.html in some existing projects.
It might be caused when index.html is already created.

from elm-make.

twitchard avatar twitchard commented on May 18, 2024

This behavior should be removed. It clobbered my existing index.html and made me lose work. Very off-putting to newbies like me.

from elm-make.

evancz avatar evancz commented on May 18, 2024

This change was made to accommodate new folks. If someone new to Elm is using elm-make they probably just want the HTML to be set up for them. If they decide the want ports, they will have found docs that explain how to do that with an --output flag.

That is the rationale. I get that there are tradeoffs, but this seems like "the best compromise" for now. Perhaps it makes sense to call it something besides index.html but also kind of doesn't make sense.

from elm-make.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.