-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Franck
committed
Jun 7, 2019
1 parent
d0f61f9
commit 97d675e
Showing
7 changed files
with
39 additions
and
30 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const get = require('lodash/get') | ||
|
||
module.exports = packageJson => ({ | ||
module.exports = projectInfos => ({ | ||
type: 'input', | ||
message: 'Enter your name', | ||
name: 'authorName', | ||
default: get(packageJson, 'author', undefined) | ||
default: projectInfos.author | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const { getReposIssuesUrl } = require('../utils') | ||
|
||
module.exports = async packageJson => ({ | ||
module.exports = packageJson => ({ | ||
type: 'input', | ||
message: 'Enter the url of your issues (use empty value to skip)', | ||
name: 'contributingUrl', | ||
default: await getReposIssuesUrl(packageJson) | ||
default: packageJson.contributingUrl | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const get = require('lodash/get') | ||
|
||
module.exports = packageJson => ({ | ||
module.exports = projectInfos => ({ | ||
type: 'input', | ||
message: 'Enter your project description', | ||
name: 'projectDescription', | ||
default: get(packageJson, 'description', undefined) | ||
default: projectInfos.description | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
const getProjectName = require('project-name') | ||
|
||
module.exports = () => ({ | ||
module.exports = projectInfos => ({ | ||
type: 'input', | ||
message: 'Enter your project name', | ||
name: 'projectName', | ||
default: getProjectName() || undefined | ||
default: projectInfos.name | ||
}) |
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
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