Comparing version 0.1.3 to 0.1.4
@@ -9,2 +9,6 @@ CHANGELOG | ||
## 0.1.4 (2014-01-27) | ||
* Added line and version args to grunt cli commands | ||
* Made grunt commands async | ||
## 0.1.3 (2014-01-27) | ||
@@ -11,0 +15,0 @@ * Added grunt as a dependency |
@@ -41,2 +41,3 @@ 'use strict'; | ||
// These plugins provide necessary tasks. | ||
grunt.loadTasks('./tasks') | ||
grunt.loadNpmTasks('grunt-contrib-nodeunit'); | ||
@@ -43,0 +44,0 @@ grunt.loadNpmTasks('grunt-contrib-jshint'); |
{ | ||
"name": "chg", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "lib/changelog.js", | ||
@@ -5,0 +5,0 @@ "description": "simple changelog/release history manager", |
@@ -17,7 +17,10 @@ /* | ||
function callback(err, success){ | ||
if (err) { | ||
return grunt.log.error(err); | ||
} else if (success) { | ||
grunt.log.writeln(success); | ||
function getCallback(done) { | ||
return function(err, success){ | ||
if (err) { | ||
return grunt.log.error(err); | ||
} else if (success) { | ||
grunt.log.writeln(success); | ||
done(); | ||
} | ||
} | ||
@@ -27,16 +30,20 @@ } | ||
grunt.registerTask('chg-init', 'Create the CHANGELOG.md file', function() { | ||
commands.init({}, callback); | ||
var done = this.async(); | ||
commands.init({}, getCallback(done)); | ||
}); | ||
grunt.registerTask('chg-add', 'Add a line to the changelog', function() { | ||
commands.add(null, {}, callback); | ||
grunt.registerTask('chg-add', 'Add a line to the changelog', function(line) { | ||
var done = this.async(); | ||
commands.add(line, {}, getCallback(done)); | ||
}); | ||
grunt.registerTask('chg-release', 'Add a new release and move unrleased changes under it', function() { | ||
commands.release(null, {}, callback); | ||
grunt.registerTask('chg-release', 'Add a new release and move unrleased changes under it', function(version) { | ||
var done = this.async(); | ||
commands.release(version, {}, getCallback(done)); | ||
}); | ||
grunt.registerTask('chg-delete', 'Delete the changelog', function() { | ||
commands.release({}, callback); | ||
var done = this.async(); | ||
commands.release({}, getCallback(done)); | ||
}); | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15354
296