@@ -17,19 +17,20 @@ $ npm install --save base-task
1717``` js
1818const Base = require (' base' );
1919const tasks = require (' base-task' );
20-
2120const base = new Base ();
21+
2222base .use (tasks ());
2323
2424/**
2525 * Define tasks
2626 */
2727
28- base .task (' foo' , function ( cb ) {
28+ base .task (' foo' , cb => {
2929 console .log (' this is foo!' );
3030 cb ();
3131});
32- base .task (' bar' , function (cb ) {
32+
33+ base .task (' bar' , cb => {
3334 console .log (' this is bar!' );
3435 cb ();
3536});
@@ -139,12 +140,12 @@ Compose task or list of tasks into a single function that runs the tasks in seri
139140** Example**
140141
141142``` js
142- app .task (' foo' , function ( cb ) {
143+ app .task (' foo' , cb => {
143144 console .log (' this is foo' );
144145 cb ();
145146});
146147
147- const build = app .series (' foo' , function ( cb ) {
148+ const build = app .series (' foo' , cb => {
148149 console .log (' this is bar' );
149150 cb ();
150151});
@@ -170,14 +171,14 @@ Compose task or list of tasks into a single function that runs the tasks in para
170171** Example**
171172
172173``` js
173- app .task (' foo' , function ( cb ) {
174+ app .task (' foo' , cb => {
174175 setTimeout (function () {
175176 console .log (' this is foo' );
176177 cb ();
177178 }, 500 );
178179});
179180
180- const build = app .parallel (' foo' , function ( cb ) {
181+ const build = app .parallel (' foo' , cb => {
181182 console .log (' this is bar' );
182183 cb ();
183184});
@@ -273,19 +274,19 @@ Other base plugins you might be interested in:
273274
274275### Contributors
275276
276- | ** Commits** | ** Contributor** |
277- | --- | --- |
278- | 52 | [ jonschlinkert] ( https://github.com/jonschlinkert ) |
279- | 6 | [ doowb] ( https://github.com/doowb ) |
280- | 2 | [ davequick] ( https://github.com/davequick ) |
277+ | ** Commits** | ** Contributor** |
278+ | --- | --- |
279+ | 60 | [ jonschlinkert] ( https://github.com/jonschlinkert ) |
280+ | 6 | [ doowb] ( https://github.com/doowb ) |
281+ | 2 | [ davequick] ( https://github.com/davequick ) |
281282
282283### Author
283284
284285** Jon Schlinkert**
285286
286- * [ LinkedIn Profile] ( https://linkedin.com/in/jonschlinkert )
287287* [ GitHub Profile] ( https://github.com/jonschlinkert )
288288* [ Twitter Profile] ( https://twitter.com/jonschlinkert )
289+ * [ LinkedIn Profile] ( https://linkedin.com/in/jonschlinkert )
289290
290291### License
291292
@@ -294,4 +295,4 @@ Released under the [MIT License](LICENSE).
294295
295296***
296297
297- _ This file was generated by [ verb-generate-readme] ( https://github.com/verbose/verb-generate-readme ) , v0.6 .0, on March 03 , 2018._
298+ _ This file was generated by [ verb-generate-readme] ( https://github.com/verbose/verb-generate-readme ) , v0.8 .0, on November 22 , 2018._
0 commit comments