Skip to content

Commit 972c894

Browse files
Tyler Kellenphated
authored andcommitted
Update: Support new liftoff version
1 parent b683b81 commit 972c894

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

bin/hacker.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
var Liftoff = require('liftoff');
55

66
var Hacker = new Liftoff({
7-
localDeps: ['hacker'],
8-
configName: 'hackerfile',
9-
processTitle: 'hacker',
7+
name: 'hacker',
8+
// localDeps: ['hacker'], // these are assigned
9+
// configName: 'hackerfile', // automatically by
10+
// processTitle: 'hacker', // the "name" option
1011
cwdOpt: 'cwd',
1112
requireOpt: 'require'
1213
}).on('require', function (name, module) {
@@ -19,9 +20,10 @@ var Hacker = new Liftoff({
1920

2021
Hacker.launch(function() {
2122
if(this.args.verbose) {
23+
console.log('LIFTOFF SETTINGS:', this.liftoff);
2224
console.log('CLI OPTIONS:', this.args);
2325
console.log('CWD:', this.cwd);
24-
console.log('LOCAL MODULES REQUESTED:', this.localRequires);
26+
console.log('LOCAL MODULES PRELOADED:', this.preload);
2527
console.log('EXTENSIONS RECOGNIZED:', this.validExtensions);
2628
console.log('SEARCHING FOR:', this.configNameRegex);
2729
console.log('FOUND CONFIG AT:', this.configPath);
@@ -34,7 +36,6 @@ Hacker.launch(function() {
3436
if(this.configPath) {
3537
process.chdir(this.configBase);
3638
require(this.configPath);
37-
console.log(this);
3839
} else {
3940
console.log('No Hackfile found.');
4041
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"task runner"
3333
],
3434
"dependencies": {
35-
"liftoff": "~0.4.0"
35+
"liftoff": "~0.6.0"
3636
},
3737
"devDependencies": {}
3838
}

0 commit comments

Comments
 (0)