tbuild

build tools set

tbuild

包括了一些常用的打包工具,java to nodejs

npm install tbuild

or

git clone git://github.com/czy88840616/tbuild.git
  • KISSY ModuleComplier
  • SmartCombo

Example:

var ModuleComplier = require('tbuild').ModuleComplier;

ModuleComplier.build({
    target:'/tc/cart',
    base:'D:\\project\\tradeface\\assets\\4.0',
    inputEncoding:'gbk',
    outputEncoding:'gbk',
    output:'D:\\project\\tradeface\\assets\\120324'
});

API:

ModuleComplier.build(cfg);
  • cfg:{Object} 参数

    • base:需要打包的根目录
    • target:基于根目录的入口目录
    • inputEncoding:输入文件编码,可选
    • outputEncoding:输出文件编码,可选
    • output:输出目录

tbulid 遵守 "MIT":https://github.com/czy88840616/tbuild/blob/master/LICENSE 协议