0.5.1 • Published 7 years ago

@sim.perelli/spaghetti v0.5.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

spaghetti

You know you shouldn't but sometimes you have to

{
    "scripts": {
        "do-something": "./do-something.sh"
    }
}

The problem gets bigger when a random teammate works with Windows

{
    "scripts": {
        "do-something": "./do-something.sh",
        "do-something-win": "bash -c \"./do-something.sh\""
    }
}

Meet spaghetti...

{
    "scripts": {
        "do-something": "spaghetti ./do-something.sh"
    }
}

spaghetti will check for process.platform === win32 and wrap the bash script with "bash -c" for you. Just that.