【cocos2d-x从c++到js】使用cocos2d-console工具转换脚本为字节码
来源:互联网 发布:ubuntu登录界面卡死 编辑:程序博客网 时间:2024/05/20 05:23
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
0 0
- 【cocos2d-x从c++到js】使用cocos2d-console工具转换脚本为字节码
- 使用cocos2d-console工具转换脚本为字节码
- [cocos2d-x从c++到js]
- 【cocos2d-x从c++到js】01:迎接脚本时代的到来
- cocos2d-x从c++到js】01:迎接脚本时代的到来
- 【cocos2d】从 cocos2d-x 到 quick
- 使用cocos2d-x tolua++工具导出自定义类到lua脚本环境
- 【cocos2d-x从c++到js】使用FireFox进行JS远程调试
- 【cocos2d-x从c++到js】17:使用FireFox进行JS远程调试
- 从 Flash 到 Cocos2d-x
- 从 Flash 到 Cocos2d-x
- 从 Flash 到 Cocos2d-x
- 从 Flash 到 Cocos2d-x
- 从 Flash 到 Cocos2d-x
- 从 Flash 到 Cocos2d-x
- 【cocos2d-x从c++到js】JS与C++的交互3——C++和JS类型转换
- 【cocos2d-x从c++到js】JS与C++的交互3——C++和JS类型转换
- 【cocos2d-x从c++到js】11:JS与C++的交互3——C++和JS类型转换
- 元素自适应宽度、换行
- 为什么不去创业——Why to Not Not Start a Startup
- 调用WCF接口时出现“格式化程序尝试对消息反序列化时引发异常....”
- Android开发错误汇总
- ecshop中使用Jquery特效报错“b.replace is not a function”
- 【cocos2d-x从c++到js】使用cocos2d-console工具转换脚本为字节码
- What is the location of the directory of C header files that match your running kernel?
- JS阻止多次提交
- 【cocos2d-x从c++到js】使用FireFox进行JS远程调试
- 冒泡排序(方法名:bubbleSort) 与 归并排序(mergeSort)
- 外排序
- 给view button 设置圆角
- EL表达式
- C#中的泛型(类型参数的约束)