You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-9Lines changed: 22 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ var gulp = require('gulp');
12
12
var repl =require('gulp-repl');
13
13
14
14
gulp.task('repl-start', function (cb) {
15
-
gulp.repl=repl(gulp);
15
+
gulp.repl=repl.start(gulp);
16
16
});
17
17
18
18
gulp.task('repl-stop', function (cb) {
@@ -63,37 +63,39 @@ foo bar default
63
63
64
64
### API
65
65
66
-
The module exports a function that is an alias of [`start`](#gulpreplstart)
66
+
The module exports a function
67
67
68
68
```js
69
-
vargulpREPL=require('gulp-repl');
69
+
varrepl=require('gulp-repl');
70
70
```
71
71
72
-
#### gulpREPL.add
72
+
with the following methods
73
+
74
+
#### repl.add
73
75
74
76
```js
75
77
functionadd(Gulpgulp)
76
78
```
77
79
78
80
Adds the `gulp` instance tasks for the REPL and _returns_ the module again.
79
81
80
-
#### gulpREPL.remove
82
+
#### repl.remove
81
83
82
84
```js
83
85
function remove(Gulp gulp)
84
86
```
85
87
86
88
Removes the `gulp` instance tasks from the REPL and _returns_ the module again.
87
89
88
-
#### gulpREPL.reset
90
+
#### repl.reset
89
91
90
92
```js
91
93
function reset()
92
94
```
93
95
94
96
Removes all of the previously added instances and _returns_ the module again.
95
97
96
-
#### gulpREPL.get
98
+
#### repl.get
97
99
98
100
```js
99
101
function get(Gulp gulp)
@@ -106,15 +108,19 @@ _returns_
106
108
- all of the stored instances if no arguments are given
107
109
- metadata stored for the given `gulp` instance if was already stored
108
110
109
-
#### gulpREPL.start
111
+
#### repl.start
110
112
111
113
```js
112
114
function start(Gulp gulp)
113
115
```
114
116
115
117
Takes a `gulp` instance as argument
116
118
117
-
Adds the `gulp` instance tasks for the REPL and starts a REPL listening on `stdin` and writing on `stdout` and _returns_ a `readline.Interface` instance. Each of the commands typed to the REPL are looked up in each of the instances given on `add`.
119
+
Adds the `gulp` instance tasks for the REPL.
120
+
121
+
Starts a REPL listening on `stdin` and writing on `stdout`. Each of the commands typed to the REPL are looked up in each of the instances given on `add`.
122
+
123
+
_returns_ a `readline.Interface` instance.
118
124
119
125
[See node's core module `readline` documentation about the `readline.Interface`](https://nodejs.org/api/readline.html).
0 commit comments