Added bash version, updated readme, and deleted doc folder because it has nothing useful yet

This commit is contained in:
Kevin Puertas
2017-08-26 12:35:07 +02:00
parent f39594aa63
commit ecde9872fc
3 changed files with 164 additions and 9 deletions

45
README.md Normal file → Executable file
View File

@@ -1,7 +1,40 @@
MiniThunder
=
Minimize project to production
-
### Require
# MiniThunder
## Minimize project to production, saving space (Not reversible)
### Python version
It supports html/css/js files
#### Requires
* [jsmin](https://github.com/tikitu/jsmin/) - MIT
* [rcssmin](http://opensource.perlig.de/rcssmin) - APACHE 2.0
* [rcssmin](http://opensource.perlig.de/rcssmin) - APACHE 2.0
#### Use
```
python minithunder.py Folder/proyect Folder/minified
```
---
### Bash version
It supports html/xml,js,css,png and jpg files
#### Requires
* [html-minifier](https://www.npmjs.com/package/html-minifier)
* [clean-css-cli](https://www.npmjs.com/package/clean-css)
* [uglify-js](https://www.npmjs.com/package/uglify-js)
* [optipng](http://optipng.sourceforge.net/) - ZLIB LICENSE (OPEN SOURCE)
* [jpegoptim](http://freecode.com/projects/jpegoptim) - GPL
#### Use
```
bash minithunder.sh Folder/proyect
```
#### Install dependencies in Debian and derivates (All as root)
```
# apt install optipng jpegoptim uglifyjs cleancss npm
# npm install html-minifier -g
```
#### Install dependencies in Archlinux (All as root)
```
# pacman -S optipng jpegoptim npm
# npm install html-minifier clean-css-cli uglify-js -g