Comments (7)
Sorry, I am not going to implement this, started to use WebPack for different reasons.
from gulp-elm.
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.
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.
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.
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.
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.
I am going to try!
from gulp-elm.
Related Issues (20)
- Colours don't display with Elm 0.17 HOT 2
- Elm output mixes with gulp output HOT 5
- Error when passing zero files to gulp-elm HOT 1
- Add option to specify output file HOT 3
- Should support --debug mode HOT 2
- Support: Debug doesn't seem to be working HOT 1
- Sometimes fails with `openFile: dones not exist` when watched HOT 3
- does not work when you don't add elm dependency manually HOT 1
- exception doesn't get caught when watching HOT 1
- elm-package.json must exist in root directory HOT 4
- `cwd` options doesn't work when using `elm-make` from `node_modules\.bin\`
- compile hangs for a few minutes before firing proc.on('close') HOT 8
- Enable Travis, Appveyor, and Greenkeeper HOT 1
- Doesn't work on 0.19 HOT 5
- Source glob fails in 0.8.0 HOT 3
- An in-range update of ansi-colors is breaking the build 🚨 HOT 5
- An in-range update of jsdom is breaking the build 🚨 HOT 2
- An in-range update of through2 is breaking the build 🚨 HOT 3
- Optimize flag not working HOT 3
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 gulp-elm.