Comments (8)
Thanks for the investigating and tracking down the cause of this issue, I'd love to be able to make gulp-elm much faster. The reason we're using cross-spawn
is for Windows support (the built-in spawn
can't find the elm-make.cmd
file used on Windows). So we'll need to figure out if there's a way to fix the speed issue while also continuing Windows support.
I assume you're on macOS or Linux, right? I'll have to see if I can reproduce the issue on my Linux machine and find a solution that also keeps Windows support.
Thanks!
from gulp-elm.
@stephenhand, running gulp make-elm-app
in the gulp-elm
branch of that repository doesn't cause any delay for me on my Linux machine (it takes about 4 seconds). Let me know if there are different steps to reproduce.
from gulp-elm.
Thanks for looking into this.
I'm actually reproducing this issue on Windows 10 (64 bit) (sorry, should have mentioned that on the issue) and it seems to have no issues with the built-in spawn command.
I notice the plugin falls back to using the elm-make
on the path if it can't find one in the directory it expects, and I do have elm-make
on my path, so perhaps that's why it still works in my environment?
from gulp-elm.
FYI I'm running node v6.11.0
from gulp-elm.
I just ran through the build on my Windows 10 machine, using node v6.11.3, and didn't run into any delays. If you type where.exe elm-make
into PowerShell, does it return anything different than C:\Program Files (x86)\Elm Platform\0.18\bin\elm-make.exe
?
from gulp-elm.
If I can get this to reproduce, I'd like to try updating the cross-spawn
dependency. So, in the meantime, you may want to get a local version of gulp-elm
, update that dependency, and see if it makes any difference.
Also, if you could commit an npm or yarn lock file, that might help us see if we have any differences in how dependencies are being resolved.
Hope I can help!
from gulp-elm.
Sorry for taking a while to get back to you
My elm-make is in a slightly different location:
D:\Elm Platform\0.18\bin\elm-make.exe
And this is my package-lock.json file:
package-lock.zip
My resolved cross-spawn version is 3.0.1
I'll try updating the cross-spawn dep in a local version of gulp-elm like you suggested ASAP
from gulp-elm.
I updated a local gulp-elm to reference cross spawn v5.1.0 (latest version on npm) and it appeared to resolve the problem.
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\`
- 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.