Comments (3)
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.
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.
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)
- 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
- 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
- Request - Setup with multiple elm.json files using glob patterns HOT 7
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.