Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
helly0d committed Mar 19, 2014
1 parent 4819216 commit 9be307d
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ Requires Java Runtime Environment version 7.
###Kjscompile.json
Instead of kjscompile.json you can specify your own path to configuration file with `--settings %path%` attribute.

`basedir` - directory with JavaScript files;
`basedir` - directory or array of directories with JavaScript files;

`output` - output JavaScript file name;

`pattern` - rule for filename (*.js);

`level` - level of optimization (WHITESPACE_ONLY, SIMPLE_OPTIMIZATIONS, ADVANCED_OPTIMIZATIONS).

`wrapper` - setting to wrap your output. The place holder is "%output%".

Example:
```javascript
{
Expand All @@ -37,6 +39,20 @@ Example:
"pattern": "*.js"
}
```
Example:
```javascript
{
"basedir": ["lib/javascript", "lib/ecmascript"],
"output": "js.min/all.js",
"level": "SIMPLE_OPTIMIZATIONS",
"pattern": "*.js",
"wrapper" : "(function(){ %output% }());"
}
```

Note:
Any path will be relative to the settings file. If none provided it will be relative to the current working directory ( the directory where you launched kjscompiler ).


###Annotating JavaScript files
Kjscompiler can use information about JavaScript file to build right compiling chain.
Expand Down Expand Up @@ -64,7 +80,7 @@ Kjscompiler can use information about JavaScript file to build right compiling c

```javascript
/**
* kjscompilerannotation
* kjscompiler annotation
* @external
*/
```
Expand Down

0 comments on commit 9be307d

Please sign in to comment.