@@ -7,13 +7,17 @@ const Hacker = new Liftoff({
77// moduleName: 'hacker', // these are assigned
88// configName: 'hackerfile', // automatically by
99// processTitle: 'hacker', // the "name" option
10- extensions : require ( 'interpret' ) . jsVariants
10+ extensions : require ( 'interpret' ) . jsVariants ,
1111 // ^ automatically attempt to require module for any javascript variant
1212 // supported by interpret. e.g. coffee-script / livescript, etc
13+ nodeFlags : [ '--harmony' ] // to support all flags: require('v8flags').fetch();
14+ // ^ respawn node with any flag listed here
1315} ) . on ( 'require' , function ( name , module ) {
1416 console . log ( 'Loading:' , name ) ;
1517} ) . on ( 'requireFail' , function ( name , err ) {
1618 console . log ( 'Unable to load:' , name , err ) ;
19+ } ) . on ( 'respawn' , function ( proc ) {
20+ console . log ( 'Respawned to PID:' , proc . pid ) ;
1721} ) ;
1822
1923Hacker . launch ( {
@@ -25,6 +29,7 @@ Hacker.launch({
2529} , invoke ) ;
2630
2731function invoke ( env ) {
32+
2833 if ( argv . verbose ) {
2934 console . log ( 'LIFTOFF SETTINGS:' , this ) ;
3035 console . log ( 'CLI OPTIONS:' , argv ) ;
0 commit comments