markberning
12/14/2017 - 8:35 AM

Gulp

/*
GULP
Gulp is a Node module
In order to add gulp to our project,we have to create a package.json file that lists the project's Node dependencies.
The package.json file contains:
  -version of our project
  -github location for our project repo
  
>npm init //initialize this folder as a node project and will step thru questions about project and write the inital project.json file
>npm install gulp --save-dev 
//And, this tells npm to add gulp to our project's development dependencies. Dependencies are how you and other developers know which Node modules should be installed with your project.
  
  Additionally, you know which versions of those Node modules should be installed.
  
  Gulp is not used by our app directly and in fact, the app does not need gulp to run. Our application is a static website of JavaScript and styles, and can be run by any static server. gulp will almost never need to be installed on our production servers. Therefore, we list it as a development-only dependency. 
  
  Npm has installed our packaged. When I go to our package.json file, I can see that gulp was added as a dev dependency.
  
  "devDependencies": {
    "gulp": "^3.9.1"
  }