create-vxrn 1.14.4 → 1.14.5

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 (82) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/dist/cjs/create.cjs +156 -93
  3. package/dist/cjs/create.native.js +165 -102
  4. package/dist/cjs/create.native.js.map +1 -1
  5. package/dist/cjs/helpers/cloneStarter.cjs +77 -45
  6. package/dist/cjs/helpers/cloneStarter.native.js +79 -47
  7. package/dist/cjs/helpers/cloneStarter.native.js.map +1 -1
  8. package/dist/cjs/helpers/getProjectName.cjs +61 -40
  9. package/dist/cjs/helpers/getProjectName.native.js +67 -46
  10. package/dist/cjs/helpers/getProjectName.native.js.map +1 -1
  11. package/dist/cjs/helpers/getTemplateInfo.cjs +50 -35
  12. package/dist/cjs/helpers/getTemplateInfo.native.js +59 -44
  13. package/dist/cjs/helpers/getTemplateInfo.native.js.map +1 -1
  14. package/dist/cjs/helpers/installDependencies.cjs +16 -12
  15. package/dist/cjs/helpers/installDependencies.native.js +19 -15
  16. package/dist/cjs/helpers/installDependencies.native.js.map +1 -1
  17. package/dist/cjs/helpers/validateNpmPackage.cjs +31 -26
  18. package/dist/cjs/helpers/validateNpmPackage.native.js +31 -26
  19. package/dist/cjs/helpers/validateNpmPackage.native.js.map +1 -1
  20. package/dist/cjs/index.cjs +39 -25
  21. package/dist/cjs/index.native.js +39 -26
  22. package/dist/cjs/index.native.js.map +1 -1
  23. package/dist/cjs/steps/bare.cjs +53 -32
  24. package/dist/cjs/steps/bare.native.js +75 -52
  25. package/dist/cjs/steps/bare.native.js.map +1 -1
  26. package/dist/cjs/steps/fullstack.cjs +37 -32
  27. package/dist/cjs/steps/fullstack.native.js +42 -37
  28. package/dist/cjs/steps/fullstack.native.js.map +1 -1
  29. package/dist/cjs/steps/one.cjs +65 -47
  30. package/dist/cjs/steps/one.native.js +70 -52
  31. package/dist/cjs/steps/one.native.js.map +1 -1
  32. package/dist/cjs/steps/types.cjs +7 -5
  33. package/dist/cjs/steps/types.native.js +7 -5
  34. package/dist/cjs/steps/types.native.js.map +1 -1
  35. package/dist/cjs/templates.cjs +35 -33
  36. package/dist/cjs/templates.native.js +59 -57
  37. package/dist/cjs/templates.native.js.map +1 -1
  38. package/dist/esm/create.mjs +112 -51
  39. package/dist/esm/create.mjs.map +1 -1
  40. package/dist/esm/create.native.js +127 -66
  41. package/dist/esm/create.native.js.map +1 -1
  42. package/dist/esm/helpers/cloneStarter.mjs +60 -30
  43. package/dist/esm/helpers/cloneStarter.mjs.map +1 -1
  44. package/dist/esm/helpers/cloneStarter.native.js +62 -32
  45. package/dist/esm/helpers/cloneStarter.native.js.map +1 -1
  46. package/dist/esm/helpers/getProjectName.mjs +33 -14
  47. package/dist/esm/helpers/getProjectName.mjs.map +1 -1
  48. package/dist/esm/helpers/getProjectName.native.js +33 -14
  49. package/dist/esm/helpers/getProjectName.native.js.map +1 -1
  50. package/dist/esm/helpers/getTemplateInfo.mjs +24 -11
  51. package/dist/esm/helpers/getTemplateInfo.mjs.map +1 -1
  52. package/dist/esm/helpers/getTemplateInfo.native.js +32 -19
  53. package/dist/esm/helpers/getTemplateInfo.native.js.map +1 -1
  54. package/dist/esm/helpers/installDependencies.mjs +4 -2
  55. package/dist/esm/helpers/installDependencies.mjs.map +1 -1
  56. package/dist/esm/helpers/installDependencies.native.js +7 -5
  57. package/dist/esm/helpers/installDependencies.native.js.map +1 -1
  58. package/dist/esm/helpers/validateNpmPackage.mjs +7 -4
  59. package/dist/esm/helpers/validateNpmPackage.mjs.map +1 -1
  60. package/dist/esm/helpers/validateNpmPackage.native.js +7 -4
  61. package/dist/esm/helpers/validateNpmPackage.native.js.map +1 -1
  62. package/dist/esm/index.js +22 -10
  63. package/dist/esm/index.js.map +1 -1
  64. package/dist/esm/index.mjs +22 -10
  65. package/dist/esm/index.mjs.map +1 -1
  66. package/dist/esm/index.native.js +22 -11
  67. package/dist/esm/index.native.js.map +1 -1
  68. package/dist/esm/steps/bare.mjs +26 -7
  69. package/dist/esm/steps/bare.mjs.map +1 -1
  70. package/dist/esm/steps/bare.native.js +48 -27
  71. package/dist/esm/steps/bare.native.js.map +1 -1
  72. package/dist/esm/steps/fullstack.mjs +13 -10
  73. package/dist/esm/steps/fullstack.mjs.map +1 -1
  74. package/dist/esm/steps/fullstack.native.js +17 -14
  75. package/dist/esm/steps/fullstack.native.js.map +1 -1
  76. package/dist/esm/steps/one.mjs +37 -21
  77. package/dist/esm/steps/one.mjs.map +1 -1
  78. package/dist/esm/steps/one.native.js +41 -25
  79. package/dist/esm/steps/one.native.js.map +1 -1
  80. package/dist/esm/templates.mjs +11 -11
  81. package/dist/esm/templates.native.js +11 -11
  82. package/package.json +3 -3
