Install Gulp globally (if not already installed):
$ npm install gulp -g
Navigate to the project directory, run npm init to setup the project:
$ npm init
Install Gulp to the project:
$ npm install gulp --save-dev
Install BrowserSync:
$ npm install -g browser-sync
Install JS-Hint:
$ npm install jshint gulp-jshint --save-dev
Create the file gulpfile.js, enter the below snippet and save.
Run 'gulp' from the terminal.
Example below assumes this project hierarchy:
./
gulpfile.js
index.html
package.json
package-lock.json
/dist
/css
main.css
/js
main.min.js
/js
main.js
/node_modules
/sass
main.sass
Customise the files being watched as needed, e.g. gulp.watch('*.php', browserSync.reload);