-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK RUNNERS NPM. Created 'npm run static:img:compressed' command.
static:img:compressed This command minify the images with the extension jpg/jpeg, svg, png, gif. It has some dependecies, requires npm packages: - chalk: For add styles to the terminal messages - compress-images: For minify the images - pngquant-bin and gifsicle: Dependencies of compress-images package Edited documentation files
- Loading branch information
1 parent
4832627
commit a5c7f5a
Showing
7 changed files
with
8,089 additions
and
1,497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,41 @@ | ||
# TASK RUNNERS. NPM SCRIPTS | ||
# TASK RUNNERS. NPM packages and NODE scripts | ||
|
||
![Image of npm](https://github.com/beatrizsmerino/task-runners/blob/develop/doc/assets/npm/cover-npm.svg) | ||
![Image of npm](https://github.com/beatrizsmerino/task-runners/blob/feature/task-runners-npm/doc/assets/task-runners-npm/task-runners-npm.svg) | ||
|
||
## USE | ||
|
||
### Commands list | ||
**Commands list** | ||
|
||
#### TEST | ||
### Test | ||
|
||
``` | ||
npm run test | ||
``` | ||
|
||
### Compress images | ||
|
||
**Minify size images with extension: jpg/jpeg, svg, png, gif** | ||
|
||
Use: | ||
|
||
``` | ||
npm run static:img:compressed | ||
``` | ||
|
||
NPM Dependencies: | ||
|
||
| Name | Badge | | ||
| --------------- | -------------------------------------------------------------------------------------------------------- | | ||
| chalk | [![npm version](https://badge.fury.io/js/chalk.svg)](https://badge.fury.io/js/chalk) | | ||
| compress-images | [![npm version](https://badge.fury.io/js/compress-images.svg)](https://badge.fury.io/js/compress-images) | | ||
| pngquant-bin | [![npm version](https://badge.fury.io/js/pngquant-bin.svg)](https://badge.fury.io/js/pngquant-bin) | | ||
| gifsicle | [![npm version](https://badge.fury.io/js/gifsicle.svg)](https://badge.fury.io/js/gifsicle) | | ||
|
||
Node script: | ||
|
||
- [compress-images.js](https://github.com/beatrizsmerino/task-runners/blob/feature/task-runners-npm/task-runners-npm/static/bin/compress-images.js) | ||
|
||
## BIBLIOGRAFY | ||
|
||
- [https://docs.npmjs.com/misc/scripts](https://docs.npmjs.com/misc/scripts) | ||
- [https://github.com/semiromid/compress-images/](https://github.com/semiromid/compress-images/) |
Oops, something went wrong.