1 Star 0 Fork 1

mendix-cn/mendix-custom-widget-flow-chart

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
variables.js 632 Bytes
一键复制 编辑 原始数据 按行查看 历史
engalar 提交于 2022-01-07 09:30 +08:00 . Initial commit
const fs = require('fs');
const path = require("path");
const args = process.argv.slice(2);
const indexOf = args.indexOf("--subprojectPath");
let pathToJoin = "";
if(indexOf > -1 && args.length > indexOf+1){
pathToJoin = args[indexOf+1];
}
const newPath = path.join(__dirname, "../", pathToJoin);
const pkg = require(path.join(newPath, "package.json"));
let extension = "tsx";
try {
if(!fs.existsSync(path.join(newPath, `/src/${pkg.widgetName}.${extension}`))){
extension = "jsx";
}
} catch(err) {
extension = "jsx";
}
module.exports = {
path: newPath,
package: pkg,
extension: extension
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/mendix-cn/mendix-custom-widget-flow-chart.git
git@gitee.com:mendix-cn/mendix-custom-widget-flow-chart.git
mendix-cn
mendix-custom-widget-flow-chart
mendix-custom-widget-flow-chart
master

搜索帮助

371d5123 14472233 46e8bd33 14472233