In order to use Gulp you will need to download Node JS. If you do not have Node 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 following command in your terminal. This will install Gulp globally. Aferwards you can
cd to you project’s folder
where Purpose is installed.
npm install gulp-cli -g
Once the path of your workflow is changed to your project’s folder, where Purpose is installed, we have to install all the packages needed in order for Gulp to run correctly:
Now everything is installed and ready to work for you. If you open
gulp.js you can see what packages are used in order to create the
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.
For production we set a Gulp command that will compile and minify the CSS and JS files ready to be included in your project