Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bunch of bug-fixes for PackageTask/NpmPublishTask.

  • Loading branch information...
commit a777c3bc4c3c06b70aca5ddf7c0bfd2eb586b629 1 parent 8cae764
@mde mde authored
Showing with 5 additions and 8 deletions.
  1. +4 −5 lib/npm_publish_task.js
  2. +1 −3 lib/package_task.js
View
9 lib/npm_publish_task.js
@@ -94,7 +94,10 @@ NpmPublishTask.prototype = new (function () {
}, 5000);
}, {async: true});
- task('cleanup', ['clobber'], function () {
+ task('cleanup', function () {
+ var clobber = jake.Task['clobber'];
+ clobber.reenable(true);
+ clobber.invoke();
console.log('Cleaned up package');
});
@@ -103,10 +106,6 @@ NpmPublishTask.prototype = new (function () {
desc('Bump version-number, package, and publish to NPM.');
task('publish', ['npm:version', 'npm:package',
'npm:publish', 'npm:cleanup'], function () {});
-
- task('cleanup', ['npm:cleanup'], function () {
- console.log('done');
- });
};
})();
View
4 lib/package_task.js
@@ -66,11 +66,9 @@ PackageTask.prototype = new (function () {
task('repackage', ['package']);
task('clobberPackage', function () {
- console.log('calling clobberPackage ' + self.packageDir);
jake.exec(['rm -fr ' + self.packageDir], function () {
- console.log('finished clobberPackage');
complete();
- }, {stdout: true, stderr: true});
+ });
}, {async: true});
desc('Remove the package');
Please sign in to comment.
Something went wrong with that request. Please try again.