Skip to content

Commit

Permalink
Merge pull request #45 from shannonlal/master
Browse files Browse the repository at this point in the history
Sample Gulpfile for Issue #27 First Selection
  • Loading branch information
shannonlal authored Oct 11, 2017
2 parents 6d2c26c + 47279f0 commit 4ff3e5b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.4.1] - 2017-10-10
### Added
- Added sample test gulp file for issue #27 @shannonlal

## [0.4.0] - 2017-10-07
### Added
- Added lodash templating @shannonlal
Expand Down
21 changes: 21 additions & 0 deletions examples/first-choise-selection-gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
'use strict';

var gulp = require( 'gulp' );
var prompt = require('../index');

/**
* The following is a sample gulp file for getting the first selection from a choice
* This was put together in response to issue #27
* (https://github.com/Freyskeyd/gulp-prompt/issues/27)
*/
gulp.task( 'selectFirst', () => {
return gulp.src( './package.json' )
.pipe( prompt.prompt({
type:'list',
name:'env',
message:'Please enter selection?',
choices: ['First','Second','Third']
}, (res) => {
console.log('Result', res);
}) );
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gulp-prompt",
"version": "0.4.0",
"version": "0.4.1",
"description": "Add interactive console prompts to gulp",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 4ff3e5b

Please sign in to comment.