common-questions
Advanced tools
Comparing version 0.1.1 to 0.1.2
17
index.js
@@ -14,2 +14,5 @@ /*! | ||
options = options || {}; | ||
var cwd = options.cwd || process.cwd(); | ||
var name = options.name || project(cwd); | ||
return { | ||
@@ -19,13 +22,15 @@ setDefault: { | ||
'author.url': 'Author\'s URL?', | ||
'author.username': 'Author\'s GitHub username?' | ||
'author.username': 'Author\'s GitHub username?', | ||
'author.twitter': 'Author\'s Twitter username?', | ||
'author.email': 'Author\'s email address?', | ||
}, | ||
set: { | ||
name: { | ||
'project.name': { | ||
message: 'Project name?', | ||
default: project(process.cwd()), | ||
force: !!options.init | ||
default: name, | ||
force: options.init === true | ||
}, | ||
description: { | ||
'project.description': { | ||
message: 'Project description?', | ||
force: !!options.init | ||
force: options.init === true | ||
} | ||
@@ -32,0 +37,0 @@ } |
{ | ||
"name": "common-questions", | ||
"description": "An object of questions commonly used by project generators or when initializing projects. Questions can be overridden, updated or extended.", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/generate/common-questions", | ||
@@ -23,3 +23,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"dependencies": { | ||
"project-name": "^0.2.3" | ||
"project-name": "^0.2.4" | ||
}, | ||
@@ -26,0 +26,0 @@ "devDependencies": { |
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
5191
33
Updatedproject-name@^0.2.4