Git Product home page Git Product logo

Comments (3)

bdukes avatar bdukes commented on July 20, 2024

At the moment we're using gulp-rename to deal with the name. I think that's a more robust solution, since specifying an output file name won't work if there are multiple input files. Does that make sense to you?

from gulp-elm.

alexspurling avatar alexspurling commented on July 20, 2024

As far as I understand, Elm make can only ever have one output file. Any multiple input files will be compiled into a single output .js or .html. Maybe that assumption is incorrect?

from gulp-elm.

bdukes avatar bdukes commented on July 20, 2024

That is correct, but the way that gulp-elm works is that each input file will fire off its own instance of elm-make. If you want multiple files to be compiled together, you can use gulp-elm's bundle function, which does require you to specify an output file name.

If you examine the example in the readme, when the src/ directory contains multiple matching files (e.g. One.elm and Two.elm), the elm task will generate dist/One.js and dist/Two.js, and the elm-bundle task will generate dist/bundle.js.

Let us know if that sounds like it works for you, if you have any suggestions to how the package works or how to clarify the documentation. Hope it helps!

from gulp-elm.

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.