Skip to content

Commit

Permalink
Merge branch 'greenkeeper/@travi/eslint-config-travi-1.6.16'
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jun 23, 2018
2 parents 7c00271 + dac68f5 commit 3bbe05d
Show file tree
Hide file tree
Showing 12 changed files with 130 additions and 169 deletions.
178 changes: 67 additions & 111 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"devDependencies": {
"@travi/any": "1.7.5",
"@travi/eslint-config-travi": "^1.6.14",
"@travi/eslint-config-travi": "^1.6.16",
"babel-plugin-transform-object-rest-spread": "6.26.0",
"babel-preset-env": "^1.7.0",
"babel-register": "6.26.0",
Expand Down
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export default {
'spdx-license-list/simple',
'util',
'write-yaml',
'git-config'
'git-config',
'joi',
'hoek'
],
output: [
{file: 'lib/index.cjs.js', format: 'cjs', sourcemap: true},
Expand Down
2 changes: 1 addition & 1 deletion src/prompt-conditionals.js → src/prompts/conditionals.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {questionNames} from './prompts';
import {questionNames} from './question-names';

export function vcsHostPromptShouldBePresented(answers) {
return answers[questionNames.GIT_REPO];
Expand Down
14 changes: 14 additions & 0 deletions src/prompts/question-names.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const questionNames = {
PROJECT_NAME: 'projectName',
DESCRIPTION: 'description',
VISIBILITY: 'visibility',
GIT_REPO: 'gitRepo',
REPO_HOST: 'repoHost',
REPO_OWNER: 'repoOwner',
UNLICENSED: 'unlicensed',
LICENSE: 'license',
COPYRIGHT_HOLDER: 'copyrightHolder',
COPYRIGHT_YEAR: 'copyrightYear',
PROJECT_TYPE: 'projectType',
CI: 'ci'
};
Loading

0 comments on commit 3bbe05d

Please sign in to comment.