Closed gasolin closed 8 years ago
Hi @gasolin!
That's exactly why we invented shx
, we wanted a way to use shelljs
in npm scripts.
Once we release the first version of shx
, you'll be able to do something like this:
{
"scripts": {
"do:something": "shx rm -rf build dist; shx echo Done"
}
}
You've hit it on the head ;) Closing this for good house keeping, feel free to open if there are any further questions.
Looking forward it!
@gasolin shx
is now available on npm:
npm i shx -D
Thanks!
In the initial test, I found shx does not work in npm script (compare to rimraf and mkdirp) might be the path issue.
(installed via npm install --save-dev shx
)
Thanks @gasolin, could you open a new issue with steps to reproduce?
@levithomason please see #44
now it works, thanks!
I'm curious the possibility if shx could be a better alternative to run npm scripts in platform independent way