Using bash inside npm for more maintainable scripting. John Hardy Currently Reading December 8, 2017 1 Minute Using bash inside npm for more maintainable scripting. https://james-forbes.com/?/posts/alternative-to-npm-scripts https://james-forbes.com/?/posts/alternative-to-npm-scripts Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading... Related Published by John Hardy Closures are a poor man's object. Objects are a poor man's closure. View all posts by John Hardy Published December 8, 2017
I imagine that it is a result of JavaScript not being able to interact with the operating system like bash can. LikeLike Reply
Yep. Bash remains more succinct for running tasks. This is the role Gulp is normally used for. Maybe we need a JavaScriptScript. LikeLike Reply
Not that I’m aware of. There’s Node itself of course but your need to import some dependencies to be able to do shell things. LikeLike Reply
It’s worth fixing (letting JavaScript easily do system things). Shell scripting languages suck. LikeLike Reply
Wow, why would you use bash when you’ve got JavaScript available?
LikeLike
I imagine that it is a result of JavaScript not being able to interact with the operating system like bash can.
LikeLike
Yep. Bash remains more succinct for running tasks. This is the role Gulp is normally used for. Maybe we need a JavaScriptScript.
LikeLike
jssh?
LikeLike
Is there not a JavaScript shell? I assumed there would be by now.
LikeLike
Not that I’m aware of. There’s Node itself of course but your need to import some dependencies to be able to do shell things.
LikeLike
It’s worth fixing (letting JavaScript easily do system things). Shell scripting languages suck.
LikeLike