Skip to content

Commit

Permalink
TASK RUNNERS NPM. Created 'npm run static:img:compressed' command.
Browse files Browse the repository at this point in the history
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
beatrizsmerino committed Aug 16, 2020
1 parent 4832627 commit a5c7f5a
Show file tree
Hide file tree
Showing 7 changed files with 8,089 additions and 1,497 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

### List of task runners:

- [ ] Node
- [ ] NPM
- [ ] [NPM packages and NODE scripts](https://github.com/beatrizsmerino/task-runners/tree/feature/task-runners-npm/task-runners-npm)
- [ ] Gulp
- [ ] Grunt
- [ ] Webpack
Expand Down
31 changes: 31 additions & 0 deletions doc/assets/task-runners-npm/task-runners-npm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,038 changes: 1,550 additions & 1,488 deletions doc/assets/task-runners.ai

Large diffs are not rendered by default.

36 changes: 32 additions & 4 deletions task-runners-npm/README.md
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/)
Loading

0 comments on commit a5c7f5a

Please sign in to comment.