Created
November 9, 2015 19:51
-
-
Save chrisjlee/f04bd28fecc03a16a83d to your computer and use it in GitHub Desktop.
Example gulp prompt implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Prompt Task | |
* WIP/ not integrated | |
*/ | |
gulp.task('prompt', function () { | |
return gulp.src('') | |
.pipe( | |
$.prompt.prompt( | |
[{ | |
type: 'input', | |
message: 'Please enter your username', | |
name: 'username', | |
default: 'selenium@usaa.com.tmsdev' | |
}, | |
{ | |
type: 'password', | |
message: 'Please enter your password', | |
name: 'password' | |
}], | |
function(response){ | |
//console.log('response', response); | |
username = response.username; | |
password = response.password; | |
}) | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment