create-vxrn 2.0.0-beta.99.1 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/dist/cjs/create.cjs +19 -28
  3. package/dist/cjs/create.native.cjs +21 -30
  4. package/dist/cjs/create.native.js +21 -30
  5. package/dist/cjs/create.native.js.map +1 -1
  6. package/dist/cjs/helpers/cloneStarter.cjs +4 -4
  7. package/dist/cjs/helpers/cloneStarter.native.cjs +6 -6
  8. package/dist/cjs/helpers/cloneStarter.native.js +6 -6
  9. package/dist/cjs/helpers/cloneStarter.native.js.map +1 -1
  10. package/dist/cjs/helpers/getProjectName.native.cjs +2 -2
  11. package/dist/cjs/helpers/getProjectName.native.js +2 -2
  12. package/dist/cjs/helpers/getProjectName.native.js.map +1 -1
  13. package/dist/cjs/helpers/getTemplateInfo.native.cjs +2 -2
  14. package/dist/cjs/helpers/getTemplateInfo.native.js +2 -2
  15. package/dist/cjs/helpers/getTemplateInfo.native.js.map +1 -1
  16. package/dist/cjs/index.cjs +4 -1
  17. package/dist/cjs/index.native.cjs +4 -1
  18. package/dist/cjs/index.native.js +4 -1
  19. package/dist/cjs/index.native.js.map +1 -1
  20. package/dist/cjs/steps/bare.native.cjs +1 -1
  21. package/dist/cjs/steps/bare.native.js +1 -1
  22. package/dist/cjs/steps/bare.native.js.map +1 -1
  23. package/dist/cjs/steps/fullstack.native.cjs +2 -2
  24. package/dist/cjs/steps/fullstack.native.js +2 -2
  25. package/dist/cjs/steps/fullstack.native.js.map +1 -1
  26. package/dist/cjs/steps/one.native.cjs +3 -3
  27. package/dist/cjs/steps/one.native.js +3 -3
  28. package/dist/cjs/steps/one.native.js.map +1 -1
  29. package/dist/cjs/templates.cjs +25 -36
  30. package/dist/cjs/templates.native.cjs +25 -36
  31. package/dist/cjs/templates.native.js +25 -36
  32. package/dist/cjs/templates.native.js.map +1 -1
  33. package/dist/esm/create.mjs +20 -29
  34. package/dist/esm/create.mjs.map +1 -1
  35. package/dist/esm/create.native.js +22 -31
  36. package/dist/esm/create.native.js.map +1 -1
  37. package/dist/esm/helpers/cloneStarter.mjs +4 -4
  38. package/dist/esm/helpers/cloneStarter.mjs.map +1 -1
  39. package/dist/esm/helpers/cloneStarter.native.js +6 -6
  40. package/dist/esm/helpers/cloneStarter.native.js.map +1 -1
  41. package/dist/esm/helpers/getProjectName.native.js +2 -2
  42. package/dist/esm/helpers/getProjectName.native.js.map +1 -1
  43. package/dist/esm/helpers/getTemplateInfo.native.js +2 -2
  44. package/dist/esm/helpers/getTemplateInfo.native.js.map +1 -1
  45. package/dist/esm/index.mjs +4 -1
  46. package/dist/esm/index.mjs.map +1 -1
  47. package/dist/esm/index.native.js +4 -1
  48. package/dist/esm/index.native.js.map +1 -1
  49. package/dist/esm/steps/bare.native.js +1 -1
  50. package/dist/esm/steps/bare.native.js.map +1 -1
  51. package/dist/esm/steps/fullstack.native.js +2 -2
  52. package/dist/esm/steps/fullstack.native.js.map +1 -1
  53. package/dist/esm/steps/one.native.js +3 -3
  54. package/dist/esm/steps/one.native.js.map +1 -1
  55. package/dist/esm/templates.mjs +25 -36
  56. package/dist/esm/templates.mjs.map +1 -1
  57. package/dist/esm/templates.native.js +25 -36
  58. package/dist/esm/templates.native.js.map +1 -1
  59. package/package.json +10 -8
  60. package/src/create.ts +26 -43
  61. package/src/helpers/cloneStarter.ts +6 -4
  62. package/src/index.ts +1 -1
  63. package/src/templates.ts +4 -14
  64. package/types/create.d.ts +5 -0
  65. package/types/create.d.ts.map +1 -0
  66. package/types/helpers/cloneStarter.d.ts +3 -0
  67. package/types/helpers/cloneStarter.d.ts.map +1 -0
  68. package/types/helpers/getProjectName.d.ts +2 -0
  69. package/types/helpers/getProjectName.d.ts.map +1 -0
  70. package/types/helpers/getTemplateInfo.d.ts +3 -0
  71. package/types/helpers/getTemplateInfo.d.ts.map +1 -0
  72. package/types/helpers/installDependencies.d.ts +2 -0
  73. package/types/helpers/installDependencies.d.ts.map +1 -0
  74. package/types/helpers/validateNpmPackage.d.ts +5 -0
  75. package/types/helpers/validateNpmPackage.d.ts.map +1 -0
  76. package/types/index.d.ts +3 -0
  77. package/types/index.d.ts.map +1 -0
  78. package/types/steps/bare.d.ts +5 -0
  79. package/types/steps/bare.d.ts.map +1 -0
  80. package/types/steps/fullstack.d.ts +4 -0
  81. package/types/steps/fullstack.d.ts.map +1 -0
  82. package/types/steps/one.d.ts +4 -0
  83. package/types/steps/one.d.ts.map +1 -0
  84. package/types/steps/types.d.ts +9 -0
  85. package/types/steps/types.d.ts.map +1 -0
  86. package/types/templates.d.ts +34 -0
  87. package/types/templates.d.ts.map +1 -0
  88. package/dist/esm/index.js +0 -72
  89. package/dist/esm/index.js.map +0 -1
@@ -71,7 +71,10 @@ var main = (0, import_citty.defineCommand)({
71
71
  }
72
72
  console.info();
73
73
  console.info(import_ansis.default.bold("Creating vxrn app..."));
74
- await (0, import_create.create)({ template: args.template });
74
+ await (0, import_create.create)({
75
+ name: args.directory,
76
+ template: args.template
77
+ });
75
78
  }
76
79
  });
77
80
  (0, import_citty.runMain)(main);
@@ -71,7 +71,10 @@ var main = (0, import_citty.defineCommand)({
71
71
  }
72
72
  console.info();
73
73
  console.info(import_ansis.default.bold("Creating vxrn app..."));
74
- await (0, import_create.create)({ template: args.template });
74
+ await (0, import_create.create)({
75
+ name: args.directory,
76
+ template: args.template
77
+ });
75
78
  }
76
79
  });
