UNPKG

@mora/tinypng

Version:

基于 tinypng 封装的一个支持 `nodejs`、`命令行`和`webpack`的图片压缩工具

82 lines (81 loc) 1.97 kB
{ "name": "@mora/tinypng", "version": "0.0.8", "description": "基于 tinypng 封装的一个支持 `nodejs`、`命令行`和`webpack`的图片压缩工具", "main": "lib/index.js", "bin": { "tinypng": "lib/tinypng-cli.js" }, "typings": "lib/index.d.ts", "scripts": { "test": "jest", "lint": "tslint src/**.ts", "build": "tsc", "preversion": "npm run lint && npm test", "release": "npm run build && npm version patch -m 'chore: bump patch version'", "postversion": "git push --follow-tags && snpm publish && cnpm sync @mora/tinypng" }, "author": "Mora <qiuzhongleiabc@126.com> (https://qiu8310.github.io/)", "repository": { "type": "git", "url": "https://github.com/qiu8310/tinypng" }, "jest": { "roots": [ "src" ], "mapCoverage": true, "collectCoverage": true, "coverageReporters": [ "text", "html" ], "coveragePathIgnorePatterns": [ "/node_modules/", "/__tests__/helper/" ], "coverageDirectory": "./coverage", "transform": { "^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js" }, "testRegex": "(/__tests__/.*\\.(test|spec))\\.(ts|tsx)$", "moduleFileExtensions": [ "ts", "tsx", "js", "json" ] }, "keywords": [ "webpack", "tinypng", "plugin", "node", "tinypng-cli", "image", "minify" ], "license": "MIT", "dependencies": { "fs-extra": "~3.0.1", "log-update": "2.0.0", "mora-common": "~0.0.10", "mora-scripts": "~1.6.4", "svgo": "~0.7.2", "tinify": "~1.5.0", "webpack-sources": "~1.0.1" }, "devDependencies": { "@types/fs-extra": "~3.0.2", "@types/jest": "20.0.2", "@types/webpack": "3.0.1", "file-loader": "0.11.2", "jest": "20.0.4", "jest-cli": "20.0.4", "ts-jest": "20.0.6", "tslint": "5.4.3", "typescript": "2.4.1", "url-loader": "0.5.9", "webpack": "3.0.0" } }