Content deleted Content added
organisation changes |
citations added |
||
Line 39:
== Anatomy of gulpfile ==
gulpfile is the place where all the operations are defined in gulp. The basic anatomy of the gulpfile consists of required plugins included at the top, definition of the tasks and a default task at the end<ref>{{Cite web|url=https://www.sitepoint.com/introduction-gulp-js/|title=An Introduction to Gulp.js - SitePoint|date=2014-02-10|language=en-US|access-date=2016-09-23}}</ref>.
=== Plugins ===
Any installed plugin that is required to perform a task is to be added at the top of the gulpfile as a depedency in the following format<ref name=":1" /><ref name=":3" />. <syntaxhighlight lang="javascript">
//Adding dependencies
var gulp = require ( 'gulp');
|