https://github.com/tomchentw/imagemin-lint-staged
imagemin CLI designed for lint-staged usage with sensible defaults
https://github.com/tomchentw/imagemin-lint-staged
cli imagemin lint-staged minify
Last synced: 6 months ago
JSON representation
imagemin CLI designed for lint-staged usage with sensible defaults
- Host: GitHub
- URL: https://github.com/tomchentw/imagemin-lint-staged
- Owner: tomchentw
- License: mit
- Created: 2017-11-14T06:54:17.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-01-22T11:52:19.000Z (over 1 year ago)
- Last Synced: 2025-04-02T13:04:52.542Z (6 months ago)
- Topics: cli, imagemin, lint-staged, minify
- Language: JavaScript
- Homepage: https://medium.com/@tomchentw/imagemin-lint-staged-in-place-minify-the-images-before-adding-to-the-git-repo-5acda0b4c57e
- Size: 438 KB
- Stars: 84
- Watchers: 2
- Forks: 12
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# imagemin-lint-staged
> imagemin CLI designed for lint-staged usage with sensible defaults[![Version][npm-image]][npm-url] [![PR Workflow][github-workflows-pr-image]][github-workflows-pr-url]
## Installation
```sh
npm i --save-dev imagemin-lint-staged
```## Usage
Use in conjuntion with [lint-staged][lint-staged]. In your `package.json`
```json
"lint-staged": {
"*.{png,jpeg,jpg,gif,svg}": ["imagemin-lint-staged"]
},
```## Options
N/A
## Contributing
1. Fork it
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 new Pull Request[lint-staged]: https://github.com/okonet/lint-staged
[npm-image]: https://img.shields.io/npm/v/imagemin-lint-staged.svg?style=flat-square
[npm-url]: https://www.npmjs.org/package/imagemin-lint-staged[github-workflows-pr-image]: https://github.com/tomchentw/imagemin-lint-staged/actions/workflows/pr.yml/badge.svg
[github-workflows-pr-url]: https://github.com/tomchentw/imagemin-lint-staged/actions/workflows/pr.yml