This is an example of a gulpfile.js file.
- Changes to source asset image folder.
- Changes to source SASS files.
- Changes to HTML files
- Changes to source Javascript files and libraries.
- Changes to all source files and uses Browsersync (optionally) to auto refresh the browser.
- Moves any new images to production location.
- Compiles SASS files into CSS and adds neccessary browser prefixes.
- Moves and renames HTML files to *.tpl
- Concatenates and Uglifies JavaScript files.
- Builds source maps for both CSS and JS files.
- Builds production ready files with the
--production
argument. - Uploads production ready files with the
--production --ftp
argument.
gulp
gulp --browsersync
gulp build
gulp build --production
gulp build --production --ftp