@@ -66,7 +66,7 @@ module.exports = generators.Base.extend({
66
66
*/
67
67
this . addon . type = this . addon . type . toLowerCase ( ) ; // ex. Input > input
68
68
this . addon . module = camelcase ( this . addon . name ) ; // ex. add on > addOn
69
- this . addon . typeName = this . addon . name . replace ( / / g, '' ) ; // ex. add on > addon
69
+ this . addon . formType = this . addon . name . replace ( / / g, '' ) ; // ex. add on > addon
70
70
this . addon . paramName = this . addon . name . replace ( / / g, '-' ) ; // ex. add on > add-on
71
71
72
72
/* We are done here... Let's continue
@@ -99,7 +99,7 @@ module.exports = generators.Base.extend({
99
99
*/
100
100
form = JSON . parse ( form ) ;
101
101
if ( form [ 0 ] . hasOwnProperty ( 'type' ) ) {
102
- form [ 0 ] . type = this . addon . typeName ;
102
+ form [ 0 ] . type = this . addon . formType ;
103
103
}
104
104
105
105
this . addon . files . base . forEach ( function ( file ) {
@@ -122,7 +122,7 @@ module.exports = generators.Base.extend({
122
122
name : this . addon . name ,
123
123
module : this . addon . module ,
124
124
testModuleInj : JSON . stringify ( testModule ) ,
125
- typeName : this . addon . typeName ,
125
+ formType : this . addon . formType ,
126
126
paramName : this . addon . paramName ,
127
127
schema : schema ,
128
128
form : JSON . stringify ( form ) ,
@@ -143,7 +143,7 @@ module.exports = generators.Base.extend({
143
143
{
144
144
name : this . addon . name ,
145
145
module : this . addon . module ,
146
- typeName : this . addon . typeName ,
146
+ formType : this . addon . formType ,
147
147
paramName : this . addon . paramName ,
148
148
directive : this . addon . useDirective
149
149
}
0 commit comments