@dasilvacontin/cargo
v1.0.0
Published
Deliver args to your npm scripts.
Downloads
5
Maintainers
Readme
cargo
Deliver args to your npm scripts.
Install
npm i -D @dasilvacontin/cargo
Usage
➜ cat package.json
{
"name": "cargo-test",
"version": "1.0.0",
"scripts": {
"bump": "cargo \"npm version $1 -m ':ship: Release v%s'\""
},
...
"devDependencies": {
"@dasilvacontin/cargo": "^1.0.0"
}
}
➜ npm run bump -- patch
> [email protected] bump /Users/dasilvacontin/GitHub/dasilvacontin/cargo-test
> cargo 'npm version $1 -m ":ship: Release v%s"' "patch"
> npm version patch -m ":ship: Release v%s"
v1.0.1
➜ cat package.json | grep version
"version": "1.0.1",
"bump": "cargo 'npm version $1 -m \":ship: Release v%s\"'"
➜ git log --pretty=oneline | grep ship
1a0dae551eb3a585007ca7b29960b85a90fbbaf0 :ship: Release v1.0.1
License
MIT © David da Silva