77
80
  (0, import_citty.runMain)(main);
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["#!/usr/bin/env node\n\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar import_ansis = __toESM(require(\"ansis\"));\nvar import_citty = require(\"citty\");\nvar import_path = __toESM(require(\"path\"));\nvar import_process = require(\"process\");\nvar import_getTemplateInfo = require(\"./helpers/getTemplateInfo\");\nvar import_create = require(\"./create\");\nvar import_url = require(\"url\");\nvar import_fs = require(\"fs\");\nconst import_meta = {};\nfunction exit() {\n process.exit(0);\n}\nprocess.on(\"SIGTERM\", exit);\nprocess.on(\"SIGINT\", exit);\nvar main = (0, import_citty.defineCommand)({\n meta: {\n name: \"main\",\n version: \"0.0.0\",\n description: \"Welcome to vxrn\"\n },\n args: {\n directory: {\n type: \"positional\",\n description: \"Directory to copy into\",\n default: \"\"\n },\n template: {\n type: \"string\",\n required: false,\n description: \"Choose a template in advance (avoid selection screen).\"\n },\n info: {\n type: \"boolean\",\n description: \"Output the post-install instructions for the template.\"\n }\n },\n async run(param) {\n var { args } = param;\n if (args.info) {\n var template = await (0, import_getTemplateInfo.getTemplateInfo)(args.template);\n if (\"extraSteps\" in template) {\n await template.extraSteps({\n isFullClone: false,\n projectName: import_path.default.basename((0, import_process.cwd)()),\n projectPath: (0, import_process.cwd)()\n });\n }\n return;\n }\n console.info();\n console.info(import_ansis.default.bold(\"Creating vxrn app...\"));\n await (0, import_create.create)({\n template: args.template\n });\n }\n});\n(0, import_citty.runMain)(main);\nfunction getPackageVersion() {\n var dirname;\n if (typeof __dirname !== \"undefined\") {\n dirname = __dirname;\n } else {\n dirname = import_path.default.dirname((0, import_url.fileURLToPath)(import_meta.url));\n }\n var packagePath = import_path.default.join(dirname, \"..\", \"..\", \"package.json\");\n var packageJson = JSON.parse((0, import_fs.readFileSync)(packagePath, \"utf-8\"));\n return packageJson.version;\n}\nif (process.argv.includes(\"--version\")) {\n console.info(getPackageVersion());\n process.exit(0);\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,eAAe,QAAQ,QAAQ,OAAO,CAAC;AAC3C,IAAI,eAAe,QAAQ,OAAO;AAClC,IAAI,cAAc,QAAQ,QAAQ,MAAM,CAAC;AACzC,IAAI,iBAAiB,QAAQ,SAAS;AACtC,IAAI,yBAAyB,QAAQ,qCAA2B;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Ac,KAAK,OAAO,GAAG,UAAU,aAAY,CAAE,aAAa,OAAO,CAAC;CAC9E,OAAO,YAAY;AACrB;AACA,IAAI,QAAQ,KAAK,SAAS,WAAW,GAAG;CACtC,QAAQ,KAAK,kBAAkB,CAAC;CAChC,QAAQ,KAAK,CAAC;AAChB"}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["#!/usr/bin/env node\n\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar import_ansis = __toESM(require(\"ansis\"));\nvar import_citty = require(\"citty\");\nvar import_path = __toESM(require(\"path\"));\nvar import_process = require(\"process\");\nvar import_getTemplateInfo = require(\"./helpers/getTemplateInfo\");\nvar import_create = require(\"./create\");\nvar import_url = require(\"url\");\nvar import_fs = require(\"fs\");\nconst import_meta = {};\nfunction exit() {\n process.exit(0);\n}\nprocess.on(\"SIGTERM\", exit);\nprocess.on(\"SIGINT\", exit);\nvar main = (0, import_citty.defineCommand)({\n meta: {\n name: \"main\",\n version: \"0.0.0\",\n description: \"Welcome to vxrn\"\n },\n args: {\n directory: {\n type: \"positional\",\n description: \"Directory to copy into\",\n default: \"\"\n },\n template: {\n type: \"string\",\n required: false,\n description: \"Choose a template in advance (avoid selection screen).\"\n },\n info: {\n type: \"boolean\",\n description: \"Output the post-install instructions for the template.\"\n }\n },\n async run(param) {\n var { args } = param;\n if (args.info) {\n var template = await (0, import_getTemplateInfo.getTemplateInfo)(args.template);\n if (\"extraSteps\" in template) {\n await template.extraSteps({\n isFullClone: false,\n projectName: import_path.default.basename((0, import_process.cwd)()),\n projectPath: (0, import_process.cwd)()\n });\n }\n return;\n }\n console.info();\n console.info(import_ansis.default.bold(\"Creating vxrn app...\"));\n await (0, import_create.create)({\n name: args.directory,\n template: args.template\n });\n }\n});\n(0, import_citty.runMain)(main);\nfunction getPackageVersion() {\n var dirname;\n if (typeof __dirname !== \"undefined\") {\n dirname = __dirname;\n } else {\n dirname = import_path.default.dirname((0, import_url.fileURLToPath)(import_meta.url));\n }\n var packagePath = import_path.default.join(dirname, \"..\", \"..\", \"package.json\");\n var packageJson = JSON.parse((0, import_fs.readFileSync)(packagePath, \"utf-8\"));\n return packageJson.version;\n}\nif (process.argv.includes(\"--version\")) {\n console.info(getPackageVersion());\n process.exit(0);\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AAEA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAA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AAG,eAAe,IAAG,CAAE;IACvC,CAAC;GACH;GACA;EACF;EACA,QAAQ,KAAK;EACb,QAAQ,KAAK,aAAa,QAAQ,KAAK,sBAAsB,CAAC;EAC9D,OAAO,GAAG,cAAc,OAAM,CAAE;GAC9B,MAAM,KAAK;GACX,UAAU,KAAK;EACjB,CAAC;CACH;AACF,CAAC;CACA,GAAG,aAAa,QAAO,CAAE,IAAI;AAC9B,SAAS,oBAAoB;CAC3B,IAAI;CACJ,IAAI,OAAO,cAAc,aAAa;EACpC,UAAU;CACZ,OAAO;EACL,UAAU,YAAY,QAAQ,SAAS,GAAG,WAAW,cAAa,CAAE,YAAY,GAAG,CAAC;CACtF;CACA,IAAI,cAAc,YAAY,QAAQ,KAAK,SAAS,MAAM,MAAM,cAAc;CAC9E,IAAI,cAAc,KAAK,OAAO,GAAG,UAAU,aAAY,CAAE,aAAa,OAAO,CAAC;CAC9E,OAAO,YAAY;AACrB;AACA,IAAI,QAAQ,KAAK,SAAS,WAAW,GAAG;CACtC,QAAQ,KAAK,kBAAkB,CAAC;CAChC,QAAQ,KAAK,CAAC;AAChB"}
@@ -62,7 +62,7 @@ async function replaceNameInUTF8File(filePath, projectName, templateName) {
62
62
  await import_fs_extra.default.writeFile(filePath, replacedFileContent, "utf8");
63
63
  }
64
64
  }