@@ -2,42 +2,44 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: true
30
+ }) : target, mod));
31
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: true
33
+ }), mod);
32
34
  var bare_exports = {};
33
35
  __export(bare_exports, {
34
36
  default: () => bare_default,
35
37
  replaceNameInUTF8File: () => replaceNameInUTF8File
36
38
  });
37
39
  module.exports = __toCommonJS(bare_exports);
38
- var import_ansis = __toESM(require("ansis")),
39
- import_fs_extra = __toESM(require("fs-extra")),
40
- import_node_path = require("node:path");
40
+ var import_ansis = __toESM(require("ansis"));
41
+ var import_fs_extra = __toESM(require("fs-extra"));
42
+ var import_node_path = require("node:path");
41
43
  function shouldIgnoreFile(filePath) {
42
44
  return filePath.match(/node_modules|yarn.lock|package-lock.json/g);
43
45
  }
@@ -49,22 +51,40 @@ async function renameFile(filePath, oldName, newName) {
49
51
  await import_fs_extra.default.rename(filePath, newFileName);
50
52
  }
51
53
  function walk(current) {
52
- if (!import_fs_extra.default.lstatSync(current).isDirectory()) return [current];
54
+ if (!import_fs_extra.default.lstatSync(current).isDirectory()) {
55
+ return [current];
56
+ }
53
57
  const files = import_fs_extra.default.readdirSync(current).map(child => walk((0, import_node_path.join)(current, child)));
54
- return [].concat.apply([current], files);
58
+ const result = [];
59
+ return result.concat.apply([current], files);
55
60
  }
56
61
  async function replaceNameInUTF8File(filePath, projectName, templateName) {
57
- const fileContent = await import_fs_extra.default.readFile(filePath, "utf8"),
58
- replacedFileContent = fileContent.replace(new RegExp(templateName, "g"), projectName).replace(new RegExp(templateName.toLowerCase(), "g"), projectName.toLowerCase());
59
- fileContent !== replacedFileContent && (await import_fs_extra.default.writeFile(filePath, replacedFileContent, "utf8"));
62
+ const fileContent = await import_fs_extra.default.readFile(filePath, "utf8");
63
+ const replacedFileContent = fileContent.replace(new RegExp(templateName, "g"), projectName).replace(new RegExp(templateName.toLowerCase(), "g"), projectName.toLowerCase());
64
+ if (fileContent !== replacedFileContent) {
65
+ await import_fs_extra.default.writeFile(filePath, replacedFileContent, "utf8");
66
+ }
60
67
  }
