armin-es / animated-gallery-jquery

MIT License
0 stars 0 forks source link

Setup build tasks #2

Open armin-es opened 7 years ago

armin-es commented 7 years ago

Expected behaviour

Setup Gulp to automate repetitive tasks performed as part of the development process.

Steps to reproduce the behaviour

  1. yarn add --dev:
    • gulp-eslint: validate JS files with ESLint (linter)
    • gulp-concat: concatenate files
    • gulp-jsmin: minify JavaScript files
    • gulp-rename: add .min suffix to minified file
    • gulp-clean-css: minify CSS
    • gulp-clean: removes unnecessary files and folders
    • gulp-processhtml: modify html files at build time
  2. Create and build gulpfile.js
armin-es commented 7 years ago

Commit message should be "chore: Initialize 'gulpfile.js'". 4bea093

armin-es commented 7 years ago

Install gulp globally:

type in Terminal:

armin-es commented 7 years ago

Again grunt.. is incorrect, it should be gulp... 055dfe3

armin-es commented 7 years ago

Gulp API docs:

https://github.com/gulpjs/gulp/blob/master/docs/API.md

armin-es commented 7 years ago

Commit message should be corrected to: chore: Setup 'gulp-concat' for CSS files in 'gulpfile.css', NOT ..for JS files... e832ae7