Skip to content

Commit 455b1f3

Browse files
Tyler Kellenphated
authored andcommitted
Update: Revise for liftoff 0.9
1 parent ed2532c commit 455b1f3

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
4. The rest is up to you.
1010

1111
#### Options
12-
- `--cwd` specify the working directory to start looking for your Hackerfile
12+
- `--cwd` specify the working directory to run hacker
13+
- `--hackerfile` specify an exact hackerfile path
1314
- `--require` require an external module before loading your hackerfile (e.g. coffee-script)
1415
- `--verbose` show some debugging info about how hacker is working
1516

bin/hacker.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ var Hacker = new Liftoff({
1818
console.log('Unable to load:', name, err);
1919
});
2020

21-
Hacker.launch(function(env) {
21+
Hacker.launch(launcher);
22+
23+
function launcher (env) {
2224
if(env.argv.verbose) {
23-
console.log('LIFTOFF SETTINGS:', env.liftoff);
25+
console.log('LIFTOFF SETTINGS:', this);
2426
console.log('CLI OPTIONS:', env.argv);
2527
console.log('CWD:', env.cwd);
2628
console.log('LOCAL MODULES PRELOADED:', env.preload);
@@ -29,7 +31,7 @@ Hacker.launch(function(env) {
2931
console.log('FOUND CONFIG AT:', env.configPath);
3032
console.log('CONFIG BASE DIR:', env.configBase);
3133
console.log('YOUR LOCAL MODULE IS LOCATED:', env.modulePath);
32-
console.log('LOCAL PACKAGE.JSON:', env.localPackage);
34+
console.log('LOCAL PACKAGE.JSON:', env.modulePackage);
3335
console.log('CLI PACKAGE.JSON', require('../package'));
3436
}
3537

@@ -39,4 +41,4 @@ Hacker.launch(function(env) {
3941
} else {
4042
console.log('No Hackerfile found.');
4143
}
42-
});
44+
}

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.8.7"
35+
"liftoff": "~0.9.0"
3636
},
3737
"devDependencies": {}
3838
}

0 commit comments

Comments
 (0)