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: docs/README.md
+30-22Lines changed: 30 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,39 +8,43 @@ async composers
8
8
9
9
## setup
10
10
11
-
_gulp what?_ - If you don't know gulp [go here first][gulp]
11
+
> gulp what?
12
12
13
-
_Install with [npm][npm]_ - `npm install --save-dev gulp-runtime`
13
+
If you don't know gulp [go here first][gulp]
14
14
15
-
_Then open your favourite editor_
15
+
> Install with [npm][npm]
16
16
17
-
Go to that `gulpfile` and change this line
17
+
`npm install --save-dev gulp-runtime`
18
18
19
-
```js
20
-
var gulp =require('gulp');
21
-
```
19
+
> Then open your favourite editor
22
20
23
-
with
21
+
Go to that `gulpfile` and change this line
24
22
25
-
```js
26
-
var gulp =require('gulp-runtime').create();
27
-
```
23
+
```js
24
+
var gulp =require('gulp');
25
+
```
28
26
29
-
After that just run `gulpfile`with`node` directly from the command line
27
+
with
30
28
31
-
```sh
32
-
node gulpfile.js --tasks default watch serve
33
-
```
29
+
```js
30
+
var gulp =require('gulp-runtime').create();
31
+
```
34
32
35
-
If no argument is given the `default` task will run instead (as gulp does).
33
+
After that just run `gulpfile` with `node` directly from the command line
36
34
37
-
__What about the CLI?__
35
+
```sh
36
+
node gulpfile.js --tasks default watch serve
37
+
```
38
38
39
-
Add an alias to your `.bashrc`, `.zshrc`
39
+
If no argument is given the `default` task will run instead (as gulp does).
40
40
41
-
```sh
42
-
rulp='node gulpfile.js'
43
-
```
41
+
> What about the CLI?
42
+
43
+
Add an alias to your `.bashrc`, `.zshrc`
44
+
45
+
```sh
46
+
rulp='node gulpfile.js'
47
+
```
44
48
45
49
## API
46
50
@@ -93,7 +97,6 @@ For more regex madness on the [parth][parth] module.
93
97
94
98
```js
95
99
functionstart(tasks...)
96
-
function start(array tasks, args...)
97
100
```
98
101
99
102
Run any number of `tasks...` given. Tasks can be either a `string`, that matches one of the tasks registered with or without its parameters, or a `function`.
@@ -113,6 +116,11 @@ gulp.task('thing', function (done){
113
116
114
117
gulp.start(build, 'thing');
115
118
```
119
+
___
120
+
121
+
```js
122
+
functionstart(arraytasks, args...)
123
+
```
116
124
117
125
If the first argument is an array its taken as the tasks to run and the rest of arguments as the arguments to pass to the tasks to run.
0 commit comments