Skip to content

Commit

Permalink
Update command-line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
eKoopmans committed Nov 25, 2017
1 parent ab68263 commit 5e88024
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ var fs = require('fs');

// Fetch command-line arguments.
var args = minimist(process.argv.slice(2), {
string: ['env', 'newversion', 'tagmessage'],
default: {
env: process.env.NODE_ENV || 'production',
newversion: 'patch'
newversion: 'patch',
tagmessage: ''
}
});
args.newversion = args.newversion || 'patch';

/* ----- REUSABLE TASKS ----- */

Expand Down

0 comments on commit 5e88024

Please sign in to comment.