Skip to content

Commit 4556a0e

Browse files
Merge pull request #17 from nbkhope/patch-1
Revise grammar in README
2 parents b4fc9f7 + 53aae25 commit 4556a0e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

readme.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ Web minify helper!
44
[![Gitter chat](https://badges.gitter.im/PeterDaveHello/web-minify-helper.svg)](https://gitter.im/PeterDaveHello/web-minify-helper)
55
[![dependencies Status](https://david-dm.org/PeterDaveHello/web-minify-helper/status.svg)](https://david-dm.org/PeterDaveHello/web-minify-helper)
66

7-
Let me help to minify the css and js files automatically and easily!
7+
Let me help you minify css and js files automatically and easily!
88

9-
This is only a shell script, depends on bash shell, gnu grep, wc, curl and nodejs/npm
9+
This is only a shell script; it depends on bash shell, gnu grep, wc, curl and nodejs/npm.
1010

11-
it's based on [clean-css](github.com/jakubpawlowicz/clean-css), [uglify-js](github.com/mishoo/UglifyJS2) and [javascript-minifier.com](http://javascript-minifier.com)/[cssminifier.com](http://cssminifier.com)
11+
It is based on [clean-css](github.com/jakubpawlowicz/clean-css), [uglify-js](github.com/mishoo/UglifyJS2) and [javascript-minifier.com](http://javascript-minifier.com)/[cssminifier.com](http://cssminifier.com).
1212

13-
you can contribute to the project you want!
13+
Feel free to contribute to the project if you want!
1414

15-
Requirement
15+
Requirements
1616
========
17-
- Bash shell(version > 4.0)
17+
- Bash shell (version > 4.0)
1818
- gnu grep
1919
- wc (word count)
2020
- Curl (version > 7.0)
21-
- node.js >=(0.8.0)
21+
- Node.js >= (0.8.0)
2222

2323
How to use?
2424
========
@@ -30,16 +30,16 @@ $ git submodule update --init
3030
$ npm install
3131
```
3232

33-
You go to the target directory you want to minify, run the script(`path_of_script/minify.sh`), or pass the directory's path as a parameter to the script!
33+
First go to the target directory you want to minify, then run the script(`path_of_script/minify.sh`). Or you can pass the directory's path as a parameter to the script!
3434

35-
You can even put the file or make link under `$HOME/bin`, then you can run this script everywhere easily!
35+
You may even place the script file (or make a link to it) under the `$HOME/bin` directory, allowing you to conveniently run this script from any directory!
3636

37-
Explaination
37+
Explanation
3838
========
39-
The script will scan all the directory under the current working directory, except path with '.git',
39+
The script will scan all the directories under the current working directory, except path with '.git'.
4040

41-
and check all the js & css files if they already have a minified verion(currently, recognize by `.min` in filename, before file ext),
41+
Then, it will check all the js & css files to see if they already have a minified version (currently, it recognizes it by looking for a `.min` in the filename, before the file extension).
4242

43-
if not, just minify it, otherwise, compare the last modify time between the origin and the minified version,
43+
If the file does not have a minified version, it will minify it.
4444

45-
if the origin one is newer than the minified one, meens the minified file was older, then do the minify again!
45+
Furthermore, even if there is a minified version available, the script will compare the last modified time between the original file and its minified version. If the original one is newer than the minified one -- which means the minified file is older than the original -- then it will replace the old minified file with a new minified version!

0 commit comments

Comments
 (0)