2.0.3 • Published 3 years ago

gulp-chrome-manifest-iconify v2.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
3 years ago

gulp-chrome-manifest-iconify

NPM version node Build Status Coverage Status dependencies Status devDependencies Status

A Gulp plugin for chrome-manifest-iconify

When creating a Chrome extension, you need to provide a set of icons for context menus, browser actions, page actions, and the Chrome Web Store. Usually, these are just resized versions of the same image. The goal of gulp-chrome-manifest-iconify is to intellegently automate the tedious process of generated all these resized clones. In a Gulp task, simply pipe this plugin a master icon and indicate the path to a v2 manifest. It will parse the manifest to determine the sizes, names, types, and paths of the icons it needs to generate. You can choose from several resizing algorithms as provide by Sharp so your entire icon set looks awesome.

Installation

npm install --save-dev gulp-chrome-manifest-iconify

API

gulp-chrome-manifest-iconify

The gulp-chrome-manifest-iconify module

Example

const gulp = require('gulp');
const chromeManifestIconify = require('gulp-chrome-manifest-iconify');

gulp.task('default', () =>
    gulp.src('icon.png')
        .pipe(chromeManifestIconify({
            manifest: 'src/manifest.json',
            resizeMode: 'nearest'
        }))
        .pipe(gulp.dest('build')));

module.exports(options) ⇒ Stream

A Gulp plugin that generates icon set for a Chrome extension or app by parsing the v2 manifest.

Kind: Exported function
Returns: Stream - A Node stream that produces the icons

ParamTypeDefaultDescription
optionsobjectThe options for generating the icons
options.manifeststring"manifest.json"The path to the v2 manifest.json
options.resizeModestringThe name of a Sharp kernel
2.0.3

3 years ago

2.0.2

5 years ago

2.0.0

5 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago