@@ -62,9 +62,9 @@ prompt(
62
62
fs . mkdirSync ( path . join ( appPath , 'scripts' ) ) ;
63
63
64
64
console . log ( ) ;
65
- console . log ( 'Copying files to ' + cyan ( appPath ) ) ;
65
+ console . log ( cyan ( 'Copying files into ' + appPath ) ) ;
66
66
files . forEach ( function ( file ) {
67
- console . log ( ' Copying ' + cyan ( file ) ) ;
67
+ console . log ( ' Adding ' + cyan ( file ) + ' to the project' ) ;
68
68
var content = fs
69
69
. readFileSync ( path . join ( ownPath , file ) , 'utf8' )
70
70
// Remove dead code from .js files on eject
@@ -81,35 +81,35 @@ prompt(
81
81
var babelConfig = JSON . parse ( fs . readFileSync ( path . join ( ownPath , '.babelrc' ) , 'utf8' ) ) ;
82
82
var eslintConfig = JSON . parse ( fs . readFileSync ( path . join ( ownPath , '.eslintrc' ) , 'utf8' ) ) ;
83
83
84
- console . log ( cyan ( 'Updating dependencies... ' ) ) ;
84
+ console . log ( cyan ( 'Updating the dependencies' ) ) ;
85
85
var ownPackageName = ownPackage . name ;
86
- console . log ( ' Removing dependency: ' + cyan ( ownPackageName ) ) ;
86
+ console . log ( ' Removing ' + cyan ( ownPackageName ) + ' from devDependencies' ) ;
87
87
delete appPackage . devDependencies [ ownPackageName ] ;
88
88
89
89
Object . keys ( ownPackage . dependencies ) . forEach ( function ( key ) {
90
90
// For some reason optionalDependencies end up in dependencies after install
91
91
if ( ownPackage . optionalDependencies [ key ] ) {
92
92
return ;
93
93
}
94
- console . log ( ' Adding dependency: ' + cyan ( key ) ) ;
94
+ console . log ( ' Adding ' + cyan ( key ) + ' to devDependencies' ) ;
95
95
appPackage . devDependencies [ key ] = ownPackage . dependencies [ key ] ;
96
96
} ) ;
97
97
console . log ( ) ;
98
- console . log ( cyan ( 'Updating scripts... ' ) ) ;
98
+ console . log ( cyan ( 'Updating the scripts' ) ) ;
99
99
delete appPackage . scripts [ 'eject' ] ;
100
100
Object . keys ( appPackage . scripts ) . forEach ( function ( key ) {
101
101
appPackage . scripts [ key ] = appPackage . scripts [ key ]
102
102
. replace ( / r e a c t - s c r i p t s ( \w + ) / g, 'node scripts/$1.js' ) ;
103
103
console . log (
104
104
' Replacing ' +
105
- cyan ( '\ "react-scripts ' + key + '\ "' ) +
105
+ cyan ( '"react-scripts ' + key + '"' ) +
106
106
' with ' +
107
- cyan ( '\" ' + appPackage . scripts [ key ] + '\ "' )
107
+ cyan ( '"node scripts/ ' + key + '.js "' )
108
108
) ;
109
109
} ) ;
110
110
111
111
console . log ( ) ;
112
- console . log ( cyan ( 'Adding configuration to ' ) + ' package.json' + cyan ( '... ') ) ;
112
+ console . log ( cyan ( 'Configuring package.json' ) ) ;
113
113
// Add Jest config
114
114
console . log ( ' Adding ' + cyan ( 'Jest' ) + ' configuration' ) ;
115
115
appPackage . jest = createJestConfig (
0 commit comments