README
BPK Create branch
Creates a feature branch with the correct prefix, and commits with a prefixed message of your choosing.
Try it!
npx bpk-create-branch
or
npm i -g bpk-create-branch
bpk-create-branch
The tool will prompt you for all the information it needs. If you want to integrate it into your CI, you can use silent mode which only takes CLI arguments.
Arguments
name | default |
---|---|
--silent or -s |
false |
--prefix or -p |
BPK |
--id or -i |
null |
--feature or -f |
null |
--add-all-files or -a |
Yes |
--new-branch or -nb |
Yes |
--commit-command or -cc |
git commit -m |
--post-commit-command or -pcc |
null |
Testing
To run unit tests, simply use
npm run test
Snapshots can be updated automatically using the following:
UPDATE_SNAPSHOTS=true npm run test
Releasing (me only 😋)
To release, use
npm run release