From 5ddd6734537095c4f8cde846d89160f87d0a54a1 Mon Sep 17 00:00:00 2001 From: Jonathan Lee Date: Fri, 22 Jan 2016 12:20:42 -0500 Subject: [PATCH] Docs: Update "getting started" example for new syntax --- docs/getting-started.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/getting-started.md b/docs/getting-started.md index 06e0c9b8a..724b942b2 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -37,10 +37,12 @@ In your project directory, create a file named `gulpfile.js` in your project roo ```js var gulp = require('gulp'); -gulp.task('default', function(done) { +gulp.task('default', defaultTask); + +function defaultTask(done) { // place code for your default task here done(); -}); +} ``` #### Test it out @@ -63,6 +65,10 @@ Using gulpfile ~/my-project/gulpfile.js [11:15:51] Finished 'default' after 103 μs ``` +## .src, .watch, .dest, .parallel, .series, CLI args - How do I use these things? + +For API specific documentation, you can check out the [documentation for that](API.md). + ## Where do I go now? - [API Documentation](API.md) - The programming interface, defined