release-it
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -37,4 +37,3 @@ var path = require('path'), | ||
version: pkg.version, | ||
name: pkg.name, | ||
srcRepo: pkg.repository && pkg.repository.url ? pkg.repository.url : undefined | ||
name: pkg.name | ||
} | ||
@@ -41,0 +40,0 @@ |
@@ -12,2 +12,6 @@ var util = require('util'), | ||
function getRemoteUrl() { | ||
return run('git', 'config --get remote.origin.url'); | ||
} | ||
function hasChanges() { | ||
@@ -89,2 +93,3 @@ // Inverted: reject if run promise is resolved (i.e. `git diff-index` returns exit code 0) | ||
isGitRepo: isGitRepo, | ||
getRemoteUrl: getRemoteUrl, | ||
status: status, | ||
@@ -91,0 +96,0 @@ clone: clone, |
@@ -18,7 +18,4 @@ var util = require('./util'), | ||
if(!options.srcRepo) { | ||
throw new Error('Unable to read Git source repo from either the repository.url property in ' + options.pkgFiles[0] + ' or the `srcRepo` configuration option.'); | ||
} | ||
var executeTasks = [ | ||
repo.getRemoteUrl, | ||
repo.isRepo, | ||
@@ -64,2 +61,3 @@ repo.bump, | ||
var executeTasks = [ | ||
repo.getRemoteUrl, | ||
repo.clone, | ||
@@ -97,2 +95,3 @@ repo.copy, | ||
return { | ||
getRemoteUrl: git.getRemoteUrl, | ||
isRepo: git.isGitRepo, | ||
@@ -106,2 +105,4 @@ hasChanges: git.hasChanges, | ||
tag: git.tag.bind(null, options.version, options.tagName, options.tagAnnotation), | ||
push: git.push, | ||
pushTags: git.pushTags, | ||
popd: shell.popd | ||
@@ -117,4 +118,2 @@ } | ||
stage: git.stage.bind(null, options.pkgFiles), | ||
push: git.push.bind(null, options.srcRepo), | ||
pushTags: git.pushTags.bind(null, options.srcRepo), | ||
publish: isPublish ? shell.npmPublish : noop | ||
@@ -132,4 +131,2 @@ }); | ||
pushd: shell.pushd.bind(null, options.distStageDir), | ||
push: git.push.bind(null, options.distRepo), | ||
pushTags: git.pushTags.bind(null, options.distRepo), | ||
publish: isPublish ? shell.npmPublish : noop | ||
@@ -136,0 +133,0 @@ }); |
{ | ||
"name": "release-it", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Interactive release tool for Git repositories. Supports to build and release to a distribution/component repository. Publish to npm.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
670
1886100
23