File tree Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 1+ var  _  =  require ( 'lodash' ) ; 
2+ var  exec  =  require ( 'child_process' ) . execSync ; 
3+ var  fs  =  require ( 'fs-extra' ) ; 
4+ var  path  =  require ( 'path' ) ; 
5+ 
6+ if  ( fs . existsSync ( "dist" ) )  fs . removeSync ( "dist" ) ; 
7+ fs . mkdirSync ( "dist" ) ; 
8+ fs . mkdirSync ( "dist" + path . sep + "webdriver-java" ) ; 
9+ fs . copySync ( "webdriver-java" + path . sep + "table.html" ,  "dist" + path . sep + "webdriver-java" + path . sep + "table.html" ) ; 
10+ 
11+ fs . copySync ( "index.html" ,  "dist" + path . sep + "index.html" ) ; 
12+ fs . copySync ( "css" ,  "dist" + path . sep + "css" ) ; 
13+ 
14+ _ . each ( fs . readdirSync ( '.' ) ,  function ( name )  { 
15+ 	if ( fs . statSync ( name ) . isDirectory ( )  &&  name [ 0 ]  !==  '.'  &&  name  !==  'css'  &&  name  !==  'node_modules'  &&  name  !==  'webdriver-java'  &&  name  !==  'dist' )  { 
16+ 		console . log ( "dist" + path . sep + name ) ; 
17+ 		fs . mkdirSync ( "dist" + path . sep + name ) ; 
18+ 		fs . mkdirSync ( "dist" + path . sep + name + path . sep + "dist" ) ; 
19+ 		fs . copySync ( name + path . sep + "dist" ,  "dist" + path . sep + name + path . sep + "dist" ) ; 
20+ 		if  ( fs . existsSync ( name + path . sep + "index.html" ) )  { 
21+ 			fs . copySync ( name + path . sep + "index.html" ,  "dist" + path . sep + name + path . sep + "index.html" ) ; 
22+ 		} 
23+ 	} 
24+ } ) ; 
25+ 
Original file line number Diff line number Diff line change @@ -121,7 +121,6 @@ function view(state$) {
121121			< table  className = 'table table-hover table-striped test-data' > 
122122				< tbody > 
123123				{ 
124- 					console . log ( state ) , 
125124					state . items . map ( item  => 
126125						< tr  id = { item . id }  className = { state . selected  ===  item . id  ? 'danger'  : '' } > 
127126							< td  className = 'col-md-1' > { item . id } </ td > 
@@ -137,6 +136,7 @@ function view(state$) {
137136				} 
138137				</ tbody > 
139138			</ table > 
139+ 			< span  className = "preloadicon glyphicon glyphicon-remove"  aria-hidden = "true" > </ span > 
140140		</ div > 
141141	) ; 
142142} 
Original file line number Diff line number Diff line change 2525  "license" : " ISC"  ,
2626  "homepage" : " https://github.com/krausest/js-framework-benchmark"  ,
2727  "dependencies" : {
28+     "fs-extra" : " ^0.30.0"  ,
2829    "http-server" : " ^0.9.0"  ,
2930    "lodash" : " ^4.0.0" 
3031  }
  Load Diff Large diffs are not rendered by default. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments