cartridge-images

1.0.0 • Public • Published

Cartridge Images Build Status

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-dev

This module adds the following to a project:

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 --prod flag is provided otherwise this task is ignored.
  • gulp images:svgmin - Vector image minification. This minifies all .svg files in the svgs folder in the images directory.

Development

Commit message standards Commitizen friendly

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 commitizen

Now, simply use git cz instead of git commit when committing.

Package Sidebar

Install

npm i cartridge-images

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • codecomputerlove