Skip to content

More default options (branch, message), initial tasks config & enable bumping to a specific version using command line (--version) #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#IDE
.idea
*.iml

# Logs
logs
*.log
Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@ Create a `gulpfile.js` in your project with:
```js
// add to gulpfile.js
var gulp = require('gulp');
// pass along gulp reference to have tasks imported
require('gulp-release-flows')(gulp);

// pass along an *optional* config, if needed
require('gulp-release-flows')({
sources: ['./bower.json', './package.json'],
branch: 'master',
bump: 'patch',
message: 'Release %VERSION%',
tag: null // The new version number. If null or not specified, will be retrieved from './package.json'.
});
```

To see all imported tasks, run:
Expand All @@ -42,3 +49,7 @@ This will bump the `patch` version, minor / major can be bumped by the following
Or

`gulp build:release --bump major`

You can also bump to a specific release version using the following command:

`gulp build:release --tag 0.1.0-beta.3`
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = function(gulp){
require(__dirname + '/tasks/release')(gulp)
module.exports = function(config){
require(__dirname + '/tasks/release')(config)
};
Loading