Skip to content

Commit

Permalink
docs and release fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuwen Qian committed Mar 4, 2016
1 parent 1334a71 commit 2ea036c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gulp/tasks/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
moduleBehaviors = moduleDoc.behaviors;

// Merge behaviors docs with component docs
moduleBehaviors.forEach(function(key) {
if(moduleBehaviors) moduleBehaviors.forEach(function(key) {
var behavior = behaviorsMap[key];
if(moduleDoc && behavior) {
moduleDoc.attributes = mergeDocArray(moduleDoc.attributes, behavior.attributes);
Expand Down
4 changes: 2 additions & 2 deletions gulp/tasks/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

gulp.task('bump:major', function() { return inc('major'); });
gulp.task('bump:minor', function() { return inc('minor'); });
gulp.task('bump:patch', function() { return inc('patch'); });
gulp.task('bump:patch', function() { return inc('major'); });

gulp.task('release:major', function() {
run('bump:major', 'build:prod', 'changelog', 'stage-release', 'tag-release');
Expand Down Expand Up @@ -47,7 +47,7 @@
gulp.task('stage-release', function() {
var pkg = C.getPkgInfo();
return gulp.src([C.DIST, 'package.json', 'bower.json', 'CHANGELOG.md'])
.pipe(plugins.git.add())
.pipe(plugins.git.add({args: '--no-ignore-removal'}))
.pipe(plugins.git.commit('Release v'+pkg.version));
});

Expand Down

0 comments on commit 2ea036c

Please sign in to comment.