Comments (12)
To provide more context: cross-spawn
only improves cross-platform compatibility of child_process.spawn
while replicating it's interface. execa
builds on top of that and adds various other features, like a nicer Promise-based interface (similar to superspawn
) cross-platform shebang support (would be useful for HooksRunner
) and a lot more. And lastly we do not have to maintain execa
. That's a big plus.
So yes, we want something a bit more high-level than cross-spawn
, but I'd prefer execa
over superspawn
.
from cordova.
I'd like to finally resolve this issue and #7, so I'm going to try and finish the transformation we started here.
from cordova.
I think we want to replace superspawn
invocations with execa
invocations, not cross-spawn
.
from cordova.
This goal of this issue is to "Remove usage of cordova-common/superspawn". execa
is an implementation detail. When someone gets around to implement this, it might very well be that it makes sense to use something else or newer.
from cordova.
Whatever works, I was getting this from apache/cordova-common#50 but exaca
looks great as well. On the other hand, that might show that we may not want to get rid of the wrapper after all - preferences seems to change here.
from cordova.
I think we want to replace
superspawn
invocations withexeca
invocations, notcross-spawn
.
Why not use execa
and skip cross-spawn
?
from cordova.
@brodybits That is what I'm suggesting. Or I don't understand the question.
from cordova.
I am getting a bit confused here.
#16 (comment) and #16 (comment) indicate to me that we should skip cross-spawn
and use execa
right away, while apache/cordova-common#50 (comment) and apache/cordova-common#50 (comment) indicate to me that we take a two-step process (use cross-spawn
first then use execa
).
I would personally favor the two-step process:
- first use
cross-spawn
as proposed in apache/cordova-common#50 to solve the problem - then we migrate to
execa
and get rid of ourcordova-common/superspawn
as discussed here
@raphinesse can you please straighten me out here?
I would also like to motion that we hide or remove the following comments as "off-topic":
- apache/cordova-common#50 (comment)
- apache/cordova-common#50 (comment)
- apache/cordova-common#50 (comment)
from cordova.
@brodybits Now I understand. Yes, I would favor a two step process too since migration to execa
could take quite some time.
I hid the comments you referred to as "resolved"
from cordova.
apache/cordova-common#50 is one PR, doing one thing.
This, #16, is another issue, suggesting the doing of another thing. (At first it was "replace superspawn
with cross-spawn
", after comments from @raphinesse it is "replace superspawn
with execa
").
These are not related only in that this issue only makes sense after apache/cordova-common#50 has been merged to remove the Windows specific handling.
from cordova.
from cordova.
Another rationale I gave in #7 (comment) is that superspawn
seems to return a non-standard Promise-like object that can also notify the listener of stdout
and stderr
data. I think getting rid of superspawn
would really help finish getting rid of q
(#7).
from cordova.
Related Issues (20)
- SameSite=none is not added in the request HOT 1
- Cordova create testProject on smb volume HOT 5
- Add Tauri platform HOT 5
- Better accessability support HOT 6
- Could not find org.apache.cordova:framework:7.0.0 HOT 1
- In cordova website version drop down not yet updated HOT 2
- Video files (native HTML 5 video element) within iframe will not go into full screen when user taps the full screen icon HOT 1
- Push Notifications are not coming to real device where as working in simulator
- Test issue HOT 1
- cordova plugin add: "Unexpected end of JSON input" HOT 6
- How to open system browser from link in the inappbrowser
- Trying to build app on a vps
- HarmonyOS Next Platform support HOT 3
- Cannot fint module 'serialport' on build with cordova-electron HOT 1
- Embedded Cordova in Apple's VisionOS App (VisionOS Platform)
- Undefined symbols on Xcode HOT 1
- Unable to locate DeviceSupport directory with suffix 'DeveloperDiskImage.dmg' - Xcode15.2 - Physical device 17.2 HOT 1
- live reload HOT 1
- TextKi
- Combine multiple projects in one
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 cordova.