Git Product home page Git Product logo

Comments (7)

annaghi avatar annaghi commented on July 20, 2024 1

Sorry, I am not going to implement this, started to use WebPack for different reasons.

from gulp-elm.

bdukes avatar bdukes commented on July 20, 2024

I'm not sure that I'd have the context to resolve that * in the cwd option based on the file. My initial thought was that we could allow cwd to take a function that dynamically resolved the directory, but then I realized that this ultimately resolves to a single call to the elm executable, so it really doesn't conceptually make sense to have multiple cwd values.

If you were going to compile these files manually with the elm make command, what might that look like?

from gulp-elm.

annaghi avatar annaghi commented on July 20, 2024

It would look like elm make src/Main.elm for each of the samples.

Perhaps some context helps: This is a widget gallery, foo and bar are independent widgets, each of them is a compact and complete Browser.element application. Only one of the widgets (the compiled main.js and style.css) is used on a PHP site.

This setup helps us to develop these widgets in parallel, we can reuse some shared packages among them, test and build them at once, etc.

from gulp-elm.

bdukes avatar bdukes commented on July 20, 2024

Since you're going to need multiple calls to elm make, you'll want to avoid bundle. Once you have those output JS files, you'll need to combine them (probably using gulp-concat). In that scenario, it does sound like making the cwd option take a function would be helpful. Does that sound like the solution you're looking for?

from gulp-elm.

annaghi avatar annaghi commented on July 20, 2024

You are right, I am sorry for the misleading bundle. Yes, if I could pass a function to cwd that would be great!

from gulp-elm.

bdukes avatar bdukes commented on July 20, 2024

Great! Would you be interested in submitting a pull request to add that functionality? I'm happy to provide direction and review. If you're unable to submit a PR, I can tackle it, but it may be a couple of weeks before I can get to it.

from gulp-elm.

annaghi avatar annaghi commented on July 20, 2024

I am going to try!

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.