File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ var names = require('../menu.json').filter(function (name) {
88 return ! / ^ ! / . test ( name )
99} ) ;
1010
11+ var args = process . argv . slice ( 2 ) ;
12+ if ( args ) names = args ;
13+
1114var dirs = names . map ( function ( name ) {
1215 return path . join (
1316 __dirname , '../solutions' ,
@@ -42,17 +45,19 @@ var customBuild = {
4245var customRun = {
4346 'BUILD A WIDGET' : function ( t ) {
4447 setTimeout ( function ( ) {
45- var ps = spawn ( 'xvfb-run ' , [
46- '-a' , 'chromium-browser' , ' http://localhost:55500'
48+ var ps = spawn ( 'chromium-browser ' , [
49+ 'http://localhost:55500'
4750 ] ) ;
4851 t . on ( 'end' , function ( ) { ps . kill ( 'SIGKILL' ) } ) ;
4952 } , 1000 ) ;
5053 } ,
5154 'WIDGET WITH ASSETS' : function ( t ) {
5255 setTimeout ( function ( ) {
53- var ps = spawn ( 'xvfb-run ' , [
54- '-a' , 'chromium-browser' , ' http://localhost:55500'
56+ var ps = spawn ( 'chromium-browser ' , [
57+ 'http://localhost:55500'
5558 ] ) ;
59+ ps . stdout . pipe ( process . stderr ) ;
60+ ps . stderr . pipe ( process . stderr ) ;
5661 t . on ( 'end' , function ( ) { ps . kill ( 'SIGKILL' ) } ) ;
5762 } , 1000 ) ;
5863 }
You can’t perform that action at this time.
0 commit comments