61
68
  const main = async ({
62
69
  isFullClone,
63
70
  projectName
64
71
  }) => {
65
72
  const placeholderName = "bare";
66
- for (const filePath of walk(process.cwd()).reverse()) shouldIgnoreFile(filePath) || ((await import_fs_extra.default.stat(filePath)).isDirectory() || (await replaceNameInUTF8File(filePath, projectName, "bare")), shouldRenameFile(filePath, placeholderName) ? await renameFile(filePath, placeholderName, projectName) : shouldRenameFile(filePath, placeholderName.toLowerCase()) && (await renameFile(filePath, placeholderName.toLowerCase(), projectName.toLowerCase())));
67
- isFullClone && console.info(`
73
+ for (const filePath of walk(process.cwd()).reverse()) {
74
+ if (shouldIgnoreFile(filePath)) {
75
+ continue;
76
+ }
77
+ if (!(await import_fs_extra.default.stat(filePath)).isDirectory()) {
78
+ await replaceNameInUTF8File(filePath, projectName, "bare");
79
+ }
80
+ if (shouldRenameFile(filePath, placeholderName)) {
81
+ await renameFile(filePath, placeholderName, projectName);
82
+ } else if (shouldRenameFile(filePath, placeholderName.toLowerCase())) {
83
+ await renameFile(filePath, placeholderName.toLowerCase(), projectName.toLowerCase());
84
+ }
85
+ }
86
+ if (isFullClone) {
87
+ console.info(`
68
88
  ${import_ansis.default.green.bold("Done!")} Created a new project under ./${import_ansis.default.greenBright(projectName)} visit your project:
69
89
  \u2022 ${import_ansis.default.green("cd")} ${projectName}
70
90
 
@@ -84,5 +104,6 @@ ${import_ansis.default.blue(`Run instructions for ${import_ansis.default.bold("i
84
104
  \u2022 Hit the Run button
85
105
 
86
106
  `);
107
+ }
87
108
  };
88
109
  var bare_default = main;
@@ -4,42 +4,44 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
34
36
  var bare_exports = {};
35
37
  __export(bare_exports, {
36
38
  default: () => bare_default,
37
39
  replaceNameInUTF8File: () => replaceNameInUTF8File
38
40
  });
39
41
  module.exports = __toCommonJS(bare_exports);
40
- var import_ansis = __toESM(require("ansis")),
41
- import_fs_extra = __toESM(require("fs-extra")),
42
- import_path = require("path");
42
+ var import_ansis = __toESM(require("ansis"));
43
+ var import_fs_extra = __toESM(require("fs-extra"));
44
+ var import_path = require("path");
43
45
  function shouldIgnoreFile(filePath) {
44
46
  return filePath.match(/node_modules|yarn.lock|package-lock.json/g);
45
47
  }
@@ -51,42 +53,62 @@ async function renameFile(filePath, oldName, newName) {
51
53
  await import_fs_extra.default.rename(filePath, newFileName);
52
54
  }
53
55
  function walk(current) {
54
- if (!import_fs_extra.default.lstatSync(current).isDirectory()) return [current];
56
+ if (!import_fs_extra.default.lstatSync(current).isDirectory()) {
57
+ return [current];
58
+ }
55
59
  var files = import_fs_extra.default.readdirSync(current).map(function (child) {
56
- return walk((0, import_path.join)(current, child));
57
- }),
58
- result = [];
60
+ return walk((0, import_path.join)(current, child));
61
+ });
62
+ var result = [];
59
63
  return result.concat.apply([current], files);
60
64
  }