65
- var main = async function(param) {
65
+ var main = async function main2(param) {
66
66
  var { isFullClone, projectName } = param;
67
67
  var placeholderName = "bare";
68
68
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
@@ -62,7 +62,7 @@ async function replaceNameInUTF8File(filePath, projectName, templateName) {
62
62
  await import_fs_extra.default.writeFile(filePath, replacedFileContent, "utf8");
63
63
  }
64
64
  }
65
- var main = async function(param) {
65
+ var main = async function main2(param) {
66
66
  var { isFullClone, projectName } = param;
67
67
  var placeholderName = "bare";
68
68
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
@@ -1 +1 @@
1
- {"version":3,"file":"bare.native.js","names":[],"sources":["cjs/steps/bare.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar bare_exports = {};\n__export(bare_exports, {\n default: () => bare_default,\n replaceNameInUTF8File: () => replaceNameInUTF8File\n});\nmodule.exports = __toCommonJS(bare_exports);\nvar import_ansis = __toESM(require(\"ansis\"));\nvar import_fs_extra = __toESM(require(\"fs-extra\"));\nvar import_path = require(\"path\");\nfunction shouldIgnoreFile(filePath) {\n return filePath.match(/node_modules|yarn.lock|package-lock.json/g);\n}\nfunction shouldRenameFile(filePath, nameToReplace) {\n return (0, import_path.basename)(filePath).includes(nameToReplace);\n}\nasync function renameFile(filePath, oldName, newName) {\n var newFileName = (0, import_path.join)((0, import_path.dirname)(filePath), (0, import_path.basename)(filePath).replace(new RegExp(oldName, \"g\"), newName));\n await import_fs_extra.default.rename(filePath, newFileName);\n}\nfunction walk(current) {\n if (!import_fs_extra.default.lstatSync(current).isDirectory()) {\n return [\n current\n ];\n }\n var files = import_fs_extra.default.readdirSync(current).map(function(child) {\n return walk((0, import_path.join)(current, child));\n });\n var result = [];\n return result.concat.apply([\n current\n ], files);\n}\nasync function replaceNameInUTF8File(filePath, projectName, templateName) {\n var fileContent = await import_fs_extra.default.readFile(filePath, \"utf8\");\n var replacedFileContent = fileContent.replace(new RegExp(templateName, \"g\"), projectName).replace(new RegExp(templateName.toLowerCase(), \"g\"), projectName.toLowerCase());\n if (fileContent !== replacedFileContent) {\n await import_fs_extra.default.writeFile(filePath, replacedFileContent, \"utf8\");\n }\n}\nvar main = async function(param) {\n var { isFullClone, projectName } = param;\n var placeholderName = \"bare\";\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = walk(process.cwd()).reverse()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var filePath = _step.value;\n if (shouldIgnoreFile(filePath)) {\n continue;\n }\n if (!(await import_fs_extra.default.stat(filePath)).isDirectory()) {\n await replaceNameInUTF8File(filePath, projectName, \"bare\");\n }\n if (shouldRenameFile(filePath, placeholderName)) {\n await renameFile(filePath, placeholderName, projectName);\n } else if (shouldRenameFile(filePath, placeholderName.toLowerCase())) {\n await renameFile(filePath, placeholderName.toLowerCase(), projectName.toLowerCase());\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (isFullClone) {\n console.info(`\n${import_ansis.default.green.bold(\"Done!\")} Created a new project under ./${import_ansis.default.greenBright(projectName)} visit your project:\n \\u2022 ${import_ansis.default.green(\"cd\")} ${projectName}\n\n${import_ansis.default.green(`Run instructions for ${import_ansis.default.bold(\"Android\")}:`)}\n \\u2022 Have an Android emulator running (quickest way to get started), or a device connected.\n \\u2022 npx react-native run-android\n\n${import_ansis.default.blue(`Run instructions for ${import_ansis.default.bold(\"iOS\")}:`)}\n \\u2022 Install Cocoapods\n \\u2022 bundle install # you need to run this only once in your project.\n \\u2022 bundle exec pod install\n \\u2022 cd ..\n\n \\u2022 npx react-native run-ios\n ${import_ansis.default.gray(\"- or -\")}\n \\u2022 Open ${projectName}/ios/${projectName}.xcworkspace in Xcode or run \"xed -b ios\"\n \\u2022 Hit the Run button\n\n`);\n }\n};\nvar bare_default = main;\n//# sourceMappingURL=bare.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;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AAQ,YAAY,WAAW,EAAE;WAC/G,aAAa,QAAQ,MAAM,IAAI,EAAE,GAAG,YAAY;;EAEzD,aAAa,QAAQ,MAAM,wBAAwB,aAAa,QAAQ,KAAK,SAAS,EAAE,EAAE,EAAE;;;;EAI5F,aAAa,QAAQ,KAAK,wBAAwB,aAAa,QAAQ,KAAK,KAAK,EAAE,EAAE,EAAE;;;;;;;IAOrF,aAAa,QAAQ,KAAK,QAAQ,EAAE;gBACxB,YAAY,OAAO,YAAY;;;CAG9C;CACC;AACF;AACA,IAAI,eAAe"}
1
+ {"version":3,"file":"bare.native.js","names":[],"sources":["cjs/steps/bare.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar bare_exports = {};\n__export(bare_exports, {\n default: () => bare_default,\n replaceNameInUTF8File: () => replaceNameInUTF8File\n});\nmodule.exports = __toCommonJS(bare_exports);\nvar import_ansis = __toESM(require(\"ansis\"));\nvar import_fs_extra = __toESM(require(\"fs-extra\"));\nvar import_path = require(\"path\");\nfunction shouldIgnoreFile(filePath) {\n return filePath.match(/node_modules|yarn.lock|package-lock.json/g);\n}\nfunction shouldRenameFile(filePath, nameToReplace) {\n return (0, import_path.basename)(filePath).includes(nameToReplace);\n}\nasync function renameFile(filePath, oldName, newName) {\n var newFileName = (0, import_path.join)((0, import_path.dirname)(filePath), (0, import_path.basename)(filePath).replace(new RegExp(oldName, \"g\"), newName));\n await import_fs_extra.default.rename(filePath, newFileName);\n}\nfunction walk(current) {\n if (!import_fs_extra.default.lstatSync(current).isDirectory()) {\n return [\n current\n ];\n }\n var files = import_fs_extra.default.readdirSync(current).map(function(child) {\n return walk((0, import_path.join)(current, child));\n });\n var result = [];\n return result.concat.apply([\n current\n ], files);\n}\nasync function replaceNameInUTF8File(filePath, projectName, templateName) {\n var fileContent = await import_fs_extra.default.readFile(filePath, \"utf8\");\n var replacedFileContent = fileContent.replace(new RegExp(templateName, \"g\"), projectName).replace(new RegExp(templateName.toLowerCase(), \"g\"), projectName.toLowerCase());\n if (fileContent !== replacedFileContent) {\n await import_fs_extra.default.writeFile(filePath, replacedFileContent, \"utf8\");\n }\n}\nvar main = async function main2(param) {\n var { isFullClone, projectName } = param;\n var placeholderName = \"bare\";\n var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n try {\n for (var _iterator = walk(process.cwd()).reverse()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var filePath = _step.value;\n if (shouldIgnoreFile(filePath)) {\n continue;\n }\n if (!(await import_fs_extra.default.stat(filePath)).isDirectory()) {\n await replaceNameInUTF8File(filePath, projectName, \"bare\");\n }\n if (shouldRenameFile(filePath, placeholderName)) {\n await renameFile(filePath, placeholderName, projectName);\n } else if (shouldRenameFile(filePath, placeholderName.toLowerCase())) {\n await renameFile(filePath, placeholderName.toLowerCase(), projectName.toLowerCase());\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n if (isFullClone) {\n console.info(`\n${import_ansis.default.green.bold(\"Done!\")} Created a new project under ./${import_ansis.default.greenBright(projectName)} visit your project:\n \\u2022 ${import_ansis.default.green(\"cd\")} ${projectName}\n\n${import_ansis.default.green(`Run instructions for ${import_ansis.default.bold(\"Android\")}:`)}\n \\u2022 Have an Android emulator running (quickest way to get started), or a device connected.\n \\u2022 npx react-native run-android\n\n${import_ansis.default.blue(`Run instructions for ${import_ansis.default.bold(\"iOS\")}:`)}\n \\u2022 Install Cocoapods\n \\u2022 bundle install # you need to run this only once in your project.\n \\u2022 bundle exec pod install\n \\u2022 cd ..\n\n \\u2022 npx react-native run-ios\n ${import_ansis.default.gray(\"- or -\")}\n \\u2022 Open ${projectName}/ios/${projectName}.xcworkspace in Xcode or run \"xed -b ios\"\n \\u2022 Hit the Run button\n\n`);\n }\n};\nvar bare_default = main;\n//# sourceMappingURL=bare.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,a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AAgB,YAAY,CAAC,GAAG;IACpE,MAAM,WAAW,UAAU,gBAAgB,YAAY,GAAG,YAAY,YAAY,CAAC;GACrF;EACF;CACF,SAAS,KAAK;EACZ,oBAAoB;EACpB,iBAAiB;CACnB,UAAU;EACR,IAAI;GACF,IAAI,CAAC,6BAA6B,UAAU,UAAU,MAAM;IAC1D,UAAU,OAAO;GACnB;EACF,UAAU;GACR,IAAI,mBAAmB;IACrB,MAAM;GACR;EACF;CACF;CACA,IAAI,aAAa;EACf,QAAQ,KAAK;EACf,aAAa,QAAQ,MAAM,KAAK,OAAO,EAAE,iCAAiC,aAAa,QAAQ,YAAY,WAAW,EAAE;WAC/G,aAAa,QAAQ,MAAM,IAAI,EAAE,GAAG,YAAY;;EAEzD,aAAa,QAAQ,MAAM,wBAAwB,aAAa,QAAQ,KAAK,SAAS,EAAE,EAAE,EAAE;;;;EAI5F,aAAa,QAAQ,KAAK,wBAAwB,aAAa,QAAQ,KAAK,KAAK,EAAE,EAAE,EAAE;;;;;;;IAOrF,aAAa,QAAQ,KAAK,QAAQ,EAAE;gBACxB,YAAY,OAAO,YAAY;;;CAG9C;CACC;AACF;AACA,IAAI,eAAe"}
@@ -32,10 +32,10 @@ module.exports = __toCommonJS(fullstack_exports);
32
32
  var import_ansis = __toESM(require("ansis"));
33
33
  var packageManager = "yarn";
34
34
  var useYarn = packageManager === "yarn";
35
- var runCommand = function(scriptName) {
35
+ var runCommand = function runCommand2(scriptName) {
36
36
  return `${packageManager} ${useYarn ? "" : "run "}${scriptName}`;
37
37
  };
38
- var main = async function(param) {
38
+ var main = async function main2(param) {
39
39
  var { isFullClone, projectName } = param;
40
40
  if (isFullClone) {
41
41
  console.info(`
@@ -32,10 +32,10 @@ module.exports = __toCommonJS(fullstack_exports);
32
32
  var import_ansis = __toESM(require("ansis"));
33
33
  var packageManager = "yarn";
34
34
  var useYarn = packageManager === "yarn";
35
- var runCommand = function(scriptName) {
35
+ var runCommand = function runCommand2(scriptName) {
36
36
  return `${packageManager} ${useYarn ? "" : "run "}${scriptName}`;
37
37
  };
38
- var main = async function(param) {
38
+ var main = async function main2(param) {
39
39
  var { isFullClone, projectName } = param;
40
40
  if (isFullClone) {
41
41
  console.info(`
@@ -1 +1 @@
1
- {"version":3,"file":"fullstack.native.js","names":[],"sources":["cjs/steps/fullstack.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar fullstack_exports = {};\n__export(fullstack_exports, {\n default: () => fullstack_default\n});\nmodule.exports = __toCommonJS(fullstack_exports);\nvar import_ansis = __toESM(require(\"ansis\"));\nvar packageManager = \"yarn\";\nvar useYarn = packageManager === \"yarn\";\nvar runCommand = function(scriptName) {\n return `${packageManager} ${useYarn ? \"\" : \"run \"}${scriptName}`;\n};\nvar main = async function(param) {\n var { isFullClone, projectName } = param;\n if (isFullClone) {\n console.info(`\n${import_ansis.default.green.bold(\"Done!\")} Created a new project under ./${import_ansis.default.greenBright(projectName)} visit your project:\n \\u2022 ${import_ansis.default.green(\"cd\")} ${projectName}\n`);\n }\n console.info(`\nTo start the dev server, run: ${import_ansis.default.green(runCommand(\"dev\"))}\n`);\n};\nvar fullstack_default = main;\n//# sourceMappingURL=fullstack.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAC1B,eAAe,kBACjB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,eAAe,QAAQ,QAAQ,OAAO,CAAC;AAC3C,IAAI,iBAAiB;AACrB,IAAI,UAAU,mBAAmB;AACjC,IAAI,aAAa,SAAS,YAAY;CACpC,OAAO,GAAG,eAAe,GAAG,UAAU,KAAK,SAAS;AACtD;AACA,IAAI,OAAO,eAAe,OAAO;CAC/B,IAAI,EAAE,aAAa,gBAAgB;CACnC,IAAI,aAAa;EACf,QAAQ,KAAK;EACf,aAAa,QAAQ,MAAM,KAAK,OAAO,EAAE,iCAAiC,aAAa,QAAQ,YAAY,WAAW,EAAE;UAChH,aAAa,QAAQ,MAAM,IAAI,EAAE,GAAG,YAAY;CACzD;CACC;CACA,QAAQ,KAAK;gCACiB,aAAa,QAAQ,MAAM,WAAW,KAAK,CAAC,EAAE;CAC7E;AACD;AACA,IAAI,oBAAoB"}
1
+ {"version":3,"file":"fullstack.native.js","names":[],"sources":["cjs/steps/fullstack.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar fullstack_exports = {};\n__export(fullstack_exports, {\n default: () => fullstack_default\n});\nmodule.exports = __toCommonJS(fullstack_exports);\nvar import_ansis = __toESM(require(\"ansis\"));\nvar packageManager = \"yarn\";\nvar useYarn = packageManager === \"yarn\";\nvar runCommand = function runCommand2(scriptName) {\n return `${packageManager} ${useYarn ? \"\" : \"run \"}${scriptName}`;\n};\nvar main = async function main2(param) {\n var { isFullClone, projectName } = param;\n if (isFullClone) {\n console.info(`\n${import_ansis.default.green.bold(\"Done!\")} Created a new project under ./${import_ansis.default.greenBright(projectName)} visit your project:\n \\u2022 ${import_ansis.default.green(\"cd\")} ${projectName}\n`);\n }\n console.info(`\nTo start the dev server, run: ${import_ansis.default.green(runCommand(\"dev\"))}\n`);\n};\nvar fullstack_default = main;\n//# sourceMappingURL=fullstack.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAC1B,eAAe,kBACjB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,eAAe,QAAQ,QAAQ,OAAO,CAAC;AAC3C,IAAI,iBAAiB;AACrB,IAAI,UAAU,mBAAmB;AACjC,IAAI,aAAa,SAAS,YAAY,YAAY;CAChD,OAAO,GAAG,eAAe,GAAG,UAAU,KAAK,SAAS;AACtD;AACA,IAAI,OAAO,eAAe,MAAM,OAAO;CACrC,IAAI,EAAE,aAAa,gBAAgB;CACnC,IAAI,aAAa;EACf,QAAQ,KAAK;EACf,aAAa,QAAQ,MAAM,KAAK,OAAO,EAAE,iCAAiC,aAAa,QAAQ,YAAY,WAAW,EAAE;UAChH,aAAa,QAAQ,MAAM,IAAI,EAAE,GAAG,YAAY;CACzD;CACC;CACA,QAAQ,KAAK;gCACiB,aAAa,QAAQ,MAAM,WAAW,KAAK,CAAC,EAAE;CAC7E;AACD;AACA,IAAI,oBAAoB"}
@@ -36,10 +36,10 @@ var import_ansis = __toESM(require("ansis"));
36
36
  var import_fs_extra = __toESM(require("fs-extra"));
37
37
  var import_path = require("path");
38
38
  var import_utils = require("@vxrn/utils");
39
- var extraSteps = async function(param) {
39
+ var extraSteps = async function extraSteps2(param) {
40
40
  var { isFullClone, projectName, packageManager } = param;
41
41
  var useBun = packageManager === "bun";
42
- var runCommand = function(scriptName) {
42
+ var runCommand = function runCommand2(scriptName) {
43
43
  return `${packageManager} ${useBun ? "" : "run "}${scriptName}`;
44
44
  };
45
45
  if (isFullClone) {
@@ -53,7 +53,7 @@ To run:
53
53
  ${import_ansis.default.green(runCommand("dev"))}
54
54
  `);
55
55
  };
56
- var preInstall = async function(param) {
56
+ var preInstall = async function preInstall2(param) {
57
57
  var { projectName, packageManager, projectPath } = param;
58
58
  var path = projectPath || projectName;
59
59
  var envExample = (0, import_path.join)(path, ".env.example");
@@ -36,10 +36,10 @@ var import_ansis = __toESM(require("ansis"));
36
36
  var import_fs_extra = __toESM(require("fs-extra"));
37
37
  var import_path = require("path");
38
38
  var import_utils = require("@vxrn/utils");
39
- var extraSteps = async function(param) {
39
+ var extraSteps = async function extraSteps2(param) {
40
40
  var { isFullClone, projectName, packageManager } = param;
41
41
  var useBun = packageManager === "bun";
42
- var runCommand = function(scriptName) {
42
+ var runCommand = function runCommand2(scriptName) {
43
43
  return `${packageManager} ${useBun ? "" : "run "}${scriptName}`;
44
44
  };
45
45
  if (isFullClone) {
@@ -53,7 +53,7 @@ To run:
53
53
  ${import_ansis.default.green(runCommand("dev"))}
54
54
  `);
55
55
  };
56
- var preInstall = async function(param) {
56
+ var preInstall = async function preInstall2(param) {
57
57
  var { projectName, packageManager, projectPath } = param;
58
58
  var path = projectPath || projectName;
59
59
  var envExample = (0, import_path.join)(path, ".env.example");
@@ -1 +1 @@
1
- {"version":3,"file":"one.native.js","names":[],"sources":["cjs/steps/one.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar one_exports = {};\n__export(one_exports, {\n extraSteps: () => extraSteps,\n preInstall: () => preInstall\n});\nmodule.exports = __toCommonJS(one_exports);\nvar import_ansis = __toESM(require(\"ansis\"));\nvar import_fs_extra = __toESM(require(\"fs-extra\"));\nvar import_path = require(\"path\");\nvar import_utils = require(\"@vxrn/utils\");\nvar extraSteps = async function(param) {\n var { isFullClone, projectName, packageManager } = param;\n var useBun = packageManager === \"bun\";\n var runCommand = function(scriptName) {\n return `${packageManager} ${useBun ? \"\" : \"run \"}${scriptName}`;\n };\n if (isFullClone) {\n console.info(`\n${import_ansis.default.green.bold(\"Done!\")} Created a new project under ./${import_ansis.default.greenBright(projectName)}`);\n }\n console.info(`\nTo run: \n\n ${import_ansis.default.green(\"cd\")} ${projectName}\n ${import_ansis.default.green(runCommand(\"dev\"))}\n`);\n};\nvar preInstall = async function(param) {\n var { projectName, packageManager, projectPath } = param;\n var path = projectPath || projectName;\n var envExample = (0, import_path.join)(path, \".env.example\");\n if (import_fs_extra.default.existsSync(envExample)) {\n await import_fs_extra.default.move(envExample, (0, import_path.join)(path, \".env\"));\n console.info(`Moved .env.example to .env`);\n }\n if (packageManager === \"pnpm\") {\n await import_fs_extra.default.writeFile((0, import_path.join)(path, `.npmrc`), `node-linker=hoisted\n`);\n console.info(`Set up .npmrc to avoid symlinked node_modules\n\nNote! \\u{1F44B}\n\nIf you are working in a monorepo, you need to move the .npmrc with the node-linker\nconfiguration to the root of the monorepo rather than here.\n\n`);\n }\n if (packageManager === \"yarn\") {\n await import_fs_extra.default.writeFile((0, import_path.join)(path, \".yarnrc.yml\"), `\ncompressionLevel: mixed\nenableGlobalCache: false\nenableTelemetry: false\nnodeLinker: node-modules\n\nlogFilters:\n - code: YN0002\n level: discard\n - code: YN0060\n level: discard\n - code: YN0006\n level: discard\n - code: YN0076\n level: discard\n`);\n await (0, import_utils.execPromise)(`yarn set version stable`);\n await import_fs_extra.default.writeFile((0, import_path.join)(path, \"yarn.lock\"), \"\");\n console.info(`Set up yarn for latest version`);\n }\n};\n//# sourceMappingURL=one.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,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A4B;CAC3C;CACA,IAAI,mBAAmB,QAAQ;EAC7B,MAAM,gBAAgB,QAAQ,WAAW,GAAG,YAAY,KAAI,CAAE,MAAM,QAAQ,GAAG;CAClF;EACG,QAAQ,KAAK;;;;;;;CAOhB;CACC;CACA,IAAI,mBAAmB,QAAQ;EAC7B,MAAM,gBAAgB,QAAQ,WAAW,GAAG,YAAY,KAAI,CAAE,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;CAevF;EACG,OAAO,GAAG,aAAa,YAAW,CAAE,yBAAyB;EAC7D,MAAM,gBAAgB,QAAQ,WAAW,GAAG,YAAY,KAAI,CAAE,MAAM,WAAW,GAAG,EAAE;EACpF,QAAQ,KAAK,gCAAgC;CAC/C;AACF"}
1
+ {"version":3,"file":"one.native.js","names":[],"sources":["cjs/steps/one.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar one_exports = {};\n__export(one_exports, {\n extraSteps: () => extraSteps,\n preInstall: () => preInstall\n});\nmodule.exports = __toCommonJS(one_exports);\nvar import_ansis = __toESM(require(\"ansis\"));\nvar import_fs_extra = __toESM(require(\"fs-extra\"));\nvar import_path = require(\"path\");\nvar import_utils = require(\"@vxrn/utils\");\nvar extraSteps = async function extraSteps2(param) {\n var { isFullClone, projectName, packageManager } = param;\n var useBun = packageManager === \"bun\";\n var runCommand = function runCommand2(scriptName) {\n return `${packageManager} ${useBun ? \"\" : \"run \"}${scriptName}`;\n };\n if (isFullClone) {\n console.info(`\n${import_ansis.default.green.bold(\"Done!\")} Created a new project under ./${import_ansis.default.greenBright(projectName)}`);\n }\n console.info(`\nTo run: \n\n ${import_ansis.default.green(\"cd\")} ${projectName}\n ${import_ansis.default.green(runCommand(\"dev\"))}\n`);\n};\nvar preInstall = async function preInstall2(param) {\n var { projectName, packageManager, projectPath } = param;\n var path = projectPath || projectName;\n var envExample = (0, import_path.join)(path, \".env.example\");\n if (import_fs_extra.default.existsSync(envExample)) {\n await import_fs_extra.default.move(envExample, (0, import_path.join)(path, \".env\"));\n console.info(`Moved .env.example to .env`);\n }\n if (packageManager === \"pnpm\") {\n await import_fs_extra.default.writeFile((0, import_path.join)(path, `.npmrc`), `node-linker=hoisted\n`);\n console.info(`Set up .npmrc to avoid symlinked node_modules\n\nNote! \\u{1F44B}\n\nIf you are working in a monorepo, you need to move the .npmrc with the node-linker\nconfiguration to the root of the monorepo rather than here.\n\n`);\n }\n if (packageManager === \"yarn\") {\n await import_fs_extra.default.writeFile((0, import_path.join)(path, \".yarnrc.yml\"), `\ncompressionLevel: mixed\nenableGlobalCache: false\nenableTelemetry: false\nnodeLinker: node-modules\n\nlogFilters:\n - code: YN0002\n level: discard\n - code: YN0060\n level: discard\n - code: YN0006\n level: discard\n - code: YN0076\n level: discard\n`);\n await (0, import_utils.execPromise)(`yarn set version stable`);\n await import_fs_extra.default.writeFile((0, import_path.join)(path, \"yarn.lock\"), \"\");\n console.info(`Set up yarn for latest version`);\n }\n};\n//# sourceMappingURL=one.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,cAAc,CAAC;AACnB,SAAS,aAAa;CACpB,kBAAkB;CAClB,kBAAkB;AACpB,CAAC;AACD,OAAO,UAAU,aAAa,WAAW;AACzC,IAAI,eAAe,QAAQ,QAAQ,OAAO,CAAC;AAC3C,IAAI,kBAAkB,QAAQ,QAAQ,UA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AE;EACpF,QAAQ,KAAK,gCAAgC;CAC/C;AACF"}
@@ -28,41 +28,30 @@ var templates_exports = {};
28
28
  __export(templates_exports, { templates: () => templates });
29
29
  module.exports = __toCommonJS(templates_exports);
30
30
  var BasicTemplateSteps = __toESM(require("./steps/one.cjs"));
31
- const templates = [
32
- {
33
- title: `Basic`,
34
- value: "Basic",
35
- description: "The simplest starting point, vanilla Rreact Native",
36
- type: "included-in-monorepo",
37
- hidden: false,
38
- repo: {
39
- url: `https://github.com/onejs/one.git`,
40
- sshFallback: `git@github.com:onejs/one.git`,
41
- dir: [`examples`, `one-basic`],
42
- branch: "main"
43
- },
44
- ...BasicTemplateSteps
31
+ const templates = [{
32
+ title: `Basic`,
33
+ value: "Basic",
34
+ description: "The simplest starting point, vanilla React Native",
35
+ type: "included-in-monorepo",
36
+ hidden: false,
37
+ repo: {
38
+ url: `https://github.com/onejs/one.git`,
39
+ sshFallback: `git@github.com:onejs/one.git`,
40
+ dir: [`examples`, `one-basic`],
41
+ branch: "main"
45
42
  },
46
- {
47
- title: `Takeout Free`,
48
- value: "Takeout",
49
- description: "One, Tamagui, Zero, Better Auth",
50
- type: "external-repo",
51
- hidden: false,
52
- repo: {
53
- url: `https://github.com/tamagui/takeout-free.git`,
54
- sshFallback: `git@github.com:tamagui/takeout-free.git`,
55
- dir: [],
56
- branch: "main"
57
- },
58
- ...BasicTemplateSteps
43
+ ...BasicTemplateSteps
44
+ }, {
45
+ title: `Takeout`,
46
+ value: "Takeout",
47
+ description: "One, Tamagui, Zero, Better Auth",
48
+ type: "external-repo",
49
+ hidden: false,
50
+ repo: {
51
+ url: `https://github.com/tamagui/takeout2.git`,
52
+ sshFallback: `git@github.com:tamagui/takeout2.git`,
53
+ dir: [],
54
+ branch: "main"
59
55
  },
60
- {
61
- title: `Takeout Production`,
62
- value: "TakeoutPro",
63
- description: "Takeout + a startup in a repo. Refined stack that's production ready. Home/Terms/Docs, CI/CD, IaC, Integration Tests, Onboarding, Notifications, OTA Updates, Screens, >50 Components, >25 Agent Docs, >30 Scripts. See https://takeout.tamagui.dev",
64
- type: "external-link",
65
- hidden: false,
66
- externalUrl: "https://takeout.tamagui.dev"
67
- }
68
- ];
56
+ ...BasicTemplateSteps
57
+ }];
@@ -30,41 +30,30 @@ var templates_exports = {};
30
30
  __export(templates_exports, { templates: () => templates });
31
31
  module.exports = __toCommonJS(templates_exports);
32
32
  var BasicTemplateSteps = __toESM(require("./steps/one.native.js"));
33
- var templates = [
34
- {
35
- title: `Basic`,
36
- value: "Basic",
37
- description: "The simplest starting point, vanilla Rreact Native",
38
- type: "included-in-monorepo",
39
- hidden: false,
40
- repo: {
41
- url: `https://github.com/onejs/one.git`,
42
- sshFallback: `git@github.com:onejs/one.git`,
43
- dir: [`examples`, `one-basic`],
44
- branch: "main"
45
- },
46
- ...BasicTemplateSteps
33
+ var templates = [{
34
+ title: `Basic`,
35
+ value: "Basic",
36
+ description: "The simplest starting point, vanilla React Native",
37
+ type: "included-in-monorepo",
38
+ hidden: false,
39
+ repo: {
40
+ url: `https://github.com/onejs/one.git`,
41
+ sshFallback: `git@github.com:onejs/one.git`,
42
+ dir: [`examples`, `one-basic`],
43
+ branch: "main"
47
44
  },
48
- {
49
- title: `Takeout Free`,
50
- value: "Takeout",
51
- description: "One, Tamagui, Zero, Better Auth",
52
- type: "external-repo",
53
- hidden: false,
54
- repo: {
55
- url: `https://github.com/tamagui/takeout-free.git`,
56
- sshFallback: `git@github.com:tamagui/takeout-free.git`,
57
- dir: [],
58
- branch: "main"
59
- },
60
- ...BasicTemplateSteps
45
+ ...BasicTemplateSteps
46
+ }, {
47
+ title: `Takeout`,
48
+ value: "Takeout",
49
+ description: "One, Tamagui, Zero, Better Auth",
50
+ type: "external-repo",
51
+ hidden: false,
52
+ repo: {
53
+ url: `https://github.com/tamagui/takeout2.git`,
54
+ sshFallback: `git@github.com:tamagui/takeout2.git`,
55
+ dir: [],
56
+ branch: "main"
61
57
  },
62
- {
63
- title: `Takeout Production`,
64
- value: "TakeoutPro",
65
- description: "Takeout + a startup in a repo. Refined stack that's production ready. Home/Terms/Docs, CI/CD, IaC, Integration Tests, Onboarding, Notifications, OTA Updates, Screens, >50 Components, >25 Agent Docs, >30 Scripts. See https://takeout.tamagui.dev",
66
- type: "external-link",
67
- hidden: false,
68
- externalUrl: "https://takeout.tamagui.dev"
69
- }
70
- ];
58
+ ...BasicTemplateSteps
59
+ }];
@@ -30,43 +30,32 @@ var templates_exports = {};
30
30
  __export(templates_exports, { templates: () => templates });
31
31
  module.exports = __toCommonJS(templates_exports);
32
32
  var BasicTemplateSteps = __toESM(require("./steps/one.native.js"));
33
- var templates = [
34
- {
35
- title: `Basic`,
36
- value: "Basic",
37
- description: "The simplest starting point, vanilla Rreact Native",
38
- type: "included-in-monorepo",
39
- hidden: false,
40
- repo: {
41
- url: `https://github.com/onejs/one.git`,
42
- sshFallback: `git@github.com:onejs/one.git`,
43
- dir: [`examples`, `one-basic`],
44
- branch: "main"
45
- },
46
- ...BasicTemplateSteps
33
+ var templates = [{
34
+ title: `Basic`,
35
+ value: "Basic",
36
+ description: "The simplest starting point, vanilla React Native",
37
+ type: "included-in-monorepo",
38
+ hidden: false,
39
+ repo: {
40
+ url: `https://github.com/onejs/one.git`,
41
+ sshFallback: `git@github.com:onejs/one.git`,
42
+ dir: [`examples`, `one-basic`],
43
+ branch: "main"
47
44
  },
48
- {
49
- title: `Takeout Free`,
50
- value: "Takeout",
51
- description: "One, Tamagui, Zero, Better Auth",
52
- type: "external-repo",
53
- hidden: false,
54
- repo: {
55
- url: `https://github.com/tamagui/takeout-free.git`,
56
- sshFallback: `git@github.com:tamagui/takeout-free.git`,
57
- dir: [],
58
- branch: "main"
59
- },
60
- ...BasicTemplateSteps
45
+ ...BasicTemplateSteps
46
+ }, {
47
+ title: `Takeout`,
48
+ value: "Takeout",
49
+ description: "One, Tamagui, Zero, Better Auth",
50
+ type: "external-repo",
51
+ hidden: false,
52
+ repo: {
53
+ url: `https://github.com/tamagui/takeout2.git`,
54
+ sshFallback: `git@github.com:tamagui/takeout2.git`,
55
+ dir: [],
56
+ branch: "main"
61
57
  },
62
- {
63
- title: `Takeout Production`,
64
- value: "TakeoutPro",
65
- description: "Takeout + a startup in a repo. Refined stack that's production ready. Home/Terms/Docs, CI/CD, IaC, Integration Tests, Onboarding, Notifications, OTA Updates, Screens, >50 Components, >25 Agent Docs, >30 Scripts. See https://takeout.tamagui.dev",
66
- type: "external-link",
67
- hidden: false,
68
- externalUrl: "https://takeout.tamagui.dev"
69
- }
70
- ];
58
+ ...BasicTemplateSteps
59
+ }];
71
60
 
72
61
  //# sourceMappingURL=templates.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates.native.js","names":[],"sources":["cjs/templates.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar templates_exports = {};\n__export(templates_exports, {\n templates: () => templates\n});\nmodule.exports = __toCommonJS(templates_exports);\nvar BasicTemplateSteps = __toESM(require(\"./steps/one\"));\nvar templates = [\n {\n title: `Basic`,\n value: \"Basic\",\n description: \"The simplest starting point, vanilla Rreact Native\",\n type: \"included-in-monorepo\",\n hidden: false,\n repo: {\n url: `https://github.com/onejs/one.git`,\n sshFallback: `git@github.com:onejs/one.git`,\n dir: [\n `examples`,\n `one-basic`\n ],\n branch: \"main\"\n },\n ...BasicTemplateSteps\n },\n {\n title: `Takeout Free`,\n value: \"Takeout\",\n description: \"One, Tamagui, Zero, Better Auth\",\n type: \"external-repo\",\n hidden: false,\n repo: {\n url: `https://github.com/tamagui/takeout-free.git`,\n sshFallback: `git@github.com:tamagui/takeout-free.git`,\n dir: [],\n branch: \"main\"\n },\n ...BasicTemplateSteps\n },\n {\n title: `Takeout Production`,\n value: \"TakeoutPro\",\n description: \"Takeout + a startup in a repo. Refined stack that's production ready. Home/Terms/Docs, CI/CD, IaC, Integration Tests, Onboarding, Notifications, OTA Updates, Screens, >50 Components, >25 Agent Docs, >30 Scripts. See https://takeout.tamagui.dev\",\n type: \"external-link\",\n hidden: false,\n externalUrl: \"https://takeout.tamagui.dev\"\n }\n];\n//# sourceMappingURL=templates.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,SAAS,mBAAmB,EAC1B,iBAAiB,UACnB,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,qBAAqB,QAAQ,QAAQ,uBAAa,CAAC;AACvD,IAAI,YAAY;CACd;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,QAAQ;EACR,MAAM;GACJ,KAAK;GACL,aAAa;GACb,KAAK,CACH,YACA,WACF;GACA,QAAQ;EACV;EACA,GAAG;CACL;CACA;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,QAAQ;EACR,MAAM;GACJ,KAAK;GACL,aAAa;GACb,KAAK,CAAC;GACN,QAAQ;EACV;EACA,GAAG;CACL;CACA;EACE,OAAO;EACP,OAAO;EACP,aAAa;EACb,MAAM;EACN,QAAQ;EACR,aAAa;CACf;AACF"}
1
+ {"version":3,"file":"templates.native.js","names":[],"sources":["cjs/templates.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar templates_exports = {};\n__export(templates_exports, {\n templates: () => templates\n});\nmodule.exports = __toCommonJS(templates_exports);\nvar BasicTemplateSteps = __toESM(require(\"./steps/one\"));\nvar templates = [\n {\n title: `Basic`,\n value: \"Basic\",\n description: \"The simplest starting point, vanilla React Native\",\n type: \"included-in-monorepo\",\n hidden: false,\n repo: {\n url: `https://github.com/onejs/one.git`,\n sshFallback: `git@github.com:onejs/one.git`,\n dir: [\n `examples`,\n `one-basic`\n ],\n branch: \"main\"\n },\n ...BasicTemplateSteps\n },\n {\n title: `Takeout`,\n value: \"Takeout\",\n description: \"One, Tamagui, Zero, Better Auth\",\n type: \"external-repo\",\n hidden: false,\n repo: {\n url: `https://github.com/tamagui/takeout2.git`,\n sshFallback: `git@github.com:tamagui/takeout2.git`,\n dir: [],\n branch: \"main\"\n },\n ...BasicTemplateSteps\n }\n];\n//# sourceMappingURL=templates.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO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AO;CACP,OAAO;CACP,aAAa;CACb,MAAM;CACN,QAAQ;CACR,MAAM;EACJ,KAAK;EACL,aAAa;EACb,KAAK,CAAC;EACN,QAAQ;CACV;CACA,GAAG;AACL,CACF"}
@@ -1,6 +1,6 @@
1
1
  import ansis from "ansis";
2
2
  import FSExtra from "fs-extra";
3
- import { exec, execSync } from "node:child_process";
3
+ import { execSync } from "node:child_process";
4
4
  import fs from "node:fs";
5
5
  import path from "node:path";
6
6
  import { promisify } from "node:util";
@@ -47,15 +47,6 @@ async function create(args) {
47
47
  }
48
48
  console.info();
49
49
  let template = await getTemplateInfo(args.template);
50
- if (template.type === "external-link") {
51
- const url = template.externalUrl;
52
- console.info();
53
- console.info(ansis.green(`Opening ${url}...`));
54
- console.info();
55
- const openCmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
56
- exec(`${openCmd} ${url}`);
57
- process.exit(0);
58
- }
59
50
  const { valid, problems } = validateNpmName(projectName);
60
51
  if (!valid) {
61
52
  console.error(`Could not create a project called ${ansis.red(`"${projectName}"`)} because of npm naming restrictions:`);
@@ -82,22 +73,6 @@ async function create(args) {
82
73
  interval: 100
83
74
  }
84
75
  }).start();
85
- await FSExtra.mkdir(resolvedProjectPath);
86
- try {
87
- await cloneStarter(template, resolvedProjectPath);
88
- process.chdir(resolvedProjectPath);
89
- } catch (e) {
90
- console.error(`[vxrn] Failed to copy example into ${resolvedProjectPath}
91
-
92
- `, e);
93
- process.exit(1);
94
- }
95
- spinner.stop();
96
- console.info();
97
- console.info();
98
- console.info(ansis.green(`${projectName} created!`));
99
- console.info();
100
- console.info();
101
76
  const packageJson = await (async () => {
102
77
  const errorMessages = [];
103
78
  try {
@@ -122,6 +97,22 @@ async function create(args) {
122
97
  throw e;
123
98
  }
124
99
  })();
100
+ await FSExtra.mkdir(resolvedProjectPath);
101
+ try {
102
+ await cloneStarter(template, resolvedProjectPath);
103
+ process.chdir(resolvedProjectPath);
104
+ } catch (e) {
105
+ console.error(`[vxrn] Failed to copy example into ${resolvedProjectPath}
106
+
107
+ `, e);
108
+ process.exit(1);
109
+ }
110
+ spinner.stop();
111
+ console.info();
112
+ console.info();
113
+ console.info(ansis.green(`${projectName} created!`));
114
+ console.info();
115
+ console.info();
125
116
  updatePackageJsonName(projectName, resolvedProjectPath);
126
117
  updatePackageJsonVersions(packageJson.version, resolvedProjectPath);
127
118
  updateAppJsonName(projectName, resolvedProjectPath);
@@ -130,7 +121,7 @@ async function create(args) {
130
121
  return template.packageManager;
131
122
  }
132
123
  const found = await detectPackageManager();
133
- const allFound = Object.keys(found);
124
+ const allFound = Object.keys(found).filter((x) => found[x]);
134
125
  if (allFound.length === 1) {
135
126
  return allFound[0];
136
127
  }
@@ -138,7 +129,7 @@ async function create(args) {
138
129
  name: "packageManager",
139
130
  type: "select",
140
131
  message: `Package Manager:`,
141
- choices: allFound.filter((x) => found[x]).map((name) => ({
132
+ choices: allFound.map((name) => ({
142
133
  title: name,
143
134
  value: name
144
135
  }))
@@ -191,7 +182,7 @@ function updatePackageJsonVersions(version, dir) {
191
182
  const packageJsonPath = path.join(dir, "package.json");
192
183
  if (existsSync(packageJsonPath)) {
193
184
  const content = readFileSync(packageJsonPath).toString();
194
- const contentWithUpdatedVersions = content.replace(/"workspace:\^"/gm, `"^${version}"`).replace(/"workspace:~"/gm, `"~${version}"`).replace(/"workspace:\*"/gm, `"^${version}"`);
185
+ const contentWithUpdatedVersions = content.replace(/"workspace:(?:\^|~|\*)"/gm, `"${version}"`);
195
186
  writeFileSync(packageJsonPath, contentWithUpdatedVersions);
196
187
  }
197
188
  }