Skip to content

Commit 5e88024

Browse files
committed
Update command-line arguments
1 parent ab68263 commit 5e88024

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gulpfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ var fs = require('fs');
77

88
// Fetch command-line arguments.
99
var args = minimist(process.argv.slice(2), {
10+
string: ['env', 'newversion', 'tagmessage'],
1011
default: {
1112
env: process.env.NODE_ENV || 'production',
12-
newversion: 'patch'
13+
newversion: 'patch',
14+
tagmessage: ''
1315
}
1416
});
17+
args.newversion = args.newversion || 'patch';
1518

1619
/* ----- REUSABLE TASKS ----- */
1720

0 commit comments

Comments
 (0)