@@ -46,7 +46,8 @@ prompt('Are you sure you want to eject? This action is permanent. [y/N]', functi
4646 path . join ( 'config' , 'webpack.config.dev.js' ) ,
4747 path . join ( 'config' , 'webpack.config.prod.js' ) ,
4848 path . join ( 'scripts' , 'build.js' ) ,
49- path . join ( 'scripts' , 'start.js' )
49+ path . join ( 'scripts' , 'start.js' ) ,
50+ path . join ( 'scripts' , 'openChrome.applescript' )
5051 ] ;
5152
5253 // Ensure that the host folder is clean and we won't override any files
@@ -68,9 +69,13 @@ prompt('Are you sure you want to eject? This action is permanent. [y/N]', functi
6869
6970 files . forEach ( function ( file ) {
7071 console . log ( 'Copying ' + file + ' to ' + hostPath ) ;
71- var content = fs . readFileSync ( path . join ( selfPath , file ) , 'utf8' ) ;
72- // Remove license header
73- content = content . replace ( / ^ \/ \* \* ( \* (? ! \/ ) | [ ^ * ] ) * \* \/ / , '' ) . trim ( ) + '\n' ;
72+ content = fs
73+ . readFileSync ( path . join ( selfPath , file ) , 'utf8' )
74+ // Remove license header from JS
75+ . replace ( / ^ \/ \* \* ( \* (? ! \/ ) | [ ^ * ] ) * \* \/ / , '' )
76+ // Remove license header from AppleScript
77+ . replace ( / ^ - - .* \n / gm, '' )
78+ . trim ( ) + '\n' ;
7479 fs . writeFileSync ( path . join ( hostPath , file ) , content ) ;
7580 } ) ;
7681 console . log ( ) ;
0 commit comments