Skip to content

Commit 43083db

Browse files
Tyler Kellenphated
authored andcommitted
Update: Revise for liftoff 0.13 & add support for node flags
1 parent 1666723 commit 43083db

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

bin/hacker.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

1923
Hacker.launch({
@@ -25,6 +29,7 @@ Hacker.launch({
2529
}, invoke);
2630

2731
function invoke (env) {
32+
2833
if (argv.verbose) {
2934
console.log('LIFTOFF SETTINGS:', this);
3035
console.log('CLI OPTIONS:', argv);

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@
3232
"task runner"
3333
],
3434
"dependencies": {
35-
"interpret": "^0.3.0",
36-
"liftoff": "^0.11.0",
37-
"minimist": "^0.1.0"
35+
"interpret": "~0.3.7",
36+
"liftoff": "~0.13.0",
37+
"minimist": "~1.1.0",
38+
"v8flags": "~1.0.1"
3839
},
3940
"devDependencies": {}
4041
}

0 commit comments

Comments
 (0)