1
|
goldliontekiMacBook-Pro:~
goldlion$ cd /Users/goldlion/Documents/developer/cocos2d-x-3 .0beta /tools/cocos2d-console/console |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
goldliontekiMacBook-Pro:console
goldlion$ . /cocos2d .py
jscompile --help Usage:
cocos2d.py jscompile -s src_dir -d dst_dir [-c -o COMPRESSED_FILENAME -j COMPILER_CONFIG] 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, supports
mutiple source directory -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 by using JSON, please
refer to compiler_config_sample.json |
1
|
. /cocos2d .py
jscompile -s /Users/goldlion/Documents/developer/cocos2d-x-3 .0beta /samples/Javascript/Shared/tests/ExtensionsTest -d /Users/goldlion/Desktop/ExtensionsTest |