forked from FerencKun/angular-datatable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
65 lines (65 loc) · 6.07 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"name": "grunt-contrib-imagemin",
"description": "Minify PNG and JPEG images",
"version": "0.2.1",
"homepage": "https://github.com/gruntjs/grunt-contrib-imagemin",
"author": {
"name": "Grunt Team",
"url": "http://gruntjs.com/"
},
"repository": {
"type": "git",
"url": "git://github.com/gruntjs/grunt-contrib-imagemin.git"
},
"bugs": {
"url": "https://github.com/gruntjs/grunt-contrib-imagemin/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/gruntjs/grunt-contrib-imagemin/blob/master/LICENSE-MIT"
}
],
"main": "Gruntfile.js",
"engines": {
"node": ">=0.8.0"
},
"scripts": {
"test": "grunt test"
},
"dependencies": {
"filesize": "~1.10.0",
"jpegtran-bin": "~0.2.0",
"optipng-bin": "~0.3.0",
"gifsicle": "~0.1.0",
"pngquant-bin": "~0.1.0",
"chalk": "~0.2.0"
},
"devDependencies": {
"grunt-contrib-internal": "~0.4.3",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-jshint": "~0.6.2",
"grunt-contrib-nodeunit": "~0.2.0",
"grunt": "~0.4.0"
},
"peerDependencies": {
"grunt": "~0.4.0"
},
"keywords": [
"gruntplugin",
"image",
"img",
"minify",
"compress",
"png",
"jpg",
"jpeg"
],
"files": [
"tasks/imagemin.js"
],
"readme": "# grunt-contrib-imagemin [![Build Status](https://secure.travis-ci.org/gruntjs/grunt-contrib-imagemin.png?branch=master)](http://travis-ci.org/gruntjs/grunt-contrib-imagemin)\n\n> Minify PNG and JPEG images\n\n\n\n## Getting Started\nThis plugin requires Grunt `~0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-contrib-imagemin --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-contrib-imagemin');\n```\n\n\n\n\n## Imagemin task\n_Run this task with the `grunt imagemin` command._\n\nTask targets, files and options may be specified according to the grunt [Configuring tasks](http://gruntjs.com/configuring-tasks) guide.\n\nMinify images using [OptiPNG](http://optipng.sourceforge.net), [pngquant](http://pngquant.org), [jpegtran](http://jpegclub.org/jpegtran/) and [gifsicle](http://www.lcdf.org/gifsicle).\n\nImages will be cached and only minified again if they change.\n\n### Options\n\nOptions will only apply to the relevant files, so you don't need separate targets for png/jpg.\n\n\n#### optimizationLevel *(png only)*\n\nType: `Number`\nDefault: `7`\n\nSelect optimization level between `0` and `7`.\n\n> The optimization level 0 enables a set of optimization operations that require minimal effort. There will be no changes to image attributes like bit depth or color type, and no recompression of existing IDAT datastreams. The optimization level 1 enables a single IDAT compression trial. The trial chosen is what. OptiPNG thinks it’s probably the most effective. The optimization levels 2 and higher enable multiple IDAT compression trials; the higher the level, the more trials.\n\nLevel and trials:\n\n1. 1 trial\n2. 8 trials\n3. 16 trials\n4. 24 trials\n5. 48 trials\n6. 120 trials\n7. 240 trials\n\n\n#### progressive *(jpg only)*\n\nType: `Boolean`\nDefault: `true`\n\nLossless conversion to progressive.\n\n\n#### pngquant\n\nType: `Boolean`\nDefault: `true`\n\nWhether to enable pngquant compression.\n\n> pngquant is a command-line utility for converting 24/32-bit PNG images to paletted (8-bit) PNGs. The conversion reduces file sizes significantly (often as much as 70%) and preserves full alpha transparency.\n\n#### Example config\n\nYou can either map your files statically or [dynamically](https://github.com/gruntjs/grunt/wiki/Configuring-tasks#building-the-files-object-dynamically).\n\n```javascript\ngrunt.initConfig({\n imagemin: { // Task\n static: { // Target\n options: { // Target options\n optimizationLevel: 3\n },\n files: { // Dictionary of files\n 'dist/img.png': 'src/img.png', // 'destination': 'source'\n 'dist/img.jpg': 'src/img.jpg',\n 'dist/img.gif': 'src/img.gif'\n }\n },\n dynamic: { // Another target\n files: [{\n expand: true, // Enable dynamic expansion\n cwd: 'src/', // Src matches are relative to this path\n src: ['**/*.{png,jpg,gif}'], // Actual patterns to match\n dest: 'dist/' // Destination path prefix\n }]\n }\n }\n});\n\ngrunt.loadNpmTasks('grunt-contrib-imagemin');\ngrunt.registerTask('default', ['imagemin']);\n```\n\n\n## Release History\n\n * 2013-08-16 v0.2.0 Add `gifsicle` and `pngquant`. Cache images so only changed images are optimized. Default `optimizationLevel` to `7` and `progressive` to `true`.\n * 2013-04-10 v0.1.4 Fix exception when running in verbose mode.\n * 2013-04-05 v0.1.3 Fix OptiPNG not being able to overwrite file. Allow overwriting src when dest/src is the same. Limit to 10 concurrent optimizations.\n * 2013-02-22 v0.1.2 Fix OptiPNG not working on some systems. Prevent OptiPNG from producing .bak files.\n * 2013-02-15 v0.1.1 First official release for Grunt 0.4.0.\n * 2013-01-30 v0.1.1rc8 Fix task not creating destination folders\n * 2013-01-30 v0.1.1rc7 Updating to work with grunt v0.4.0rc7. Switching to this.files api.\n * 2012-11-01 v0.1.0 Initial release.\n\n---\n\nTask submitted by [Sindre Sorhus](http://github.com/sindresorhus)\n\n*This file was generated on Fri Aug 16 2013 20:16:49.*\n",
"readmeFilename": "README.md",
"_id": "grunt-contrib-imagemin@0.2.1",
"_from": "grunt-contrib-imagemin@~0.2.0"
}