{"version":3,"sources":["jsdelivr-header.js","/npm/@js-lib/cli@3.0.0-alpha.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,IAAM,QAAQ,OACd,QAAU,MACV,OAAS,QAAQ,mBACjB,KAAO,QAAQ,iBACf,KAAO,QAAQ,iBACf,YAAc,QAAQ,oBACtB,IAAM,QAAQ,gBACd,KAAO,QAAQ,iBACf,MAAQ,QAAQ,kBAChB,KAAO,QAAQ,iBACf,QAAU,QAAQ,oBAExB,SAAS,KAAK,EAAS,GACrB,OAAO,KAAK,EAAS,EAAO,SAAU,GACtC,KAAK,KAAK,EAAS,EAAO,SAAU,GACpC,YAAY,KAAK,EAAS,EAAO,SAAU,GAC3C,KAAK,KAAK,EAAS,EAAO,SAAU,GACpC,IAAI,KAAK,EAAS,EAAO,SAAU,GACnC,KAAK,KAAK,EAAS,EAAO,SAAU,GACpC,MAAM,KAAK,EAAS,EAAO,SAAU,GACrC,KAAK,KAAK,EAAS,EAAO,SAAU,GACpC,QAAQ,KAAK,EAAS,EAAO,SAAU,GAAQ,MAC7C,KACE,QAAQ,QAAQ,0BAA0B,IAE5C,KACE,QAAQ,KAAK,qBAAqB,GAGxC,CAEA,SAAS,OAAO,EAAS,EAAQ,GAC3B,EAAQ,MACV,KAAK,OAAO,EAAS,GAEnB,EAAQ,SACV,YAAY,OAAO,EAAS,GAE1B,EAAQ,MACV,KAAK,OAAO,EAAS,GAEnB,EAAQ,OACV,MAAM,OAAO,EAAS,GAEpB,EAAQ,MACV,KAAK,OAAO,EAAS,EAEzB,CAEA,QAAQ,KAAO,KACf,QAAQ,OAAS","file":"/npm/@js-lib/cli@3.0.0-alpha.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/@js-lib/cli@3.0.0-alpha.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","const ora = require('ora');\nconst spinner = ora();\nconst config = require('./module/config');\nconst root = require('./module/root');\nconst lint = require('./module/lint');\nconst packagejson = require('./module/package');\nconst src = require('./module/src');\nconst demo = require('./module/demo');\nconst build = require('./module/build');\nconst test = require('./module/test');\nconst manager = require('./module/manager');\n\nfunction init(cmdPath, option) {\n  config.init(cmdPath, option.pathname, option);\n  root.init(cmdPath, option.pathname, option);\n  packagejson.init(cmdPath, option.pathname, option);\n  demo.init(cmdPath, option.pathname, option);\n  src.init(cmdPath, option.pathname, option);\n  lint.init(cmdPath, option.pathname, option);\n  build.init(cmdPath, option.pathname, option);\n  test.init(cmdPath, option.pathname, option);\n  manager.init(cmdPath, option.pathname, option).then(\n    () => {\n      spinner.succeed('Create lib successfully');\n    },\n    () => {\n      spinner.fail('Create lib failure');\n    },\n  );\n}\n\nfunction update(cmdPath, option, answers) {\n  if (answers.root) {\n    root.update(cmdPath, option);\n  }\n  if (answers.package) {\n    packagejson.update(cmdPath, option);\n  }\n  if (answers.lint) {\n    lint.update(cmdPath, option);\n  }\n  if (answers.build) {\n    build.update(cmdPath, option);\n  }\n  if (answers.test) {\n    test.update(cmdPath, option);\n  }\n}\n\nexports.init = init;\nexports.update = update;\n"]}