grunt-prompt
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -147,4 +147,16 @@ /* | ||
default: 'spec', | ||
choices: ['dot', 'spec', 'nyan', 'TAP', 'landing', 'list', | ||
'progress', 'json', 'JSONconv', 'HTMLconv', 'min', 'doc'] | ||
choices: [ | ||
{ name: 'dot' }, | ||
{ name: 'spec' }, | ||
{ name: 'nyan' }, | ||
{ name: 'TAP' }, | ||
{ name: 'landing' }, | ||
{ name: 'list' }, | ||
{ name: 'progress' }, | ||
{ name: 'json' }, | ||
{ name: 'JSONconv' }, | ||
{ name: 'HTMLconv' }, | ||
{ name: 'min' }, | ||
{ name: 'doc' } | ||
] | ||
} | ||
@@ -242,2 +254,24 @@ ] | ||
} | ||
}, | ||
separator: { | ||
options: { | ||
questions: [ | ||
{ | ||
config: 'separator', | ||
type: 'list', | ||
message: 'List of choices with custom Separator', | ||
choices: [ | ||
chalk.bold.red('HEADING'), | ||
{name: 'Label 1'}, | ||
{name: 'Label 2'}, | ||
'', | ||
{name: 'Label 3'}, | ||
{name: 'Label 4'}, | ||
'---', | ||
{name: 'Label 5'}, | ||
{name: 'Label 6'} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
@@ -244,0 +278,0 @@ }, |
{ | ||
"name": "grunt-prompt", | ||
"description": "Interactive prompt for your Grunt config using console checkboxes, text input with filtering, password fields.", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"homepage": "https://github.com/dylang/grunt-prompt", | ||
@@ -32,11 +32,11 @@ "author": { | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.8.0", | ||
"grunt": "~0.4.1", | ||
"semver": "~2.2.1", | ||
"chai": "^1.9.0", | ||
"chalk": "^0.5.1", | ||
"grunt": "^0.4.1", | ||
"grunt-contrib-jshint": "^0.10.0", | ||
"grunt-mocha-cli": "^1.6.0", | ||
"grunt-notify": "~0.2.10", | ||
"chai": "~1.9.0", | ||
"chalk": "~0.4.0", | ||
"grunt-templates-dylang": "~0.1.0", | ||
"load-grunt-tasks": "^0.4.0" | ||
"grunt-notify": "^0.3.1", | ||
"grunt-templates-dylang": "^1.0.0", | ||
"load-grunt-tasks": "^0.6.0", | ||
"semver": "^4.0.3" | ||
}, | ||
@@ -58,5 +58,5 @@ "peerDependencies": { | ||
"dependencies": { | ||
"inquirer": "~0.4.0", | ||
"inquirer": "^0.8.0", | ||
"lodash": "~2.4.1" | ||
} | ||
} |
@@ -1,8 +0,1 @@ | ||
<!--- | ||
This file was automatically generated. | ||
Use `grunt readme` to regenerate. | ||
---> | ||
## grunt-prompt [![NPM version](https://badge.fury.io/js/grunt-prompt.png)](http://badge.fury.io/js/grunt-prompt) [![Build Status](https://travis-ci.org/dylang/grunt-prompt.png)](https://travis-ci.org/dylang/grunt-prompt) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/) | ||
@@ -86,3 +79,3 @@ | ||
* The key in the resulting `answers` object: `if (answers['jshint.allFiles.reporter'] === 'custom') {...` | ||
* It can be an abitrary value read using `grunt.config`: `grunt.config('jshint.allFiles.reporter')` | ||
* It can be an arbitrary value read using `grunt.config`: `grunt.config('jshint.allFiles.reporter')` | ||
@@ -136,3 +129,3 @@ ##### type | ||
{ name: 'eslint' }, | ||
'---', // puts in a non-selectable separator | ||
'---', // puts in a non-selectable separator. Can be a string or '---' for default. | ||
{ name: 'I like to live dangerously', value: 'none' } | ||
@@ -354,12 +347,14 @@ ] | ||
|---|---|--:|--:| | ||
| [`grunt-notify`](https://github.com/dylang/grunt-notify) | Automatic desktop notifications for Grunt errors and warnings using Growl for OS X or Windows, Mountain Lion and Mavericks Notification Center, and Notify-Send. | 619 | 52,208 | | ||
| [`rss`](https://github.com/dylang/node-rss) | RSS feed generator. A really simple API to add RSS feeds to any project. | 177 | 98,802 | | ||
| [`shortid`](https://github.com/dylang/shortid) | Amazingly short non-sequential url-friendly unique id generator. | 129 | 22,984 | | ||
| [`xml`](https://github.com/dylang/node-xml) | Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples. | 35 | 180,625 | | ||
| [`anthology`](https://github.com/dylang/anthology) | Module information and stats for any @npmjs user | _New!_ | _TBD_ | | ||
| [`grunt-attention`](https://github.com/dylang/grunt-attention) | Display attention-grabbing messages in the terminal | _New!_ | 336 | | ||
| [`observatory`](https://github.com/dylang/observatory) | Beautiful UI for showing tasks running on the command line. | _New!_ | 81 | | ||
| [`changelog`](https://github.com/dylang/changelog) | Command line tool (and Node module) that generates a changelog in color output, markdown, or json for modules in npmjs.org's registry as well as any public github.com repo. | 51 | 2,081 | | ||
| [`logging`](https://github.com/dylang/logging) | Super sexy color console logging with cluster support. | 21 | 8,793 | | ||
| [`grunt-cat`](https://github.com/dylang/grunt-cat) | Echo a file to the terminal. Works with text, figlets, ascii art, and full-color ansi. | _New!_ | 396 | | ||
| [`grunt-notify`](https://github.com/dylang/grunt-notify) | Automatic desktop notifications for Grunt errors and warnings using Growl for OS X or Windows, Mountain Lion and Mavericks Notification Center, and Notify-Send. | 798 | 36,294 | | ||
| [`shortid`](https://github.com/dylang/shortid) | Amazingly short non-sequential url-friendly unique id generator. | 261 | 8,357 | | ||
| [`rss`](https://github.com/dylang/node-rss) | RSS feed generator. A really simple API to add RSS feeds to any project. | 244 | 15,147 | | ||
| [`npm-check`](https://github.com/dylang/npm-check) | Check for outdated, incorrect, and unused dependencies. | _New!_ | 1,164 | | ||
| [`xml`](https://github.com/dylang/node-xml) | Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples. | 55 | 21,139 | | ||
| [`changelog`](https://github.com/dylang/changelog) | Command line tool (and Node module) that generates a changelog in color output, markdown, or json for modules in npmjs.org's registry as well as any public github.com repo. | 60 | 166 | | ||
| [`logging`](https://github.com/dylang/logging) | Super sexy color console logging with cluster support. | 24 | 541 | | ||
| [`grunt-attention`](https://github.com/dylang/grunt-attention) | Display attention-grabbing messages in the terminal | _New!_ | 6,253 | | ||
| [`observatory`](https://github.com/dylang/observatory) | Beautiful UI for showing tasks running on the command line. | 31 | 3,516 | | ||
| [`flowdock-refined`](https://github.com/dylang/flowdock-refined) | Flowdock desktop app custom UI | _New!_ | 59 | | ||
| [`anthology`](https://github.com/dylang/anthology) | Module information and stats for any @npmjs user | _New!_ | 216 | | ||
| [`grunt-cat`](https://github.com/dylang/grunt-cat) | Echo a file to the terminal. Works with text, figlets, ascii art, and full-color ansi. | _New!_ | 102 | | ||
@@ -377,11 +372,3 @@ _This list was generated using [anthology](https://github.com/dylang/anthology)._ | ||
*** | ||
_Generated using [grunt-readme](https://github.com/assemble/grunt-readme) with [grunt-templates-dylang](https://github.com/dylang/grunt-templates-dylang) on Tuesday, March 4, 2014._ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/dylang/grunt-prompt/trend.png)](https://bitdeli.com/free "Bitdeli Badge") [![Google Analytics](https://ga-beacon.appspot.com/UA-4820261-3/dylang/grunt-prompt)](https://github.com/igrigorik/ga-beacon) | ||
_Generated using [grunt-readme](https://github.com/assemble/grunt-readme) with [grunt-templates-dylang](https://github.com/dylang/grunt-templates-dylang) on Sunday, October 5, 2014._ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/dylang/grunt-prompt/trend.png)](https://bitdeli.com/free "Bitdeli Badge") [![Google Analytics](https://ga-beacon.appspot.com/UA-4820261-3/dylang/grunt-prompt)](https://github.com/igrigorik/ga-beacon) | ||
<!--- | ||
This file was automatically generated. | ||
Use `grunt readme` to regenerate. | ||
---> |
@@ -26,4 +26,4 @@ /* | ||
return choices.map(function(choice){ | ||
if (choice === '---') { | ||
return new inquirer.Separator(); | ||
if (typeof choice === 'string') { | ||
return new inquirer.Separator((choice === '---' || choice.length === 0) ? null : choice); | ||
} | ||
@@ -30,0 +30,0 @@ return choice; |
@@ -11,3 +11,3 @@ ### Options | ||
* The key in the resulting `answers` object: `if (answers['jshint.allFiles.reporter'] === 'custom') {...` | ||
* It can be an abitrary value read using `grunt.config`: `grunt.config('jshint.allFiles.reporter')` | ||
* It can be an arbitrary value read using `grunt.config`: `grunt.config('jshint.allFiles.reporter')` | ||
@@ -59,3 +59,3 @@ #### type | ||
{ name: 'eslint' }, | ||
'---', // puts in a non-selectable separator | ||
'---', // puts in a non-selectable separator. Can be a string or '---' for default. | ||
{ name: 'I like to live dangerously', value: 'none' } | ||
@@ -62,0 +62,0 @@ ] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41158
389
371
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcli-width@1.1.1(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfigures@1.7.0(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedinquirer@0.8.5(transitive)
+ Addedlodash@3.10.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedrx@2.5.3(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
- Removedasync@0.2.10(transitive)
- Removedcli-color@0.2.3(transitive)
- Removedes5-ext@0.9.2(transitive)
- Removedevent-emitter@0.2.2(transitive)
- Removedinquirer@0.4.1(transitive)
- Removedmemoizee@0.2.6(transitive)
- Removednext-tick@0.1.0(transitive)
Updatedinquirer@^0.8.0