stryker-mutator / stryker-cli

The command-line interface for Stryker, the JavaScript mutation testing framework
http://stryker-mutator.github.io
Apache License 2.0
10 stars 1 forks source link

Remove this cli in favor of npx #33

Open nicojs opened 5 years ago

nicojs commented 5 years ago

We should investigate if it is possible to remove the Stryker-cli in favor of npx. That way of working is probably much easier to maintain. See how create-react-app does it: https://github.com/facebook/create-react-app#quick-overview

@stryker-mutator/contributors What do you think about this?

simondel commented 5 years ago

Sounds awesome

simondel commented 5 years ago

Right now, npx stryker doesn't work: image

nicojs commented 5 years ago

Wow! OK, we'll have to investigate how to map npx stryker to either the stryker-cli or @stryker-mutator/core. Should be possible (I hope).

nicojs commented 5 years ago

Note: it does work after installing @stryker-mutator/core locally (npm i -D @stryker-mutator/core). This is because npx will first look in node_modules/.bin for stryker, which it will find because @stryker-mutator/core puts it there.