61
65
  async function replaceNameInUTF8File(filePath, projectName, templateName) {
62
- var fileContent = await import_fs_extra.default.readFile(filePath, "utf8"),
63
- replacedFileContent = fileContent.replace(new RegExp(templateName, "g"), projectName).replace(new RegExp(templateName.toLowerCase(), "g"), projectName.toLowerCase());
64
- fileContent !== replacedFileContent && (await import_fs_extra.default.writeFile(filePath, replacedFileContent, "utf8"));
66
+ var fileContent = await import_fs_extra.default.readFile(filePath, "utf8");
67
+ var replacedFileContent = fileContent.replace(new RegExp(templateName, "g"), projectName).replace(new RegExp(templateName.toLowerCase(), "g"), projectName.toLowerCase());
68
+ if (fileContent !== replacedFileContent) {
69
+ await import_fs_extra.default.writeFile(filePath, replacedFileContent, "utf8");
70
+ }
65
71
  }
66
72
  var main = async function (param) {
67
- var {
68
- isFullClone,
69
- projectName
70
- } = param,
71
- placeholderName = "bare",
72
- _iteratorNormalCompletion = !0,
73
- _didIteratorError = !1,
74
- _iteratorError = void 0;
73
+ var {
74
+ isFullClone,
75
+ projectName
76
+ } = param;
77
+ var placeholderName = "bare";
78
+ var _iteratorNormalCompletion = true,
79
+ _didIteratorError = false,
80
+ _iteratorError = void 0;
81
+ try {
82
+ for (var _iterator = walk(process.cwd()).reverse()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
83
+ var filePath = _step.value;
84
+ if (shouldIgnoreFile(filePath)) {
85
+ continue;
86
+ }
87
+ if (!(await import_fs_extra.default.stat(filePath)).isDirectory()) {
88
+ await replaceNameInUTF8File(filePath, projectName, "bare");
89
+ }
90
+ if (shouldRenameFile(filePath, placeholderName)) {
91
+ await renameFile(filePath, placeholderName, projectName);
92
+ } else if (shouldRenameFile(filePath, placeholderName.toLowerCase())) {
93
+ await renameFile(filePath, placeholderName.toLowerCase(), projectName.toLowerCase());
94
+ }
95
+ }
96
+ } catch (err) {
97
+ _didIteratorError = true;
98
+ _iteratorError = err;
99
+ } finally {
75
100
  try {
76
- for (var _iterator = walk(process.cwd()).reverse()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
77
- var filePath = _step.value;
78
- shouldIgnoreFile(filePath) || ((await import_fs_extra.default.stat(filePath)).isDirectory() || (await replaceNameInUTF8File(filePath, projectName, "bare")), shouldRenameFile(filePath, placeholderName) ? await renameFile(filePath, placeholderName, projectName) : shouldRenameFile(filePath, placeholderName.toLowerCase()) && (await renameFile(filePath, placeholderName.toLowerCase(), projectName.toLowerCase())));
101
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
102
+ _iterator.return();
79
103
  }
80
- } catch (err) {
81
- _didIteratorError = !0, _iteratorError = err;
82
104
  } finally {
83
- try {
84
- !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
85
- } finally {
86
- if (_didIteratorError) throw _iteratorError;
105
+ if (_didIteratorError) {
106
+ throw _iteratorError;
87
107
  }
88
108
  }
89
- isFullClone && console.info(`
109
+ }
110
+ if (isFullClone) {
111
+ console.info(`
90
112
  ${import_ansis.default.green.bold("Done!")} Created a new project under ./${import_ansis.default.greenBright(projectName)} visit your project:
91
113
  \u2022 ${import_ansis.default.green("cd")} ${projectName}
92
114
 
@@ -106,6 +128,7 @@ ${import_ansis.default.blue(`Run instructions for ${import_ansis.default.bold("i
106
128
  \u2022 Hit the Run button
107
129
 
108
130
  `);
109
- },
110
- bare_default = main;
131
+ }
132
+ };
133
+ var bare_default = main;
111
134
  //# sourceMappingURL=bare.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","bare_exports","__export","default","bare_default","replaceNameInUTF8File","module","exports","import_ansis","__toESM","require","import_fs_extra","import_path","shouldIgnoreFile","filePath","match","shouldRenameFile","nameToReplace","basename","includes","renameFile","oldName","newName","newFileName","join","dirname","replace","RegExp","rename","walk","current","lstatSync","isDirectory","files","readdirSync","map","child","result","concat","apply","projectName","templateName","fileContent","readFile","replacedFileContent","toLowerCase","writeFile","main","param","isFullClone","placeholderName","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","process","cwd","reverse","Symbol","iterator","_step","next","done","stat","err","return","console","info","green","bold","greenBright"],"sources":["../../../src/steps/bare.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,YAAA;AAAAC,QAAA,CAAAD,YAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC,YAAA;EAAAC,qBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAX,YAAkB,CAAAK,YAAA;AAKlB,IAAAO,YAAS,GAAAC,OAAiB,CAAAC,OAAA,QAAkB;EAAAC,eAAA,GAAAF,OAAA,CAAAC,OAAA;EAAAE,WAAA,GAAAF,OAAA;AAC1C,SAAOG,gBAAeA,CAAAC,QAAA;EACxB,OAAAA,QAAA,CAAAC,KAAA;AAEA;AACE,SAAAC,gBAAOA,CAAAF,QAAA,EAAAG,aAAiB,EAAE;EAC5B,WAAAL,WAAA,CAAAM,QAAA,EAAAJ,QAAA,EAAAK,QAAA,CAAAF,aAAA;AAEA;AACE,eAAMG,WAAcN,QAAA,EAAAO,OAAA,EAAAC,OAAA;EAAA,IAAAC,WAClB,OAAAX,WAAQ,CAAAY,IAAA,EAAQ,IAAAZ,WAAA,CAAAa,OAAA,EAAAX,QAAA,OAAAF,WAAA,CAAAM,QAAA,EAAAJ,QAAA,EAAAY,OAAA,KAAAC,MAAA,CAAAN,OAAA,QAAAC,OAAA;EAAA,MAChBX,eAAA,CAAAR,OAAA,CAAAyB,MAAS,CAAAd,QAAU,EAAAS,WAAY;AAA6B;AAG9D,SAAMM,KAAAC,OAAA;EACR,KAAAnB,eAAA,CAAAR,OAAA,CAAA4B,SAAA,CAAAD,OAAA,EAAAE,WAAA,IAEA,OAAS,CACHF,OAAC,CACH;EAGF,IAAAG,KAAM,GAAAtB,eAA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AAAxB,gBAAA,CAAAF,QAAA,EAAAoC,eAAA,UAAA9B,UAAA,CAAAN,QAAA,EAAAoC,eAAA,EAAAV,WAAA,IAAAxB,gBAAA,CAAAF,QAAA,EAAAoC,eAAA,CAAAL,WAAA,cAAAzB,UAAA,CAAAN,QAAA,EAAAoC,eAAA,CAAAL,WAAA,IAAAL,WAAA,CAAAK,WAAA;MAAA;IAAA,SAAAmB,GAAA;MAI7DZ,iBAAA,GAAM,IAAKC,cAAA,GAAAW,GAAA;IAA6C;MAAA;QAAA,CAAAb,yBAAA,IAAAG,SAAA,CAAAW,MAAA,YAAAX,SAAA,CAAAW,MAAA;MAAA;QAAA,IAAAb,iBAAA,QAAAC,cAAA;MAOtD;IAAoB;IACiBJ,WAAA,IAAAiB,OAAA,CAAAC,IAAA;AAAA,EAAA3D,YAAA,CAAAL,OAAA,CAAAiE,KAAA,CAAAC,IAAA,2CAAA7D,YAAA,CAAAL,OAAA,CAAAmE,WAAA,CAAA9B,WAAA;AAAA,WAGxChC,YAAA,CAAAL,OAAA,CAAAiE,KAAA,UAAA5B,WAAA;AAED;AAEA,EAAAhC,YAAO,CAAAL,OAAQ,CAAAiE,KAAA,yBAAA5D,YAAA,CAAAL,OAAA,CAAAkE,IAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","bare_exports","__export","default","bare_default","replaceNameInUTF8File","module","exports","import_ansis","__toESM","require","import_fs_extra","import_path","shouldIgnoreFile","filePath","match","shouldRenameFile","nameToReplace","basename","includes","renameFile","oldName","newName","newFileName","join","dirname","replace","RegExp","rename","walk","current","lstatSync","isDirectory","files","readdirSync","map","child","result","concat","apply","projectName","templateName","fileContent","readFile","replacedFileContent","toLowerCase","writeFile","main","param","isFullClone","placeholderName","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","process","cwd","reverse","Symbol","iterator","_step","next","done","stat","err","return","console","info"],"sources":["../../../src/steps/bare.ts"],"sourcesContent":[null],"mappings":";;;;;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B,gBAAM,CAAAF,QAAW,EAAAoC,eAAQ;QAAgE,MACrF9B,UAAA,CAAAN,QAAM,EAAAoC,eAAe,EAAAV,WAAW;MAAA,WAAAxB,gBAAA,CAAAF,QAAA,EAAAoC,eAAA,CAAAL,WAAA;QAEpC,MAAAzB,UAAM,CAAAN,QAAM,EAAAoC,eAAA,CAAAL,WAAwB,IAAAL,WAAM,CAAAK,WAAe,GAAG;MAAC;IAAA;EAAA,SAAAmB,GAAA;IAI7DZ,iBAAA,GAAM,IAAK;IAA6CC,cAAA,GAAAW,GAAA;EAAA;IAAA;MAAA,KAAAb,yBAAA,IAAAG,SAAA,CAAAW,MAAA;QAAAX,SAAA,CAAAW,MAAA;MAAA;IAOtD;MAAoB,IAAAb,iBACF;QAAmB,MAAAC,cAAA;MAAA;IAGxC;EACC;EACF,IAAAJ,WAAA;IAEOiB,OAAA,CAAAC,IAAA","ignoreList":[]}
@@ -2,51 +2,56 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf,
6
- __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
- value: mod,
27
- enumerable: !0
28
- }) : target, mod)),
29
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
- value: !0
31
- }), mod);
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
+ value: mod,
29
+ enumerable: true
30
+ }) : target, mod));
31
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
+ value: true
33
+ }), mod);
32
34
  var fullstack_exports = {};
