@@ -15,8 +15,7 @@ let rspProject = 'React Spectrum v3';
15
15
let otherProject = 'other' ;
16
16
17
17
module . exports = function ( plop ) {
18
- plop . setActionType ( 'renameMany' , require ( '../plop-actions/renameMany' ) ) ;
19
-
18
+
20
19
const currentYear = new Date ( Date . now ( ) ) . getUTCFullYear ( ) ;
21
20
plop . setHelper ( 'currentYear' , ( ) => currentYear ) ;
22
21
@@ -26,7 +25,7 @@ module.exports = function (plop) {
26
25
} ) ;
27
26
28
27
plop . setHelper ( 'includes' , function ( array , string ) {
29
- return array . includes ( string )
28
+ return array . includes ( string ) ;
30
29
} ) ;
31
30
32
31
// controller generator
@@ -82,11 +81,6 @@ module.exports = function (plop) {
82
81
destination : `../packages/@react-aria/${ packageName } ` ,
83
82
data : { componentName, scopes}
84
83
} ) ;
85
- actions . push ( {
86
- type : 'renameMany' ,
87
- templateFiles : `packages/@react-aria/${ packageName } /**` ,
88
- renamer : name => `${ name . replace ( 'Component' , componentName ) } `
89
- } ) ;
90
84
}
91
85
92
86
if ( scopes . includes ( '@react-spectrum' ) ) {
@@ -97,11 +91,6 @@ module.exports = function (plop) {
97
91
destination : `../packages/@react-spectrum/${ packageName } ` ,
98
92
data : { packageName, componentName, componentCSS, scopes}
99
93
} ) ;
100
- actions . push ( {
101
- type : 'renameMany' ,
102
- templateFiles : `packages/@react-spectrum/${ packageName } /**` ,
103
- renamer : name => `${ name . replace ( 'Component' , componentName ) } `
104
- } ) ;
105
94
}
106
95
107
96
if ( scopes . includes ( '@react-stately' ) ) {
@@ -112,11 +101,6 @@ module.exports = function (plop) {
112
101
destination : `../packages/@react-stately/${ packageName } ` ,
113
102
data : { packageName, componentName, scopes}
114
103
} ) ;
115
- actions . push ( {
116
- type : 'renameMany' ,
117
- templateFiles : `packages/@react-stately/${ packageName } /**` ,
118
- renamer : name => `${ name . replace ( 'Component' , componentName ) } `
119
- } ) ;
120
104
}
121
105
122
106
if ( scopes . includes ( '@react-types' ) ) {
@@ -127,11 +111,6 @@ module.exports = function (plop) {
127
111
destination : `../packages/@react-types/${ packageName } ` ,
128
112
data : { packageName, componentName, scopes}
129
113
} ) ;
130
- actions . push ( {
131
- type : 'renameMany' ,
132
- templateFiles : `packages/@react-types/${ packageName } /**` ,
133
- renamer : name => `${ name . replace ( 'Component' , componentName ) } `
134
- } ) ;
135
114
}
136
115
} else {
137
116
actions . push ( {
0 commit comments