Automate painful or time-consuming tasks in your development workflow, so you can stop messing around and build something using Gulp
There are a couple of things you need to make sure are set up on your machine before running the commands in your terminal.
In order to use our build tools you will need to download and install Node.js. If you do not have Node.js installed already, you can get it by downloading the package installer from the official website. Please download the stable version of Node.js (LTS).
After Node is installed on your system you can now proceed to Gulp installation. To do that simply run the command below in your terminal. This will install Gulp globally.
Now open the terminal and
cd ro your project’s root. Once the path of your workflow is changed you have to install all the packages needed. You can do this with NPM or Yarn.
Gulp is a toolkit for automating painful or time-consuming tasks in your development workflow, so you can stop messing around and build something.
For development we set a Gulp command that will compile the sources to dist then start a local Browsersync instance on port 3000 to serve and auto-refresh your pages as you edit.
If you install new libraries, make sure you run the following command to sync your libs with the existing ones:
For production we set a Gulp command that will compile and minify the CSS and JS files ready to be included in your project