1.0.15 • Published 7 years ago

buck-trap v1.0.15

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
7 years ago

buck-trap

Buck Trap helps you to BUmp Changelog Kiss Tag Release And Publish your repo

Buck Trap

Usage

npm install --save-dev buck-trap

Now add the following to your package.json scripts section

"buck-trap": "buck-trap -a"

So e.g.:

"scripts": {
	"test": "tape tests/*",
	"buck-trap": "buck-trap -a"
},
"dependencies": { 
    "buck-trap": "1.0.14"
}

Or if you don't like the defaults (deploy/auth.json for the token file and dist folder for the build folder)

"buck-trap": "buck-trap -a -t /absoulute/path/to/auth.json-file -af /absoulute/path/to/dist/folder"

Also add the name of your project to the repository section: "name": "organisation/repo-name"

So for example: "repository": { "type": "git", "url": "git+https://github.com/nens/buck-trap.git", "name": "nens/buck-trap" },

The auth.json file should like similar to this:

{
    "token": "Your-token-that-you-created-on-github"
}

You can create your tokens here: https://github.com/settings/tokens Grant the token full access under the repo section

If everything is setup run:

npm run buck-trap

Releasing hotfixes or patches

If a stable release is coming out release it and start a new branch for the stable release e.g.:

git checkout -b release4.0 

If stuff is fixed on this branch, the fixes can be rolled out as patches without affecting the mainline release track. To run buck-trap from this branch and to release the branch with its CHANGELOG.md

npm run buck-trap -- -b release4.0

The fixes and the CHANGELOG.md would have to be merged with master, which might give some merge conflicts. C'est la vie.

1.0.15

7 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago