{"version":3,"sources":["jsdelivr-header.js","/npm/gea-land@0.0.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACJA,MAAM,KAAO,QAAQ,QACf,GAAK,QAAQ,YACb,KAAO,QAAQ,WAAR,CAAoB,QAAQ,KAAK,MAAM,IAEpD,eAAe,OACb,MAAM,EAAY,KAAK,EAAE,IAAM,IACzB,EAAM,QAAQ,MACd,EAAO,KAAK,KAAK,EAAK,SACtB,GAAG,UAAU,GAEnB,QAAQ,IAAI,wBAAwB,eAEb,GAAG,QAAQ,IACrB,SACX,QAAQ,MAAM,wCACd,QAAQ,KAAK,IAGf,MAAM,EAAW,KAAK,KAAK,UAAW,YAEhC,EAAO,MAAO,IAClB,MAAM,EAAS,KAAK,KAAK,EAAU,GAC7B,EAAS,KAAK,KAAK,EAAM,SACzB,GAAG,KAAK,EAAQ,EAAM,EAQxB,QAAc,GAAG,QAAQ,GAC/B,IAAK,IAAI,KAAQ,EAAM,QAAO,GAAW,iBAAN,UAA+B,EAAK,GAEvE,MAAM,EAAM,QAAQ,KAAK,KAAK,EAAU,iBACxC,EAAI,KAAO,KAAK,SAAS,QATX,OAAM,EAAM,KACxB,MAAM,EAAS,KAAK,KAAK,EAAM,SACzB,GAAG,UAAU,EAAQ,EAAO,EAQ9B,CAAM,eAAgB,KAAK,UAAU,EAAK,KAAM,IAEtD,QAAQ,IAAI,sBACR,IAAS,GACX,QAAQ,IAAI,QAAQ,KAAK,SAAS,EAAK,MAEzC,QAAQ,IAAI,iBACZ,QAAQ,IAAI,iBACZ,QAAQ,KACV,CAEA,OAAO,OAAM,IACX,QAAQ,MAAM,EAAC","file":"/npm/gea-land@0.0.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/gea-land@0.0.3/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\n\nconst path = require('path')\nconst fs = require('fs-extra')\nconst argv = require('minimist')(process.argv.slice(2))\n\nasync function init() {\n  const targetDir = argv._[0] || '.'\n  const cwd = process.cwd()\n  const root = path.join(cwd, targetDir)\n  await fs.ensureDir(root)\n  \n  console.log(`Preparing landing in ${root}...`)\n\n  const existing = await fs.readdir(root)\n  if (existing.length) {\n    console.error(`Error: target directory is not empty`)\n    process.exit(1)\n  }\n\n  const template = path.join(__dirname, `template`)\n\n  const copy = async (file) => {\n    const source = path.join(template, file)\n    const target = path.join(root, file)\n    await fs.copy(source, target)\n  }\n\n  const write = async(file, content) => {\n    const target = path.join(root, file)\n    await fs.writeFile(target, content)\n  }\n\n  const files = await fs.readdir(template)\n  for (let file of files.filter(f => f !== `package.json`)) { await copy(file) }\n\n  const pkg = require(path.join(template, `package.json`))\n  pkg.name = path.basename(root)\n  await write(`package.json`, JSON.stringify(pkg, null, 2))\n\n  console.log(`\\nDone. Now run:\\n`)\n  if (root !== cwd) {\n    console.log(`  cd ${path.relative(cwd, root)}`)\n  }\n  console.log(`  npm install`)\n  console.log(`  npm run dev`)\n  console.log()\n}\n\ninit().catch(e => {\n  console.error(e)\n})\n"]}