cocos2d/cocos2d-console — pull request #1 by dumganhar (2013-05-16 03:27:18+00:00)
Title: Adding support for generating js bytecode with closure-compiler.

### Usage:

Options:
-h, --help show this help message and exit
-s SRC_DIR_ARR, --src=SRC_DIR_ARR
source directory of js files needed to be compiled
-d DST_DIR, --dst=DST_DIR
destination directory of js bytecode files to be stored
-c, --use_closure_compiler
Whether to use closure compiler to compress all js files into just a big file
-o COMPRESSED_FILENAME, --output_compressed_filename=COMPRESSED_FILENAME
Only available when '-c' option was True
-j COMPILER_CONFIG, --compiler_config=COMPILER_CONFIG
The configuration for closure compiler

### Example:
#### Using closure-compiler

./jscompile.py -d output_dir -s cocos2dx_root/scripting/javascript/bindings/js -s cocos2dx_root/samples/Javascript/Shared/tests -o game.min.js -j compiler_config_sample.json -c

#### Not using closure-comipler

./jscompile.py -d output_dir -scocos2dx_root/scripting/javascript/bindings/js -s cocos2dx_root/samples/Javascript/Shared/tests