Skip to content

Commit 4da93f3

Browse files
committed
[ci skip] docs: main readme review
1 parent 02a3354 commit 4da93f3

File tree

1 file changed

+38
-31
lines changed

1 file changed

+38
-31
lines changed

docs/README.md

Lines changed: 38 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1-
> Find something missing? [Open an issue](open-an-issue)
1+
> Found something wrong or missing? [Open an issue!](open-an-issue)
2+
3+
The module comes with two static methods
4+
5+
[Gulp.create](#gulpcreate) -
6+
[Gulp.createClass](#gulpcreateclass)
7+
8+
and the same [gulp API][gulp-api] methods we know and love
9+
10+
[gulp.src](#gulptask) -
11+
[gulp.dest](#gulptask) -
12+
[gulp.task](#gulptask) -
13+
[gulp.watch](#gulptask)
14+
15+
and 4 more to bundle/run tasks
16+
17+
[gulp.start](#gulpstart) -
18+
[gulp.stack](#gulpstack) -
19+
[gulp.series](#gulpseries) -
20+
[gulp.parallel](#gulpparallel)
221

322
# documentation
423

@@ -12,10 +31,10 @@
1231
- [Instance methods](#instance-methods)
1332
- [gulp.task](#gulptask)
1433
- [gulp.start](#gulpstart)
15-
- [async composers](#async-composers)
16-
- [gulp.series](#gulpseries)
17-
- [gulp.parallel](#gulpparallel)
18-
- [gulp.stack](#gulpstack)
34+
- [async composers](#async-composers)
35+
- [gulp.series](#gulpseries)
36+
- [gulp.parallel](#gulpparallel)
37+
- [gulp.stack](#gulpstack)
1938
- [CLI](#cli)
2039
- [REPL](#repl)
2140

@@ -25,7 +44,9 @@
2544

2645
1. Install `npm install --save-dev gulp-runtime`
2746

28-
2. Open a `gulpfile`, or [create one][example-gulpfile], and change this line
47+
2. Open a `gulpfile`, or [create one][example-gulpfile], and
48+
49+
change this line
2950

3051
```js
3152
var gulp = require('gulp');
@@ -45,34 +66,22 @@
4566

4667
Thats it! When no arguments are given after `gulpfile` the `default` task will run instead.
4768

48-
3. What about the CLI? Can I run `gulp` from the terminal?
69+
3. What about the CLI? Can I just run `gulp-runtime` from the terminal?
4970

50-
Yes. Just add an alias line to your `.bashrc`/`.zshrc`
71+
Yes. Just add an alias to your `.bashrc`/`.zshrc`
5172

5273
```sh
5374
alias gulp-runtime='node $(find . -name "gulpfile.js" -not -path "./node_modules/*" | head -n1)'
5475
```
5576

56-
which will run the first `gulpfile.js` found excluding `node_moduldes`. Open a new terminal tab and then you can do
77+
which will use the first `gulpfile.js` found excluding `node_modules`.
78+
79+
Open a new terminal tab and then
5780

5881
`gulp-runtime --tasks default watch serve`
5982

6083
## API
6184

62-
The module comes with the same [gulp API][gulp-api] methods we know and love
63-
64-
[gulp.src](#gulptask) -
65-
[gulp.dest](#gulptask) -
66-
[gulp.task](#gulptask) -
67-
[gulp.watch](#gulptask)
68-
69-
and 4 more
70-
71-
[gulp.start](#gulpstart) -
72-
[gulp.stack](#gulpstack) -
73-
[gulp.series](#gulpseries) -
74-
[gulp.parallel](#gulpparallel)
75-
7685
### Static methods
7786

7887
When you require the module
@@ -93,7 +102,7 @@ function create(Object options)
93102

94103
- `options.log = true` if `false` the instance will have no logging
95104
- `options.repl = false` no REPL by default
96-
- `options.wait = false` tasks run in __parallel__ by default. Pass `wait: true` to run tasks in __series__ by default
105+
- `options.wait = false` tasks run in __parallel__ by default. Pass `wait: true` to make __series__ the default when running tasks
97106

98107
#### Gulp.createClass
99108

@@ -119,13 +128,11 @@ var Gulp = require('gulp-runtime').createClass({
119128
}
120129
})
121130

122-
module.exports = Gulp;
131+
exports = module.exports = Gulp;
123132
```
124133

125134
### Instance methods
126135

127-
You can split builds into instances within the same process and run them separately.
128-
129136
#### gulp.task
130137

131138
`gulp.src`, `gulp.dest`, `gulp.watch` and `gulp.task` behaves the same as described in the [`gulp` API documentation][gulp-api].
@@ -218,13 +225,13 @@ gulp.task('default', function (done) {
218225
});
219226
```
220227

221-
### async composers
228+
#### async composers
222229

223230
`gulp.start` just runs tasks which is not enough when you only need to compose them. For this reason we need another function that will bundle and run a set of tasks only when called.
224231

225232
Just as tasks dependencies bundles into one task others, we have 3 async composer functions to help with this (in fact there is only one function and two others are sugar on top).
226233

227-
#### gulp.series
234+
##### gulp.series
228235

229236
```js
230237
function series(tasks...[, Object options])
@@ -234,7 +241,7 @@ function series(tasks...[, Object options])
234241

235242
Its sugar on top of [`gulp.stack`][#gulpstack] to force the tasks to be run in series.
236243

237-
#### gulp.parallel
244+
##### gulp.parallel
238245

239246
```js
240247
function parallel(tasks...[, Object options])
@@ -244,7 +251,7 @@ function parallel(tasks...[, Object options])
244251

245252
Its sugar on top of [`gulp.stack`][#gulpstack] to force the tasks to be run in series.
246253

247-
#### gulp.stack
254+
##### gulp.stack
248255

249256
```js
250257
function stack(tasks...[, Object options])

0 commit comments

Comments
 (0)