File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Hack on your project easily. A [liftoff](https://github.com/gulpjs/liftoff) proo
18
18
4 . The rest is up to you.
19
19
20
20
#### Options
21
+
21
22
- ` --cwd ` specify the working directory to run hacker
22
23
- ` --hackerfile ` specify an exact hackerfile path
23
24
- ` --require ` require an external module before loading your hackerfile
@@ -26,18 +27,22 @@ Hack on your project easily. A [liftoff](https://github.com/gulpjs/liftoff) proo
26
27
### Examples
27
28
28
29
#### Hackerfile.js
30
+
29
31
``` js
30
32
var fs = require (' fs' );
31
- fs .writeFileSync (' tmp' ,' i will be written relative to this file, always.' );
33
+ fs .writeFileSync (' tmp' , ' i will be written relative to this file, always.' );
32
34
```
35
+
33
36
To run:
34
37
` hacker `
35
38
36
39
#### Hackerfile.coffee
40
+
37
41
``` coffeescript
38
42
fs = require ' fs'
39
43
fs .writeFileSync ' tmp' , ' i will be written relative to this file, always.'
40
44
```
45
+
41
46
To run:
42
47
` hacker `
43
48
You can’t perform that action at this time.
0 commit comments