Giter Club home page Giter Club logo

grunt-contrib-kraken's Introduction

grunt-kraken

Grunt plugin to optimize all your images with the powerful Kraken.io API

var grunt = require('grunt');

grunt.initConfig({
    kraken: {
        options: {
            key: 'kraken-api-key-here',
            secret: 'kraken-api-secret-here',
            lossy: true
        },

        dynamic: {
            files: [{
                expand: true,
                cwd: 'src/images/',
                src: ['**/*.{png,jpg,jpeg,gif}'],
                dest: 'dst/images-optimized/'
            }]
        }
    }
});

grunt.loadNpmTasks('grunt-contrib-kraken');
grunt.registerTask('default', ['kraken']);

grunt-contrib-kraken's People

Contributors

matylla avatar ustuehler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

arzafran

grunt-contrib-kraken's Issues

Detect if a file has changed

Hello,

First of all, thank you very much for kraken.io, this is an awesome service & for this grunt task, awesome too.

But I have a request: is there any way to detect if a file from src folder has changed before kraken-it?

Because actually, when I launch the grunt task, all of the files are kraken'd, it would be nicer to kraken only modified files from previous kraken command or something.

Thanks!

`contrib` prefix

grunt-contrib-* is a special naming convention the grunt team uses to mark plugins which they create themselves. From the guidelines:

The grunt-contrib namespace is reserved for tasks maintained by the Grunt team, please name your task something appropriate that avoids that naming scheme.

So I'd suggest you to rename your task. This has been a reason to blacklist plugins from the gruntjs.com site as well.

change readme

your README lists grunt.loadNpmTasks('grunt-kraken');
it should read grunt.loadNpmTasks('grunt-contrib-kraken');

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.