Comments (5)
@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.
also, how do we compile a stand-alone js file now? --output=file.js
doesn't work.
from elm-make.
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.
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.
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)
- Unhelpful error if elm-stuff exists but elm-package.json doesn't HOT 3
- modified source files are not reliably detected due to filesystem timestamp resolution HOT 1
- Feature request: --warn-ignore flag for ignoring certain files when using --warn HOT 2
- String literal containing closing script tag makes generated HTML blow up HOT 2
- elm-make get stuck during compile HOT 3
- Stop unnecessary compilation when interface is not changed HOT 7
- Feature Proposoal: Format Flag for JS vs HTML output HOT 2
- Eating all CPU and memory HOT 2
- --warn about unused variables HOT 2
- Elm run-time error: decoder not found HOT 2
- Illegal instruction: 4 HOT 3
- [feature suggestion] elm-make auto insert type annotation HOT 5
- Output of "elm-make" fails to pass the Closure compiler HOT 2
- elm-make crash on unicode escapes in range \xdc00..\xdfff HOT 4
- generates invalid javascript for unicode characters in range \xd800..\xdbff HOT 3
- Recursive anonymous functions in List fold consume all CPU HOT 2
- Elm make generates broken build if repo name contains dots HOT 1
- probably infinite type causing loop HOT 1
- `elm-package.json` should pick up the correct source directory.
- Support for importing generated code through ES6 imports HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elm-make.