grunt-prompt
Advanced tools
Comparing version 1.3.0 to 1.3.2
{ | ||
"name": "grunt-prompt", | ||
"description": "Interactive prompt for your Grunt config using console checkboxes, text input with filtering, password fields.", | ||
"version": "1.3.0", | ||
"homepage": "https://github.com/dylang/grunt-prompt", | ||
"version": "1.3.2", | ||
"author": { | ||
"name": "Dylan Greene", | ||
"email": "dylang@gmail.com", | ||
"url": "http://doodleordie.com" | ||
"email": "dylang@gmail.com" | ||
}, | ||
"homepage": "https://github.com/dylang/grunt-prompt", | ||
"repository": { | ||
@@ -15,15 +14,4 @@ "type": "git", | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/dylang/grunt-prompt/issues" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/dylang/grunt-prompt/blob/master/LICENSE-MIT" | ||
} | ||
], | ||
"license": "MIT", | ||
"main": "Gruntfile.js", | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"scripts": { | ||
@@ -33,16 +21,14 @@ "test": "grunt mochacli --stack" | ||
"devDependencies": { | ||
"chai": "^1.9.0", | ||
"chalk": "^0.5.1", | ||
"chai": "^3.4.1", | ||
"chalk": "^1.1.1", | ||
"grunt": "^0.4.1", | ||
"grunt-contrib-jshint": "^0.10.0", | ||
"grunt-mocha-cli": "^1.6.0", | ||
"grunt-notify": "^0.3.1", | ||
"grunt-release": "^0.7.0", | ||
"grunt-templates-dylang": "^1.0.0", | ||
"load-grunt-tasks": "^0.6.0", | ||
"semver": "^4.0.3" | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-jshint": "^0.11.3", | ||
"grunt-mocha-cli": "^2.0.0", | ||
"grunt-notify": "^0.4.1", | ||
"grunt-release": "^0.13.0", | ||
"grunt-templates-dylang": "^1.0.12", | ||
"load-grunt-tasks": "^3.3.0", | ||
"semver": "^5.0.3" | ||
}, | ||
"peerDependencies": { | ||
"grunt": "~0.4.1" | ||
}, | ||
"keywords": [ | ||
@@ -60,5 +46,5 @@ "gruntplugin", | ||
"dependencies": { | ||
"inquirer": "^0.8.0", | ||
"lodash": "~2.4.1" | ||
"inquirer": "^0.11.0", | ||
"lodash": "^3.10.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
## grunt-prompt [![Build Status](http://img.shields.io/travis/dylang/grunt-prompt.svg?style=flat-square)](https://travis-ci.org/dylang/grunt-prompt) [![grunt-prompt](http://img.shields.io/npm/dm/grunt-prompt.svg?style=flat-square)](https://www.npmjs.org/package/grunt-prompt) | ||
## grunt-prompt [![Build Status](http://img.shields.io/travis/dylang/grunt-prompt.svg)](https://travis-ci.org/dylang/grunt-prompt) [![grunt-prompt](http://img.shields.io/npm/dm/grunt-prompt.svg)](https://www.npmjs.org/package/grunt-prompt) | ||
@@ -52,3 +52,3 @@ > Interactive prompt for your Grunt config using console checkboxes, text input with filtering, password fields. | ||
type: '<question type>', // list, checkbox, confirm, input, password | ||
message: 'String|function()', // Question to ask the user, function needs to return a string, | ||
message: 'String|function(answers)', // Question to ask the user, function needs to return a string, | ||
default: 'value', // default value if nothing is entered | ||
@@ -103,5 +103,5 @@ choices: 'Array|function(answers)', | ||
Type: `String|function()` _required_ | ||
Type: `String|function(answers):String` _required_ | ||
Question to ask the user. If it's a function, it needs to return a string. | ||
The question to ask the user. If it's a function, it needs to return a string. The first parameter of this function will be an array containing all previously supplied answers. This allows you to customize the message based on the results of previous questions. | ||
@@ -268,28 +268,23 @@ Hint: keep it short, users hate to read. | ||
type: 'list', | ||
message: 'Bump version from ' + '<%= pkg.version %>'.cyan + ' to:', | ||
message: 'Bump version from ' + '<%= pkg.version %>' + ' to:', | ||
choices: [ | ||
{ | ||
value: 'build', | ||
name: 'Build: '.yellow + (currentVersion + '-?').yellow + | ||
' Unstable, betas, and release candidates.' | ||
name: 'Build: '+ (currentVersion + '-?') + ' Unstable, betas, and release candidates.' | ||
}, | ||
{ | ||
value: 'patch', | ||
name: 'Patch: '.yellow + semver.inc(currentVersion, 'patch').yellow + | ||
' Backwards-compatible bug fixes.' | ||
name: 'Patch: ' + semver.inc(currentVersion, 'patch') + ' Backwards-compatible bug fixes.' | ||
}, | ||
{ | ||
value: 'minor', | ||
name: 'Minor: '.yellow + semver.inc(currentVersion, 'minor').yellow + | ||
' Add functionality in a backwards-compatible manner.' | ||
name: 'Minor: ' + semver.inc(currentVersion, 'minor') + ' Add functionality in a backwards-compatible manner.' | ||
}, | ||
{ | ||
value: 'major', | ||
name: 'Major: '.yellow + semver.inc(currentVersion, 'major').yellow + | ||
' Incompatible API changes.' | ||
name: 'Major: ' + semver.inc(currentVersion, 'major') + ' Incompatible API changes.' | ||
}, | ||
{ | ||
value: 'custom', | ||
name: 'Custom: ?.?.?'.yellow + | ||
' Specify version...' | ||
name: 'Custom: ?.?.? Specify version...' | ||
} | ||
@@ -306,5 +301,4 @@ ] | ||
validate: function (value) { | ||
var valid = semver.valid(value) && true; | ||
return valid || 'Must be a valid semver, such as 1.2.3-rc1. See ' + | ||
'http://semver.org/'.blue.underline + ' for more details.'; | ||
var valid = semver.valid(value); | ||
return !!valid || 'Must be a valid semver, such as 1.2.3-rc1. See http://semver.org/ for more details.'; | ||
} | ||
@@ -319,4 +313,3 @@ }, | ||
value: 'package', | ||
name: 'package.json' + | ||
(!grunt.file.isFile('package.json') ? ' file not found, will create one'.grey : ''), | ||
name: 'package.json' + (!grunt.file.isFile('package.json') ? ' not found, will create one' : ''), | ||
checked: grunt.file.isFile('package.json') | ||
@@ -326,4 +319,3 @@ }, | ||
value: 'bower', | ||
name: 'bower.json' + | ||
(!grunt.file.isFile('bower.json') ? ' file not found, will create one'.grey : ''), | ||
name: 'bower.json' + (!grunt.file.isFile('bower.json') ? ' not found, will create one' : ''), | ||
checked: grunt.file.isFile('bower.json') | ||
@@ -348,2 +340,3 @@ }, | ||
### Release History | ||
@@ -364,6 +357,6 @@ * **1.3.0** - 26 Oct 2014 - Add {{done}} callback for {{then}}. | ||
### About the Author [![@dylang](https://img.shields.io/badge/github-dylang-green.svg?style=flat-square)](https://github.com/dylang) [![@dylang](https://img.shields.io/badge/twitter-dylang-blue.svg?style=flat-square)](https://twitter.com/dylang) | ||
### About the Author | ||
Hi! Thanks for checking `grunt-prompt`! My name is **Dylan Greene**. When not overwhelmed with my two young kids I enjoy contributing | ||
to the open source community. I'm also a tech lead at [Opower](http://opower.com). | ||
Hi! Thanks for checking out this project! My name is **Dylan Greene**. When not overwhelmed with my two young kids I enjoy contributing | ||
to the open source community. I'm also a tech lead at [Opower](http://opower.com). [![@dylang](https://img.shields.io/badge/github-dylang-green.svg)](https://github.com/dylang) [![@dylang](https://img.shields.io/badge/twitter-dylang-blue.svg)](https://twitter.com/dylang) | ||
@@ -373,8 +366,8 @@ Here's some of my other Node projects: | ||
| Name | Description | npm Downloads | | ||
|---|---|--:|--:| | ||
|---|---|---| | ||
| [`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. | [![grunt-notify](https://img.shields.io/npm/dm/grunt-notify.svg?style=flat-square)](https://www.npmjs.org/package/grunt-notify) | | ||
| [`npm‑check`](https://github.com/dylang/npm-check) | Check for outdated, incorrect, and unused dependencies. | [![npm-check](https://img.shields.io/npm/dm/npm-check.svg?style=flat-square)](https://www.npmjs.org/package/npm-check) | | ||
| [`shortid`](https://github.com/dylang/shortid) | Amazingly short non-sequential url-friendly unique id generator. | [![shortid](https://img.shields.io/npm/dm/shortid.svg?style=flat-square)](https://www.npmjs.org/package/shortid) | | ||
| [`rss`](https://github.com/dylang/node-rss) | RSS feed generator. Add RSS feeds to any project. Supports enclosures and GeoRSS. | [![rss](https://img.shields.io/npm/dm/rss.svg?style=flat-square)](https://www.npmjs.org/package/rss) | | ||
| [`xml`](https://github.com/dylang/node-xml) | Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples. | [![xml](https://img.shields.io/npm/dm/xml.svg?style=flat-square)](https://www.npmjs.org/package/xml) | | ||
| [`npm‑check`](https://github.com/dylang/npm-check) | Check for outdated, incorrect, and unused dependencies. | [![npm-check](https://img.shields.io/npm/dm/npm-check.svg?style=flat-square)](https://www.npmjs.org/package/npm-check) | | ||
| [`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. | [![changelog](https://img.shields.io/npm/dm/changelog.svg?style=flat-square)](https://www.npmjs.org/package/changelog) | | ||
@@ -390,3 +383,3 @@ | [`grunt‑attention`](https://github.com/dylang/grunt-attention) | Display attention-grabbing messages in the terminal | [![grunt-attention](https://img.shields.io/npm/dm/grunt-attention.svg?style=flat-square)](https://www.npmjs.org/package/grunt-attention) | | ||
### License | ||
Copyright (c) 2014 Dylan Greene, contributors. | ||
Copyright (c) 2015 Dylan Greene, contributors. | ||
@@ -398,3 +391,4 @@ Released under the [MIT license](https://tldrlegal.com/license/mit-license). | ||
*** | ||
_Generated using [grunt-readme](https://github.com/assemble/grunt-readme) with [grunt-templates-dylang](https://github.com/dylang/grunt-templates-dylang) on Sunday, October 26, 2014._ | ||
_Generated using [grunt-readme](https://github.com/assemble/grunt-readme) with [grunt-templates-dylang](https://github.com/dylang/grunt-templates-dylang) on Wednesday, November 11, 2015._ | ||
_To make changes to this document look in `/templates/readme/` | ||
@@ -41,5 +41,2 @@ /* | ||
question.choices = addSeparator(question.choices); | ||
if (_.isFunction(question.message)) { | ||
question.message = question.message(); | ||
} | ||
return question; | ||
@@ -46,0 +43,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
108647
2
11
379
2
384
+ Addedansi-escapes@1.4.0(transitive)
+ Addedcli-cursor@1.0.2(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedexit-hook@1.1.1(transitive)
+ Addedinquirer@0.11.4(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedmute-stream@0.0.5(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedonetime@1.1.0(transitive)
+ Addedreadline2@1.0.1(transitive)
+ Addedrestore-cursor@1.0.1(transitive)
+ Addedrun-async@0.1.0(transitive)
+ Addedrx-lite@3.1.2(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedabbrev@1.1.1(transitive)
- Removedansi-regex@1.1.1(transitive)
- Removedargparse@0.1.16(transitive)
- Removedasync@0.1.22(transitive)
- Removedcoffee-script@1.3.3(transitive)
- Removedcolors@0.6.2(transitive)
- Removeddateformat@1.0.2-1.2.3(transitive)
- Removedesprima@1.0.4(transitive)
- Removedeventemitter2@0.4.14(transitive)
- Removedexit@0.1.2(transitive)
- Removedfindup-sync@0.1.3(transitive)
- Removedgetobject@0.1.0(transitive)
- Removedglob@3.1.213.2.11(transitive)
- Removedgraceful-fs@1.2.3(transitive)
- Removedgrunt@0.4.5(transitive)
- Removedgrunt-legacy-log@0.1.3(transitive)
- Removedgrunt-legacy-log-utils@0.1.1(transitive)
- Removedgrunt-legacy-util@0.2.0(transitive)
- Removedhooker@0.2.3(transitive)
- Removediconv-lite@0.2.11(transitive)
- Removedinherits@1.0.22.0.4(transitive)
- Removedinquirer@0.8.5(transitive)
- Removedjs-yaml@2.0.5(transitive)
- Removedlodash@0.9.22.4.2(transitive)
- Removedlru-cache@2.7.3(transitive)
- Removedminimatch@0.2.140.3.0(transitive)
- Removedmute-stream@0.0.4(transitive)
- Removednopt@1.0.10(transitive)
- Removedreadline2@0.1.1(transitive)
- Removedrimraf@2.2.8(transitive)
- Removedrx@2.5.3(transitive)
- Removedsigmund@1.0.1(transitive)
- Removedstrip-ansi@2.0.1(transitive)
- Removedunderscore@1.7.0(transitive)
- Removedunderscore.string@2.2.12.3.32.4.0(transitive)
- Removedwhich@1.0.9(transitive)
Updatedinquirer@^0.11.0
Updatedlodash@^3.10.1