Skip to content

Commit

Permalink
Update: Revise for liftoff 0.13 & add support for node flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Kellen authored and phated committed Dec 24, 2018
1 parent 1666723 commit 43083db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 6 additions & 1 deletion bin/hacker.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ const Hacker = new Liftoff({
// moduleName: 'hacker', // these are assigned
// configName: 'hackerfile', // automatically by
// processTitle: 'hacker', // the "name" option
extensions: require('interpret').jsVariants
extensions: require('interpret').jsVariants,
// ^ automatically attempt to require module for any javascript variant
// supported by interpret. e.g. coffee-script / livescript, etc
nodeFlags: ['--harmony'] // to support all flags: require('v8flags').fetch();
// ^ respawn node with any flag listed here
}).on('require', function (name, module) {
console.log('Loading:',name);
}).on('requireFail', function (name, err) {
console.log('Unable to load:', name, err);
}).on('respawn', function (proc) {
console.log('Respawned to PID:', proc.pid);
});

Hacker.launch({
Expand All @@ -25,6 +29,7 @@ Hacker.launch({
}, invoke);

function invoke (env) {

if (argv.verbose) {
console.log('LIFTOFF SETTINGS:', this);
console.log('CLI OPTIONS:', argv);
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
"task runner"
],
"dependencies": {
"interpret": "^0.3.0",
"liftoff": "^0.11.0",
"minimist": "^0.1.0"
"interpret": "~0.3.7",
"liftoff": "~0.13.0",
"minimist": "~1.1.0",
"v8flags": "~1.0.1"
},
"devDependencies": {}
}

0 comments on commit 43083db

Please # to comment.