Nestable Processes Mutate

    gulp-iconutil

    1.2.2 • Public • Published

    gulp-iconutil

    Build Status Coverage Status npm version

    gulp-iconutil is a Gulp plugin that provides iconutil wrapper.

    This plugin requires macOS's iconutil command.

    Usage

    npm install gulp-iconutil
    
    const gulp = require("gulp");
    const iconutil = require("gulp-iconutil");
     
    gulp.task("icon", () => {
      gulp
        .src("./app.iconset/icon_*.png")
        .pipe(iconutil("app.icns"))
        .pipe(gulp.dest("./"));
    });

    When you pass .png files through iconutil(), these files must be named like icon_512x512.png or icon_128x128@2x.png.

    Create .icns from .sketch w/ gulp-sketch

    .sketch files, which use for creating icons, must have artboard or slice named like icon_512x512 or icon_128x128.

    const gulp = require('gulp')
    const sketch = require('gulp-sketch')
    const iconutil = require('gulp-iconutil')
     
    gulp.task('icon', () => {
      gulp.src('./icons/sketch/*.sketch')
        .pipe(sketch({
          exports: 'artboards',
          format: 'png',
          scales: '1.0,2.0'
        }))
        .pipe(iconutil('app.icns'))
        .pipe(gulp.dest('./'))

    Test

    $ git clone https://github.com/uetchy/gulp-iconutil.git
    $ cd gulp-iconutil
    $ npm install
    $ npm test

    Contribution

    1. Fork it ( https://github.com/uetchy/gulp-iconutil/fork )
    2. Create your feature branch (git checkout -b my-new-feature)
    3. Commit your changes (git commit -am 'Add some feature')
    4. Push to the branch (git push origin my-new-feature)
    5. Create a new Pull Request

    Install

    npm i gulp-iconutil

    DownloadsWeekly Downloads

    2

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    6.18 kB

    Total Files

    6

    Last publish

    Collaborators

    • uetchy