org-arl/unet-blog

Create an asset pipeline with linting/minification

Opened this issue · 1 comments

We should have an asset pipeline.

It's basically a series of utilities we can run on the various assets (image files, css files, html files, markdown files etc), which check for errors (linting) and optimizes the files (minification of js/css and images etc)

I have started a basic asset pipeline based off the gulpfile from the original blog theme (Type on Strap) on this branch https://github.com/org-arl/unet-blog/tree/assetpipeline. It already does image minification. It can be currently invoked with make build, but it needs gulp and all its dependencies installed.

We should add

  • scss linting
  • markdown linting
  • html linting
  • js minification

References :

https://gulpjs.com/
https://www.npmjs.com/
https://github.com/DavidAnson/markdownlint
https://www.npmjs.com/package/gulp-scss-lint