33
35
  __export(fullstack_exports, {
34
36
  default: () => fullstack_default
35
37
  });
36
38
  module.exports = __toCommonJS(fullstack_exports);
37
39
  var import_ansis = __toESM(require("ansis"));
38
- const packageManager = "yarn",
39
- useYarn = packageManager === "yarn",
40
- runCommand = scriptName => `${packageManager} ${useYarn ? "" : "run "}${scriptName}`,
41
- main = async ({
42
- isFullClone,
43
- projectName
44
- }) => {
45
- isFullClone && console.info(`
40
+ const packageManager = "yarn";
41
+ const useYarn = packageManager === "yarn";
42
+ const runCommand = scriptName => `${packageManager} ${useYarn ? "" : "run "}${scriptName}`;
43
+ const main = async ({
44
+ isFullClone,
45
+ projectName
46
+ }) => {
47
+ if (isFullClone) {
48
+ console.info(`
46
49
  ${import_ansis.default.green.bold("Done!")} Created a new project under ./${import_ansis.default.greenBright(projectName)} visit your project:
47
50
  \u2022 ${import_ansis.default.green("cd")} ${projectName}
48
- `), console.info(`
51
+ `);
52
+ }
53
+ console.info(`
49
54
  To start the dev server, run: ${import_ansis.default.green(runCommand("dev"))}
50
55
  `);
51
- };
56
+ };
52
57
  var fullstack_default = main;
@@ -4,55 +4,60 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
34
36
  var fullstack_exports = {};
35
37
  __export(fullstack_exports, {
36
38
  default: () => fullstack_default
37
39
  });
38
40
  module.exports = __toCommonJS(fullstack_exports);
39
- var import_ansis = __toESM(require("ansis")),
40
- packageManager = "yarn",
41
- useYarn = packageManager === "yarn",
42
- runCommand = function (scriptName) {
43
- return `${packageManager} ${useYarn ? "" : "run "}${scriptName}`;
44
- },
45
- main = async function (param) {
46
- var {
47
- isFullClone,
48
- projectName
49
- } = param;
50
- isFullClone && console.info(`
41
+ var import_ansis = __toESM(require("ansis"));
42
+ var packageManager = "yarn";
43
+ var useYarn = packageManager === "yarn";
44
+ var runCommand = function (scriptName) {
45
+ return `${packageManager} ${useYarn ? "" : "run "}${scriptName}`;
46
+ };
47
+ var main = async function (param) {
48
+ var {
49
+ isFullClone,
50
+ projectName
51
+ } = param;
52
+ if (isFullClone) {
53
+ console.info(`
51
54
  ${import_ansis.default.green.bold("Done!")} Created a new project under ./${import_ansis.default.greenBright(projectName)} visit your project:
52
55
  \u2022 ${import_ansis.default.green("cd")} ${projectName}
53
- `), console.info(`
56
+ `);
57
+ }
58
+ console.info(`
54
59
  To start the dev server, run: ${import_ansis.default.green(runCommand("dev"))}
55
60
  `);
56
- },
57
- fullstack_default = main;
61
+ };
62
+ var fullstack_default = main;
58
63
  //# sourceMappingURL=fullstack.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","fullstack_exports","__export","default","fullstack_default","module","exports","import_ansis","__toESM","require","packageManager","useYarn","runCommand","scriptName","main","param","isFullClone","projectName","console","info","green","bold","greenBright"],"sources":["../../../src/steps/fullstack.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAAkB,CAAAK,iBAAA;AAIlB,IAAAM,YAAM,GAAAC,OAAiB,CAAAC,OACjB,QAAU;EAAAC,cAAmB,SAE7B;EAAAC,OAAA,GAAaD,cAAC,KACf;EAAAE,UAAkB,YAAAA,CAAUC,UAAW,EAAG;IAGzC,UAAAH,cACM,IAAKC,OAAA,iBAAAE,UAAA;EAAA;EACfC,IAAA,kBAAAA,CAAMC,KAAM;IAA6E;MAAAC,WACtF;MAAAC;IAAM,IAAMF,KAAK;IACrBC,WAES,IAAKE,OAAA,CAAAC,IAAA;AAAA,EAAAZ,YAAA,CAAAJ,OAAA,CAAAiB,KAAA,CAAAC,IACiB,2CAA6Bd,YAAC,CAAAJ,OAAA,CAAAmB,WAAA,CAAAL,WAAA;AAAA,UAC7DV,YAAA,CAAAJ,OAAA,CAAAiB,KAAA,UAAAH,WAAA;AACD,IAAAC,OAAA,CAAAC,IAAA;AAEA,gCAAeZ,YAAA,CAAAJ,OAAA,CAAAiB,KAAA,CAAAR,UAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","fullstack_exports","__export","default","fullstack_default","module","exports","import_ansis","__toESM","require","packageManager","useYarn","runCommand","scriptName","main","param","isFullClone","projectName","console","info","green","bold","greenBright"],"sources":["../../../src/steps/fullstack.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAV,YAAkB,CAAAK,iBAAA;AAIlB,IAAAM,YAAM,GAAAC,OAAiB,CAAAC,OAAA;AACvB,IAAAC,cAAgB;AAEhB,IAAAC,OAAM,GAAAD,cAAc,WACf;AAEL,IAAAE,UAAyB,YAAAA,CAASC,UAAa;EAC7C,OAAI,GAAAH,cAAa,IAAAC,OAAA,iBAAAE,UAAA;AACf;AAAa,IACfC,IAAA,kBAAAA,CAAMC,KAAM;EAA6E;IAAAC,WACtF;IAAAC;EAAM,IAAMF,KAAK;EACrB,IAAAC,WAAA;IACCE,OAAA,CAAAC,IAAA;AACA,EAAAZ,YAAQ,CAAKJ,OAAA,CAAAiB,KAAA,CAAAC,IAAA,2CAAAd,YAAA,CAAAJ,OAAA,CAAAmB,WAAA,CAAAL,WAAA;AAAA,UAAAV,YAAA,CAAAJ,OAAA,CAAAiB,KACiB,UAAAH,WAAM;AAAwB,CAC7D;EACD;EAEAC,OAAO,CAAAC,IAAA","ignoreList":[]}