代码拉取完成,页面将自动刷新
/**
* ftb tools main js
* @author: hellovigoss@gmail.com
* @lol~
*/
var global = require("./global.js");
var properties = require('./properties.js');
var analyzer = require('./analyzer.js');
var dir = require("./dir.js");
var template = require("./template.js");
//参数获取
var arguments = process.argv.splice(2);
if(arguments.length < 1){
console.log('Usage: node ftb.js path[ config_file_path]');
}
//读取系统全局配置文件
var globalConfig = (function(argFilePath){
if((typeof argFilePath) == "undefined"){
argFilePath = "./config.properties";
}
return properties.parseproperties(argFilePath, "UTF-8");
})(arguments[1]);
global.init(globalConfig);
//进行文件分析获取ftb定义方法
var funcArr = (function(dirPath){
//遍历文件
var fileList = (function(){
var tmpList = [];
dir.walk(dirPath, tmpList);
return tmpList;
})();
//清空输出文件内容
template.flush();
//分析ftb元素
var tmpList = [];
fileList.forEach(function(filePath){
analyzer.analysis(filePath, tmpList);
});
return tmpList;
})(arguments[0]);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。