@@ -16,7 +16,6 @@ const { basename, resolve } = require('path');
16
16
const replace = require ( 'replace-in-file' ) ;
17
17
const { readFileSync, writeFileSync } = require ( 'fs' ) ;
18
18
const { cyan, green, red, underline, yellow } = require ( 'colors' ) ;
19
- const { fork } = require ( 'child_process' ) ;
20
19
const _prompt = require ( 'prompt' ) ;
21
20
const { mv, rm, which, exec } = require ( 'shelljs' ) ;
22
21
@@ -29,7 +28,6 @@ const modifyFiles = [
29
28
'README.md' ,
30
29
'CODE_OF_CONDUCT.md' ,
31
30
] ;
32
- const renameFiles : Array < string > = [ ] ;
33
31
34
32
/**
35
33
* Removes items from the project that aren't needed after the initial setup
@@ -91,28 +89,6 @@ function modifyGitignoreFile(): void {
91
89
} ) ;
92
90
}
93
91
94
- /**
95
- * Renames any template files to the new library name
96
- *
97
- * @param libraryName
98
- */
99
- function renameItems ( libraryName : string ) {
100
- console . log ( underline . white ( 'Renamed' ) ) ;
101
-
102
- renameFiles . forEach ( function ( files ) {
103
- // Files[0] is the current filename
104
- // Files[1] is the new name
105
- const newFilename = files [ 1 ] . replace ( / - - l i b r a r y n a m e - - / g, libraryName ) ;
106
- mv (
107
- resolve ( __dirname , '..' , files [ 0 ] ) ,
108
- resolve ( __dirname , '..' , newFilename )
109
- ) ;
110
- console . log ( cyan ( files [ 0 ] + ' => ' + newFilename ) ) ;
111
- } ) ;
112
-
113
- console . log ( '\n' ) ;
114
- }
115
-
116
92
/**
117
93
* Calls any external programs to finish setting up the library
118
94
*/
0 commit comments