UNPKG

kmc

Version:
25 lines (21 loc) 494 B
/** * * @author: daxingplay<daxingplay@gmail.com> * @time: 13-4-7 16:28 * @description: */ var kmc = require('../index'), fs = require('fs'), path = require('path'), srcPath = path.resolve(__dirname, '../test/src/'), distPath = path.resolve(__dirname, './dist'), result; kmc.config({ packages: [{ name: 'package1', path: srcPath, charset: 'gbk' }] }); result = kmc.build('package1/one-package-simple', distPath); console.log(result);