Skip to content

Commit

Permalink
Gruntfile.js: updates
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed Jun 23, 2017
1 parent ac58960 commit ea7684c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// System Objects
var cp = require("child_process");
var path = require("path");
const cp = require("child_process");
const path = require("path");

// Third Party Dependencies
var tags = require("common-tags");
const tags = require("common-tags");


module.exports = function(grunt) {
Expand Down Expand Up @@ -73,11 +73,11 @@ module.exports = function(grunt) {


grunt.registerTask("changelog", "changelog', 'changelog:v0.0.0..v0.0.2' or 'changelog:v0.0.0'", (arg) => {
var done = grunt.task.current.async();
var tags = cp.execSync("git tag --sort version:refname").toString().split("\n");
var tagIndex = -1;
var range;
var revisionRange;
let done = grunt.task.current.async();
let tags = cp.execSync("git tag --sort version:refname").toString().split("\n");
let tagIndex = -1;
let range;
let revisionRange;

if (!arg) {
// grunt changelog
Expand Down Expand Up @@ -116,7 +116,7 @@ module.exports = function(grunt) {
return;
}

var rows = result.split("\n").filter(commit => {
let rows = result.split("\n").filter(commit => {
return !commit.includes("|Merge ") && !commit.includes(range[0]);
});

Expand Down

0 comments on commit ea7684c

Please sign in to comment.