1.0.0 • Published 9 years ago
cartridge-images v1.0.0
Cartridge Images 
Image optimisation expansion pack for cartridge
To use this module, you will need cartridge-cli installed and have a cartridge project setup.
npm install cartridge-images --save-devThis module adds the following to a project:
- Image Optimisation using gulp-imagemin
- SVG Optimisation using gulp-svgmin
Maintainers
| Name | Github Profile | 
|---|---|
| Tristan Ashley | tawashley | 
Config
Once installed, the config file task.images.js is created and stored in the _config directory in the root of your cartridge project. Config for images and svgs can be set individually.
Usage
This module provides the following gulp tasks
- gulp images- Task that runs all of the tasks mentioned below.
- gulp images:minify- Bitmap image minification. This minifies any .png / .jpg files in the images directory. Images are only optmised if the- --prodflag is provided otherwise this task is ignored.
- gulp images:svgmin- Vector image minification. This minifies all .svg files in the- svgsfolder in the images directory.
Development
Commit message standards 
Try and adhere as closely as possible to the Angular commit messages guidelines.
Commitizen is a command line tool which can help with this:
npm install -g commitizenNow, simply use git cz instead of git commit when committing.