{"version":3,"sources":["jsdelivr-header.js","/npm/xuxian_built18@1.0.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACJA,MAAM,QAAU,QAAQ,aAClB,SAAW,QAAQ,qBACnB,SAAW,QAAQ,YAGzB,QAAQ,QAAQ,QAAS,iBACpB,WAAW,aACX,OAAO,YAAa,mBACpB,OAAO,YAAa,mBACpB,OAAO,YAAa,mBACpB,QAAQ,qCACR,QAAO,CAAC,EAAc,KACE,QAAjB,GACA,QAAQ,IAAI,sBACZ,QAAQ,IAAI,GACZ,SAAS,gEAAiE,EAAa,CAAE,OAAO,IAAQ,SAAU,GAChH,QAAQ,IAAI,GAAY,UAC1B,KACuB,UAAjB,GACN,QAAQ,IAAI,sBACZ,SAAS,sCAAuC,GAAa,SAAU,GACnE,QAAQ,IAAI,EAAM,QAAU,UAChC,KAEF,QAAQ,MAAM,sCAChB,IAER,QAAQ,MAAM,QAAQ","file":"/npm/xuxian_built18@1.0.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/xuxian_built18@1.0.0/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","#! /usr/bin/env node\r\n\r\nconst program = require('commander');\r\nconst download = require('download-git-repo');\r\nconst Inquirer = require('inquirer')\r\n//version 版本号\r\n//name 新项目名称\r\nprogram.version('1.0.0', '-v, --version')\r\n    .helpOption('-h,--HELP')\r\n    .option('-f, --foo', 'enable some foo')\r\n    .option('-b, --bar', 'enable some bar')\r\n    .option('-B, --baz', 'enable some baz')\r\n    .command('init <templateName> <projectName>')\r\n    .action((templateName, projectName) => {\r\n        if (templateName === \"vue\") {\r\n            console.log('clone template ...');\r\n            console.log(projectName)\r\n            download('direct:http://gitlab.ad6755.com:8888/jizhishaonian_N/H5_pages', projectName, { clone: true }, function (err) {\r\n              console.log(err ? err : 'Success')\r\n            })\r\n        } else if(templateName === \"react\") {\r\n            console.log('clone template ...');\r\n            download('github:junkaicool/jkc-cli-react-src', projectName, function (err) {\r\n                console.log(err ? 'Error' : 'Success')\r\n            })\r\n        } else {\r\n          console.error('A template name that does not exist')\r\n        }\r\n    });\r\nprogram.parse(process.argv);"]}