Skip to content

Commit

Permalink
Commented out saving entire changelog to Github
Browse files Browse the repository at this point in the history
  • Loading branch information
nwittwer committed Feb 21, 2019
1 parent b5552a6 commit 08316db
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions gulp-tasks/tasks/build-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ let PATH_TO_MAC_ZIP
// Confirm version number
gulp.task('version-app:prompt-version', function (done) {
inquirer.prompt([{
type: 'input',
name: 'version',
message: 'What release version is this? (Currently ' + CURRENT_APP_VERSION + '):'
}])
type: 'input',
name: 'version',
message: 'What release version is this? (Currently ' + CURRENT_APP_VERSION + '):'
}])
.then(function (res) {
if (res.version) {
NEXT_APP_VERSION = res.version
Expand All @@ -56,8 +56,8 @@ gulp.task('version-app:prompt-version', function (done) {
// `src/package.json` and `dist/package.json`
gulp.task('version-app:version', function () {
return gulp.src('./package.json', {
base: './'
})
base: './'
})
.pipe(replace(CURRENT_APP_VERSION, NEXT_APP_VERSION))
.pipe(gulp.dest('./'))
})
Expand All @@ -67,10 +67,10 @@ gulp.task('version-app:version', function () {
// Defaults to master branch
gulp.task('version-app:prompt-version-diff', function (done) {
inquirer.prompt([{
type: 'input',
name: 'version',
message: `Branch/Git tag to compare to ${NEXT_APP_VERSION}: `
}])
type: 'input',
name: 'version',
message: `Branch/Git tag to compare to ${NEXT_APP_VERSION}: `
}])
.then(function (res) {
if (res.version) {
// Successful comparison to x version
Expand Down Expand Up @@ -98,8 +98,8 @@ gulp.task('version-app:changelog', function (cb) {
}

exec(`git log ${COMPARE_VERSION}.. --abbrev-commit --pretty=oneline`, function (err, stdout, stderr) {
CHANGELOG = stdout
CHANGELOG += `\n\n [View all changes since ${COMPARE_VERSION}](../../compare/${COMPARE_VERSION}..${NEXT_APP_VERSION})`
// CHANGELOG = stdout
CHANGELOG = `\n\n [View all changes since ${COMPARE_VERSION}](../../compare/${COMPARE_VERSION}..${NEXT_APP_VERSION})`
console.log(chalk.yellow('Changelog:\n' + CHANGELOG))
cb(err)
})
Expand Down Expand Up @@ -168,4 +168,4 @@ gulp.task('version-app', gulp.series(
gulp.task('deploy-app', gulp.series(
'deploy-app:draft-release',
'deploy-app:open-release-in-browser'
))
))

0 comments on commit 08316db

Please sign in to comment.