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**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/fdm@0.6.8/fdm.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var commander = require('commander');\nvar path = require('path');\nvar fs = require('fs');\nrequire('colors');\nvar spawn = require('win-spawn');\nvar helper = require('./utils/helper');\nvar grunt = require('grunt');\nvar config = helper.getConfig();\n\n\nvar helpeInfo = function(){\n\tconsole.log();\n\tconsole.log('从模板构建项目');\n\tconsole.log('   $', 'fdm init'.green, '[tplname]','[destdir]');\n\tconsole.log();\n\tconsole.log('执行项目常规任务');\n\tconsole.log('   $', 'fdm start'.green, 'taskName');\n\tconsole.log();\n\tconsole.log('启动FdServer');\n\tconsole.log('   $', 'fdm server'.green, 'start');\n\tconsole.log();\n\t// console.log('安装项目扩展');\n\t// console.log('   $', 'fdm install'.green, 'html2js');\n\t// console.log();\n\t// console.log('项目发布(支持gitlab发布)');\n\t// console.log('   $', 'fdm publish'.green);\n\t// console.log();\n\t// console.log('更新模板(开发中)');\n\t// console.log('   $', 'fdm update'.green, 'templateName');\n\t// console.log();\n\tconsole.log('编译项目(与Aone编译脚本一致)');\n\tconsole.log('   $', 'fdm build'.green, '[srcdir]', '[destdir]');\n\tconsole.log();\n\tconsole.log('部署盖娅环境');\n\tconsole.log('   $', 'fdm gaea'.green);\n\tconsole.log();\n}\n// 执行子命令\nfunction executable(subcmd) {\n\n\tvar local = path.join(__dirname, '/command/'+subcmd+'.js');\n\tif (fs.existsSync(local)) {\n\t\treturn local;\n\t}else{\n\t\treturn false;\n\t}\n\t\n}\nmodule.exports = {\n\trun : function(argv){\n\t\tcommander\n\t\t  .version(require('./package.json').version)\n\t\t  // .option('-v, --version',\"查看版本信息\")\n\t\t  .option('-p, --plugin',\"查看插件列表\")\n\t\t  .option('-t, --template',\"查看模板列表\")\n\t\t  \n\n\n\t\t// create config file\n\t\thelper.setConfig();\n\n\t\t// Execute sub command\n\t\tcommander.parse(argv);\n\n\t\t// var args = argv.slice(3);\n\t\tvar subcmd = commander.args[0];\n\t\tif(commander.plugin){\n\n\t\t\tconsole.log('获取插件列表中...'.green);\n\t\t\thelper.getFdmRepo('fdmplugin');\n\n\t\t}else if(commander.template){\n\t\t\tconsole.log('获取模板列表中...'.green);\n\t\t\thelper.getFdmRepo('fdmtemplate');\n\n\t\t}else if (!subcmd) {\n\t\t\thelpeInfo();\n\t\t} else {\n\t\t\tvar bin = executable(subcmd);\n\t\t\tif (bin) {\n\t\t\t\trequire(bin).run(argv);\n\t\t\t}else{\n\t\t\t\trequire('./command/start').run(argv,true);\n\t\t\t}\n\t\t}\n\t},\n\tconfig:config\n}\n\n\n"]}