Content deleted Content added
Visaldatta (talk | contribs) No edit summary |
Operation and Installation are modified |
||
Line 24:
Gulp needs [[Node.js]] and can be installed by the [[Node Package Manager]]. To remove a previously installed gulp the command is <code>npm rm --global gulp</code>.
Install gulp globally, then initialize the project directory and install in the project locally. While installing the project locally, package.json file must already exist in the selected directory.
'''
$ npm install --global gulp-cli
$ npm init
$ npm install --save-dev gulp'''
This installs gulp locally and is saved at devDependencies in the package.json file.
== Operation ==
▲== Gulpfile.js ==
In the first step all the modules must be defined in the gulpfile.js. <syntaxhighlight lang="javascript">
//Define Modules
Line 50 ⟶ 49:
</syntaxhighlight>
Alternatively, create a task that performs several
function fn1 () {
// do something
|