@@ -7,7 +7,7 @@ var shell = require('shelljs'),
7
7
8
8
shell . config . silent = false ;
9
9
10
- module . exports = function ( _configJson , _process ) {
10
+ module . exports = function wrapperConfig ( _configJson , _process ) {
11
11
'use strict' ;
12
12
var configJson ,
13
13
localConfig ;
@@ -36,7 +36,8 @@ module.exports = function(_configJson, _process) {
36
36
getCommitConf : getCommitConf ,
37
37
getProperty : getProperty ,
38
38
getLogCommand : getLogCommand ,
39
- getCommitPromptText : getCommitPromptText
39
+ getCommitPromptText : getCommitPromptText ,
40
+ getConfigFilesData : getConfigFilesData
40
41
} ;
41
42
42
43
////////////////
@@ -92,5 +93,45 @@ module.exports = function(_configJson, _process) {
92
93
}
93
94
return conf . config [ prop ] ;
94
95
}
96
+
97
+ function getConfigFilesData ( ) {
98
+ var config = [ {
99
+ name : 'Turbo Commit' ,
100
+ value : 'turbo' ,
101
+ getter : getTurboJson
102
+ } , {
103
+ name : 'Angular' ,
104
+ value : 'angular' ,
105
+ getter : getAngularJson
106
+ } , {
107
+ name : 'Open UI5' ,
108
+ value : 'ui5' ,
109
+ getter : getUi5Json
110
+ } , {
111
+ name : 'Custom' ,
112
+ value : 'custom' ,
113
+ getter : getCustomTemplateJson
114
+ } ] ;
115
+
116
+ return config ;
117
+
118
+ //////////
119
+
120
+ function getTurboJson ( ) {
121
+ return require ( './configs/turbo.json' )
122
+ }
123
+
124
+ function getAngularJson ( ) {
125
+ return require ( './configs/angular.json' )
126
+ }
127
+
128
+ function getUi5Json ( ) {
129
+ return require ( './configs/open-ui5.json' )
130
+ }
131
+
132
+ function getCustomTemplateJson ( ) {
133
+ return require ( './configs/custom.json' )
134
+ }
135
+ }
95
136
}
96
137
} ;
0 commit comments