@@ -35,7 +35,7 @@ const questions = [
35
35
name : 'repoHost' ,
36
36
message :
37
37
"Where is the repository hosted? Hit Enter if it's on GitHub or GitLab" ,
38
- default : function ( answers ) {
38
+ default : function ( answers ) {
39
39
if ( answers . repoType === 'github' ) {
40
40
return 'https://github.com'
41
41
} else if ( answers . repoType === 'gitlab' ) {
@@ -58,10 +58,10 @@ const questions = [
58
58
type : 'input' ,
59
59
name : 'badgeFile' ,
60
60
message : 'In which file should the badge be shown?' ,
61
- when : function ( answers ) {
61
+ when : function ( answers ) {
62
62
return answers . needBadge
63
63
} ,
64
- default : function ( answers ) {
64
+ default : function ( answers ) {
65
65
return answers . contributorFile
66
66
} ,
67
67
} ,
@@ -84,14 +84,11 @@ const questions = [
84
84
name : 'commitConvention' ,
85
85
message : 'What commit convention would you want it to use?' ,
86
86
choices : Object . values ( conventions ) ,
87
- default : 'none ' ,
87
+ default : 'angular ' ,
88
88
} ,
89
89
]
90
90
91
- const uniqueFiles = _ . flow (
92
- _ . compact ,
93
- _ . uniq ,
94
- )
91
+ const uniqueFiles = _ . flow ( _ . compact , _ . uniq )
95
92
96
93
module . exports = function prompt ( ) {
97
94
return git
0 commit comments