one 2.0.0-beta.82.1 → 2.0.0-beta.97.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.
- package/dist/cjs/cli/runAndroid.cjs +8 -1
- package/dist/cjs/cli/runAndroid.native.cjs +8 -1
- package/dist/cjs/cli/runAndroid.native.js +8 -1
- package/dist/cjs/cli/runAndroid.native.js.map +1 -1
- package/dist/cjs/cli/runIos.cjs +14 -3
- package/dist/cjs/cli/runIos.native.cjs +15 -3
- package/dist/cjs/cli/runIos.native.js +15 -3
- package/dist/cjs/cli/runIos.native.js.map +1 -1
- package/dist/cjs/cli.cjs +10 -1
- package/dist/cjs/cli.native.cjs +10 -1
- package/dist/cjs/cli.native.js +10 -1
- package/dist/cjs/cli.native.js.map +1 -1
- package/dist/cjs/{import-mode/index.native.js → head/Head.android.js} +9 -5
- package/dist/cjs/head/Head.android.js.map +1 -0
- package/dist/cjs/head/Head.ios.js +271 -0
- package/dist/cjs/head/Head.ios.js.map +1 -0
- package/dist/cjs/head/index.native.cjs +1 -1
- package/dist/cjs/head/index.native.js +1 -1
- package/dist/cjs/head/index.native.js.map +1 -1
- package/dist/cjs/one.cjs +11 -1
- package/dist/cjs/one.native.cjs +11 -1
- package/dist/cjs/one.native.js +11 -1
- package/dist/cjs/one.native.js.map +1 -1
- package/dist/cjs/router/interceptRoutes.cjs +2 -1
- package/dist/cjs/router/interceptRoutes.native.cjs +2 -1
- package/dist/cjs/router/interceptRoutes.native.js +2 -1
- package/dist/cjs/router/interceptRoutes.native.js.map +1 -1
- package/dist/cjs/vite/one.cjs +56 -55
- package/dist/cjs/vite/one.native.cjs +90 -87
- package/dist/cjs/vite/one.native.js +90 -87
- package/dist/cjs/vite/one.native.js.map +1 -1
- package/dist/esm/cli/runAndroid.mjs +8 -1
- package/dist/esm/cli/runAndroid.mjs.map +1 -1
- package/dist/esm/cli/runAndroid.native.js +8 -1
- package/dist/esm/cli/runAndroid.native.js.map +1 -1
- package/dist/esm/cli/runIos.mjs +14 -3
- package/dist/esm/cli/runIos.mjs.map +1 -1
- package/dist/esm/cli/runIos.native.js +15 -3
- package/dist/esm/cli/runIos.native.js.map +1 -1
- package/dist/esm/cli.mjs +10 -1
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +10 -1
- package/dist/esm/cli.native.js.map +1 -1
- package/dist/esm/head/Head.android.js +9 -0
- package/dist/esm/head/Head.android.js.map +1 -0
- package/dist/esm/head/Head.ios.js +242 -0
- package/dist/esm/head/Head.ios.js.map +1 -0
- package/dist/esm/head/index.native.js +1 -1
- package/dist/esm/one.mjs +12 -2
- package/dist/esm/one.mjs.map +1 -1
- package/dist/esm/one.native.js +12 -2
- package/dist/esm/one.native.js.map +1 -1
- package/dist/esm/router/interceptRoutes.mjs +2 -1
- package/dist/esm/router/interceptRoutes.mjs.map +1 -1
- package/dist/esm/router/interceptRoutes.native.js +2 -1
- package/dist/esm/router/interceptRoutes.native.js.map +1 -1
- package/dist/esm/vite/one.mjs +56 -55
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +90 -87
- package/dist/esm/vite/one.native.js.map +1 -1
- package/package.json +13 -13
- package/src/cli/runAndroid.test.ts +72 -0
- package/src/cli/runAndroid.ts +12 -1
- package/src/cli/runIos.test.ts +122 -0
- package/src/cli/runIos.ts +23 -4
- package/src/cli.ts +10 -1
- package/src/layouts/stack-utils/README.md +50 -34
- package/src/native/appManifest.test.ts +9 -0
- package/src/one.ts +38 -1
- package/src/polyfills-mobile.ts +1 -1
- package/src/router/interceptRoutes.test.ts +67 -0
- package/src/router/interceptRoutes.ts +4 -1
- package/src/vite/one.ts +78 -78
- package/types/cli/runAndroid.d.ts.map +1 -1
- package/types/cli/runIos.d.ts +4 -1
- package/types/cli/runIos.d.ts.map +1 -1
- package/types/one.d.ts +13 -2
- package/types/one.d.ts.map +1 -1
- package/types/router/interceptRoutes.d.ts.map +1 -1
- package/dist/cjs/import-mode/index.android.cjs +0 -27
- package/dist/cjs/import-mode/index.cjs +0 -24
- package/dist/cjs/import-mode/index.ios.cjs +0 -27
- package/dist/cjs/import-mode/index.native.cjs +0 -26
- package/dist/cjs/import-mode/index.native.js.map +0 -1
- package/dist/esm/import-mode/index.mjs +0 -4
- package/dist/esm/import-mode/index.mjs.map +0 -1
- package/dist/esm/import-mode/index.native.js +0 -4
- package/dist/esm/import-mode/index.native.js.map +0 -1
- package/src/import-mode/index.android.ts +0 -1
- package/src/import-mode/index.ios.ts +0 -1
- package/src/import-mode/index.native.ts +0 -3
- package/src/import-mode/index.ts +0 -1
- package/src/import-mode/index.web.ts +0 -1
- package/types/import-mode/index.android.d.ts +0 -3
- package/types/import-mode/index.android.d.ts.map +0 -1
- package/types/import-mode/index.d.ts +0 -3
- package/types/import-mode/index.d.ts.map +0 -1
- package/types/import-mode/index.ios.d.ts +0 -3
- package/types/import-mode/index.ios.d.ts.map +0 -1
- package/types/import-mode/index.native.d.ts +0 -3
- package/types/import-mode/index.native.d.ts.map +0 -1
- package/types/import-mode/index.web.d.ts +0 -3
- package/types/import-mode/index.web.d.ts.map +0 -1
|
@@ -27,12 +27,19 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
27
27
|
var runAndroid_exports = {};
|
|
28
28
|
__export(runAndroid_exports, { run: () => run });
|
|
29
29
|
module.exports = __toCommonJS(runAndroid_exports);
|
|
30
|
+
var import_node_fs = require("node:fs");
|
|
31
|
+
var import_node_path = require("node:path");
|
|
30
32
|
var import_loadConfig = require("../vite/loadConfig.cjs");
|
|
31
33
|
async function run(args) {
|
|
34
|
+
const root = process.cwd();
|
|
35
|
+
if (!(0, import_node_fs.existsSync)((0, import_node_path.join)(root, "android"))) {
|
|
36
|
+
const { run: prebuildRun } = await import("./prebuild.cjs");
|
|
37
|
+
await prebuildRun({ platform: "android" });
|
|
38
|
+
}
|
|
32
39
|
const { runAndroid } = await import("vxrn");
|
|
33
40
|
const options = await (0, import_loadConfig.loadUserOneOptions)("serve", true).catch(() => null);
|
|
34
41
|
await runAndroid({
|
|
35
|
-
root
|
|
42
|
+
root,
|
|
36
43
|
port: options?.config?.config?.server?.port
|
|
37
44
|
});
|
|
38
45
|
}
|
|
@@ -29,15 +29,22 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
var runAndroid_exports = {};
|
|
30
30
|
__export(runAndroid_exports, { run: () => run });
|
|
31
31
|
module.exports = __toCommonJS(runAndroid_exports);
|
|
32
|
+
var import_fs = require("fs");
|
|
33
|
+
var import_path = require("path");
|
|
32
34
|
var import_loadConfig = require("../vite/loadConfig.native.js");
|
|
33
35
|
async function run(args) {
|
|
34
36
|
var _options_config_config_server, _options_config_config, _options_config;
|
|
37
|
+
var root = process.cwd();
|
|
38
|
+
if (!(0, import_fs.existsSync)((0, import_path.join)(root, "android"))) {
|
|
39
|
+
var { run: prebuildRun } = await import("./prebuild.native.js");
|
|
40
|
+
await prebuildRun({ platform: "android" });
|
|
41
|
+
}
|
|
35
42
|
var { runAndroid } = await import("vxrn");
|
|
36
43
|
var options = await (0, import_loadConfig.loadUserOneOptions)("serve", true).catch(function() {
|
|
37
44
|
return null;
|
|
38
45
|
});
|
|
39
46
|
await runAndroid({
|
|
40
|
-
root
|
|
47
|
+
root,
|
|
41
48
|
port: options === null || options === void 0 ? void 0 : (_options_config = options.config) === null || _options_config === void 0 ? void 0 : (_options_config_config = _options_config.config) === null || _options_config_config === void 0 ? void 0 : (_options_config_config_server = _options_config_config.server) === null || _options_config_config_server === void 0 ? void 0 : _options_config_config_server.port
|
|
42
49
|
});
|
|
43
50
|
}
|
|
@@ -29,15 +29,22 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
var runAndroid_exports = {};
|
|
30
30
|
__export(runAndroid_exports, { run: () => run });
|
|
31
31
|
module.exports = __toCommonJS(runAndroid_exports);
|
|
32
|
+
var import_fs = require("fs");
|
|
33
|
+
var import_path = require("path");
|
|
32
34
|
var import_loadConfig = require("../vite/loadConfig.native.js");
|
|
33
35
|
async function run(args) {
|
|
34
36
|
var _options_config_config_server, _options_config_config, _options_config;
|
|
37
|
+
var root = process.cwd();
|
|
38
|
+
if (!(0, import_fs.existsSync)((0, import_path.join)(root, "android"))) {
|
|
39
|
+
var { run: prebuildRun } = await import("./prebuild.native.js");
|
|
40
|
+
await prebuildRun({ platform: "android" });
|
|
41
|
+
}
|
|
35
42
|
var { runAndroid } = await import("vxrn");
|
|
36
43
|
var options = await (0, import_loadConfig.loadUserOneOptions)("serve", true).catch(function() {
|
|
37
44
|
return null;
|
|
38
45
|
});
|
|
39
46
|
await runAndroid({
|
|
40
|
-
root
|
|
47
|
+
root,
|
|
41
48
|
port: options === null || options === void 0 ? void 0 : (_options_config = options.config) === null || _options_config === void 0 ? void 0 : (_options_config_config = _options_config.config) === null || _options_config_config === void 0 ? void 0 : (_options_config_config_server = _options_config_config.server) === null || _options_config_config_server === void 0 ? void 0 : _options_config_config_server.port
|
|
42
49
|
});
|
|
43
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runAndroid.native.js","names":[],"sources":["cjs/cli/runAndroid.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 runAndroid_exports = {};\n__export(runAndroid_exports, {\n run: () => run\n});\nmodule.exports = __toCommonJS(runAndroid_exports);\nvar import_loadConfig = require(\"../vite/loadConfig\");\nasync function run(args) {\n var _options_config_config_server, _options_config_config, _options_config;\n var { runAndroid } = await import(\"vxrn\");\n var options = await (0, import_loadConfig.loadUserOneOptions)(\"serve\", true).catch(function() {\n return null;\n });\n await runAndroid({\n root
|
|
1
|
+
{"version":3,"file":"runAndroid.native.js","names":[],"sources":["cjs/cli/runAndroid.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 runAndroid_exports = {};\n__export(runAndroid_exports, {\n run: () => run\n});\nmodule.exports = __toCommonJS(runAndroid_exports);\nvar import_fs = require(\"fs\");\nvar import_path = require(\"path\");\nvar import_loadConfig = require(\"../vite/loadConfig\");\nasync function run(args) {\n var _options_config_config_server, _options_config_config, _options_config;\n var root = process.cwd();\n if (!(0, import_fs.existsSync)((0, import_path.join)(root, \"android\"))) {\n var { run: prebuildRun } = await import(\"./prebuild\");\n await prebuildRun({\n platform: \"android\"\n });\n }\n var { runAndroid } = await import(\"vxrn\");\n var options = await (0, import_loadConfig.loadUserOneOptions)(\"serve\", true).catch(function() {\n return null;\n });\n await runAndroid({\n root,\n port: options === null || options === void 0 ? void 0 : (_options_config = options.config) === null || _options_config === void 0 ? void 0 : (_options_config_config = _options_config.config) === null || _options_config_config === void 0 ? void 0 : (_options_config_config_server = _options_config_config.server) === null || _options_config_config_server === void 0 ? void 0 : _options_config_config_server.port\n });\n}\n//# sourceMappingURL=runAndroid.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,C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,yBAAyB,gBAAgB,YAAY,QAAQ,2BAA2B,KAAK,IAAI,KAAK,KAAK,gCAAgC,uBAAuB,YAAY,QAAQ,kCAAkC,KAAK,IAAI,KAAK,IAAI,8BAA8B;CACxZ,CAAC;AACH"}
|
package/dist/cjs/cli/runIos.cjs
CHANGED
|
@@ -27,12 +27,23 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
27
27
|
var runIos_exports = {};
|
|
28
28
|
__export(runIos_exports, { run: () => run });
|
|
29
29
|
module.exports = __toCommonJS(runIos_exports);
|
|
30
|
+
var import_node_fs = require("node:fs");
|
|
31
|
+
var import_node_path = require("node:path");
|
|
30
32
|
var import_loadConfig = require("../vite/loadConfig.cjs");
|
|
31
33
|
async function run(args) {
|
|
32
|
-
const
|
|
34
|
+
const root = process.cwd();
|
|
33
35
|
const options = await (0, import_loadConfig.loadUserOneOptions)("serve", true).catch(() => null);
|
|
36
|
+
const port = options?.config?.config?.server?.port ?? 8081;
|
|
37
|
+
process.env.RCT_METRO_PORT ??= String(port);
|
|
38
|
+
if (!(0, import_node_fs.existsSync)((0, import_node_path.join)(root, "ios"))) {
|
|
39
|
+
const { run: prebuildRun } = await import("./prebuild.cjs");
|
|
40
|
+
await prebuildRun({ platform: "ios" });
|
|
41
|
+
}
|
|
42
|
+
const { runIos } = await import("vxrn");
|
|
34
43
|
await runIos({
|
|
35
|
-
root
|
|
36
|
-
port
|
|
44
|
+
root,
|
|
45
|
+
port,
|
|
46
|
+
simulator: args.simulator,
|
|
47
|
+
udid: args.udid
|
|
37
48
|
});
|
|
38
49
|
}
|
|
@@ -29,15 +29,27 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
var runIos_exports = {};
|
|
30
30
|
__export(runIos_exports, { run: () => run });
|
|
31
31
|
module.exports = __toCommonJS(runIos_exports);
|
|
32
|
+
var import_fs = require("fs");
|
|
33
|
+
var import_path = require("path");
|
|
32
34
|
var import_loadConfig = require("../vite/loadConfig.native.js");
|
|
33
35
|
async function run(args) {
|
|
36
|
+
var _ref, _process_env, _RCT_METRO_PORT;
|
|
34
37
|
var _options_config_config_server, _options_config_config, _options_config;
|
|
35
|
-
var
|
|
38
|
+
var root = process.cwd();
|
|
36
39
|
var options = await (0, import_loadConfig.loadUserOneOptions)("serve", true).catch(function() {
|
|
37
40
|
return null;
|
|
38
41
|
});
|
|
42
|
+
var port = (_ref = options === null || options === void 0 ? void 0 : (_options_config = options.config) === null || _options_config === void 0 ? void 0 : (_options_config_config = _options_config.config) === null || _options_config_config === void 0 ? void 0 : (_options_config_config_server = _options_config_config.server) === null || _options_config_config_server === void 0 ? void 0 : _options_config_config_server.port) !== null && _ref !== void 0 ? _ref : 8081;
|
|
43
|
+
(_RCT_METRO_PORT = (_process_env = process.env).RCT_METRO_PORT) !== null && _RCT_METRO_PORT !== void 0 ? _RCT_METRO_PORT : _process_env.RCT_METRO_PORT = String(port);
|
|
44
|
+
if (!(0, import_fs.existsSync)((0, import_path.join)(root, "ios"))) {
|
|
45
|
+
var { run: prebuildRun } = await import("./prebuild.native.js");
|
|
46
|
+
await prebuildRun({ platform: "ios" });
|
|
47
|
+
}
|
|
48
|
+
var { runIos } = await import("vxrn");
|
|
39
49
|
await runIos({
|
|
40
|
-
root
|
|
41
|
-
port
|
|
50
|
+
root,
|
|
51
|
+
port,
|
|
52
|
+
simulator: args.simulator,
|
|
53
|
+
udid: args.udid
|
|
42
54
|
});
|
|
43
55
|
}
|
|
@@ -29,16 +29,28 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
var runIos_exports = {};
|
|
30
30
|
__export(runIos_exports, { run: () => run });
|
|
31
31
|
module.exports = __toCommonJS(runIos_exports);
|
|
32
|
+
var import_fs = require("fs");
|
|
33
|
+
var import_path = require("path");
|
|
32
34
|
var import_loadConfig = require("../vite/loadConfig.native.js");
|
|
33
35
|
async function run(args) {
|
|
36
|
+
var _ref, _process_env, _RCT_METRO_PORT;
|
|
34
37
|
var _options_config_config_server, _options_config_config, _options_config;
|
|
35
|
-
var
|
|
38
|
+
var root = process.cwd();
|
|
36
39
|
var options = await (0, import_loadConfig.loadUserOneOptions)("serve", true).catch(function() {
|
|
37
40
|
return null;
|
|
38
41
|
});
|
|
42
|
+
var port = (_ref = options === null || options === void 0 ? void 0 : (_options_config = options.config) === null || _options_config === void 0 ? void 0 : (_options_config_config = _options_config.config) === null || _options_config_config === void 0 ? void 0 : (_options_config_config_server = _options_config_config.server) === null || _options_config_config_server === void 0 ? void 0 : _options_config_config_server.port) !== null && _ref !== void 0 ? _ref : 8081;
|
|
43
|
+
(_RCT_METRO_PORT = (_process_env = process.env).RCT_METRO_PORT) !== null && _RCT_METRO_PORT !== void 0 ? _RCT_METRO_PORT : _process_env.RCT_METRO_PORT = String(port);
|
|
44
|
+
if (!(0, import_fs.existsSync)((0, import_path.join)(root, "ios"))) {
|
|
45
|
+
var { run: prebuildRun } = await import("./prebuild.native.js");
|
|
46
|
+
await prebuildRun({ platform: "ios" });
|
|
47
|
+
}
|
|
48
|
+
var { runIos } = await import("vxrn");
|
|
39
49
|
await runIos({
|
|
40
|
-
root
|
|
41
|
-
port
|
|
50
|
+
root,
|
|
51
|
+
port,
|
|
52
|
+
simulator: args.simulator,
|
|
53
|
+
udid: args.udid
|
|
42
54
|
});
|
|
43
55
|
}
|
|
44
56
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runIos.native.js","names":[],"sources":["cjs/cli/runIos.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 runIos_exports = {};\n__export(runIos_exports, {\n run: () => run\n});\nmodule.exports = __toCommonJS(runIos_exports);\nvar import_loadConfig = require(\"../vite/loadConfig\");\nasync function run(args) {\n var _options_config_config_server, _options_config_config, _options_config;\n var
|
|
1
|
+
{"version":3,"file":"runIos.native.js","names":[],"sources":["cjs/cli/runIos.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 runIos_exports = {};\n__export(runIos_exports, {\n run: () => run\n});\nmodule.exports = __toCommonJS(runIos_exports);\nvar import_fs = require(\"fs\");\nvar import_path = require(\"path\");\nvar import_loadConfig = require(\"../vite/loadConfig\");\nasync function run(args) {\n var _ref, _process_env, _RCT_METRO_PORT;\n var _options_config_config_server, _options_config_config, _options_config;\n var root = process.cwd();\n var options = await (0, import_loadConfig.loadUserOneOptions)(\"serve\", true).catch(function() {\n return null;\n });\n var port = (_ref = options === null || options === void 0 ? void 0 : (_options_config = options.config) === null || _options_config === void 0 ? void 0 : (_options_config_config = _options_config.config) === null || _options_config_config === void 0 ? void 0 : (_options_config_config_server = _options_config_config.server) === null || _options_config_config_server === void 0 ? void 0 : _options_config_config_server.port) !== null && _ref !== void 0 ? _ref : 8081;\n (_RCT_METRO_PORT = (_process_env = process.env).RCT_METRO_PORT) !== null && _RCT_METRO_PORT !== void 0 ? _RCT_METRO_PORT : _process_env.RCT_METRO_PORT = String(port);\n if (!(0, import_fs.existsSync)((0, import_path.join)(root, \"ios\"))) {\n var { run: prebuildRun } = await import(\"./prebuild\");\n await prebuildRun({\n platform: \"ios\"\n });\n }\n var { runIos } = await import(\"vxrn\");\n await runIos({\n root,\n port,\n simulator: args.simulator,\n udid: args.udid\n });\n}\n//# sourceMappingURL=runIos.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,U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AK,IAAI,KAAK,KAAK,kBAAkB,QAAQ,YAAY,QAAQ,oBAAoB,KAAK,IAAI,KAAK,KAAK,yBAAyB,gBAAgB,YAAY,QAAQ,2BAA2B,KAAK,IAAI,KAAK,KAAK,gCAAgC,uBAAuB,YAAY,QAAQ,kCAAkC,KAAK,IAAI,KAAK,IAAI,8BAA8B,UAAU,QAAQ,SAAS,KAAK,IAAI,OAAO;CAC9c,CAAC,mBAAmB,eAAe,QAAQ,IAAG,CAAE,oBAAoB,QAAQ,oBAAoB,KAAK,IAAI,kBAAkB,aAAa,iBAAiB,OAAO,IAAI;CACpK,IAAI,EAAE,GAAG,UAAU,WAAU,EAAG,GAAG,YAAY,KAAI,CAAE,MAAM,KAAK,CAAC,GAAG;EAClE,IAAI,EAAE,KAAK,gBAAgB,MAAM,OAAO;EACxC,MAAM,YAAY,EAChB,UAAU,MACZ,CAAC;CACH;CACA,IAAI,EAAE,WAAW,MAAM,OAAO;CAC9B,MAAM,OAAO;EACX;EACA;EACA,WAAW,KAAK;EAChB,MAAM,KAAK;CACb,CAAC;AACH"}
|
package/dist/cjs/cli.cjs
CHANGED
|
@@ -217,7 +217,16 @@ const runIos = (0, import_citty.defineCommand)({
|
|
|
217
217
|
version,
|
|
218
218
|
description: withDocsLink("Run the iOS app", "run:ios")
|
|
219
219
|
},
|
|
220
|
-
args: {
|
|
220
|
+
args: {
|
|
221
|
+
simulator: {
|
|
222
|
+
type: "string",
|
|
223
|
+
description: "explicitly set the simulator to use, e.g. \"iPhone 16\""
|
|
224
|
+
},
|
|
225
|
+
udid: {
|
|
226
|
+
type: "string",
|
|
227
|
+
description: "explicitly set the simulator to use by UDID"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
221
230
|
async run({ args }) {
|
|
222
231
|
const { run } = await import("./cli/runIos.cjs");
|
|
223
232
|
await run(args);
|
package/dist/cjs/cli.native.cjs
CHANGED
|
@@ -223,7 +223,16 @@ var runIos = (0, import_citty.defineCommand)({
|
|
|
223
223
|
version,
|
|
224
224
|
description: withDocsLink("Run the iOS app", "run:ios")
|
|
225
225
|
},
|
|
226
|
-
args: {
|
|
226
|
+
args: {
|
|
227
|
+
simulator: {
|
|
228
|
+
type: "string",
|
|
229
|
+
description: "explicitly set the simulator to use, e.g. \"iPhone 16\""
|
|
230
|
+
},
|
|
231
|
+
udid: {
|
|
232
|
+
type: "string",
|
|
233
|
+
description: "explicitly set the simulator to use by UDID"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
227
236
|
async run(param) {
|
|
228
237
|
var { args } = param;
|
|
229
238
|
var { run } = await import("./cli/runIos.native.js");
|
package/dist/cjs/cli.native.js
CHANGED
|
@@ -223,7 +223,16 @@ var runIos = (0, import_citty.defineCommand)({
|
|
|
223
223
|
version,
|
|
224
224
|
description: withDocsLink("Run the iOS app", "run:ios")
|
|
225
225
|
},
|
|
226
|
-
args: {
|
|
226
|
+
args: {
|
|
227
|
+
simulator: {
|
|
228
|
+
type: "string",
|
|
229
|
+
description: "explicitly set the simulator to use, e.g. \"iPhone 16\""
|
|
230
|
+
},
|
|
231
|
+
udid: {
|
|
232
|
+
type: "string",
|
|
233
|
+
description: "explicitly set the simulator to use by UDID"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
227
236
|
async run(param) {
|
|
228
237
|
var { args } = param;
|
|
229
238
|
var { run } = await import("./cli/runIos.native.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.native.js","names":[],"sources":["cjs/cli.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 __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_citty = require(\"citty\");\nvar import_fs = require(\"fs\");\nvar import_path = __toESM(require(\"path\"), 1);\nvar import_url = require(\"url\");\nvar import_picocolors = __toESM(require(\"picocolors\"), 1);\nconst import_meta = {};\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}\nvar version = getPackageVersion();\nvar DOCS_BASE = \"https://onestack.dev/docs\";\nvar docsLinks = {\n dev: `${DOCS_BASE}/one-dev`,\n build: `${DOCS_BASE}/one-build`,\n serve: `${DOCS_BASE}/one-serve`,\n prebuild: `${DOCS_BASE}/guides-ios-native`,\n \"run:ios\": `${DOCS_BASE}/guides-ios-native`,\n \"run:android\": `${DOCS_BASE}/guides-ios-native`,\n clean: `${DOCS_BASE}/configuration`,\n patch: `${DOCS_BASE}/configuration`,\n \"generate-routes\": `${DOCS_BASE}/routing-typed-routes`,\n typegen: `${DOCS_BASE}/routing-typed-routes`,\n \"metro-eject\": `${DOCS_BASE}/guides-ota-updates`\n};\nfunction withDocsLink(description, command) {\n return `${description}\n\nDocs: ${docsLinks[command]}`;\n}\nif (import_path.default.sep !== \"/\") {\n console.warn(import_picocolors.default.bgYellow(\"WARNING: UNSUPPORTED OS\") + import_picocolors.default.yellow(\" - It appears you\\u2019re using Windows, which is currently not supported. You may experience unexpected issues.\"));\n}\nvar modes = {\n development: \"development\",\n production: \"production\"\n};\nfunction lastValue(arg) {\n if (Array.isArray(arg)) {\n return arg[arg.length - 1];\n }\n return arg;\n}\nvar dev = (0, import_citty.defineCommand)({\n meta: {\n name: \"dev\",\n version,\n description: withDocsLink(\"Start the dev server\", \"dev\")\n },\n args: {\n clean: {\n type: \"boolean\"\n },\n host: {\n type: \"string\"\n },\n port: {\n type: \"string\"\n },\n mode: {\n type: \"string\",\n description: 'If set to \"production\" you can run the development server but serve the production bundle'\n },\n \"debug-bundle\": {\n type: \"string\",\n description: `Will output the bundle to a temp file and then serve it from there afterwards allowing you to easily edit the bundle to debug problems.`\n },\n debug: {\n type: \"string\",\n description: `Pass debug args to Vite`\n },\n \"extra-config\": {\n type: \"string\",\n description: `Path to an extra vite config file to merge on top of the project config`\n }\n },\n async run(param) {\n var { args } = param;\n var { dev: dev2 } = await import(\"./cli/dev\");\n await dev2({\n ...args,\n port: lastValue(args.port),\n host: lastValue(args.host),\n debugBundle: lastValue(args[\"debug-bundle\"]),\n mode: modes[lastValue(args.mode)],\n extraConfig: lastValue(args[\"extra-config\"])\n });\n }\n});\nvar buildCommand = (0, import_citty.defineCommand)({\n meta: {\n name: \"build\",\n version,\n description: withDocsLink(\"Build your app\", \"build\")\n },\n args: {\n step: {\n type: \"string\",\n required: false\n },\n // limit the pages built\n only: {\n type: \"string\",\n required: false\n },\n platform: {\n type: \"string\",\n description: `One of: web, ios, android`,\n default: \"web\",\n required: false\n },\n \"skip-env\": {\n type: \"boolean\",\n description: `Skip loading .env files during build`,\n required: false\n }\n },\n async run(param) {\n var { args } = param;\n var { build } = await import(\"./cli/build\");\n var platforms = {\n ios: \"ios\",\n web: \"web\",\n android: \"android\"\n };\n if (args.platform && !platforms[args.platform]) {\n throw new Error(`Invalid platform: ${args.platform}`);\n }\n var platform = platforms[args.platform] || \"web\";\n await build({\n only: args.only,\n platform,\n step: args.step,\n skipEnv: args[\"skip-env\"]\n });\n process.exit(0);\n }\n});\nvar serveCommand = (0, import_citty.defineCommand)({\n meta: {\n name: \"serve\",\n version,\n description: withDocsLink(\"Serve a built app for production\", \"serve\")\n },\n args: {\n host: {\n type: \"string\"\n },\n port: {\n type: \"string\"\n },\n compress: {\n type: \"boolean\"\n },\n loadEnv: {\n type: \"boolean\"\n },\n outDir: {\n type: \"string\",\n description: \"Build output directory (default: dist)\"\n },\n cluster: {\n type: \"string\",\n description: \"Enable cluster mode with N workers (default: cpu count)\"\n }\n },\n async run(param) {\n var { args } = param;\n var { serve } = await import(\"./serve\");\n var port = lastValue(args.port);\n var host = lastValue(args.host);\n var clusterArg = lastValue(args.cluster);\n await serve({\n port: port ? +port : void 0,\n host,\n compress: args.compress,\n loadEnv: !!args.loadEnv,\n outDir: lastValue(args.outDir),\n cluster: clusterArg !== void 0 ? clusterArg ? +clusterArg : true : void 0\n });\n }\n});\nvar prebuild = (0, import_citty.defineCommand)({\n meta: {\n name: \"prebuild\",\n version,\n description: withDocsLink(\"Prebuild native project\", \"prebuild\")\n },\n args: {\n platform: {\n type: \"string\",\n description: \"ios or android\"\n },\n \"no-install\": {\n type: \"boolean\",\n description: \"skip installing native dependencies\",\n default: false\n }\n },\n async run(param) {\n var { args } = param;\n if (args.install === false) args[\"no-install\"] = true;\n var { run } = await import(\"./cli/prebuild\");\n await run(args);\n }\n});\nvar runIos = (0, import_citty.defineCommand)({\n meta: {\n name: \"run:ios\",\n version,\n description: withDocsLink(\"Run the iOS app\", \"run:ios\")\n },\n args: {},\n async run(param) {\n var { args } = param;\n var { run } = await import(\"./cli/runIos\");\n await run(args);\n }\n});\nvar runAndroid = (0, import_citty.defineCommand)({\n meta: {\n name: \"run:android\",\n version,\n description: withDocsLink(\"Run the Android app\", \"run:android\")\n },\n args: {},\n async run(param) {\n var { args } = param;\n var { run } = await import(\"./cli/runAndroid\");\n await run(args);\n }\n});\nvar clean = (0, import_citty.defineCommand)({\n meta: {\n name: \"clean\",\n version: \"0.0.0\",\n description: withDocsLink(\"Clean build folders\", \"clean\")\n },\n args: {},\n async run() {\n var { clean: vxrnClean } = await import(\"vxrn\");\n await vxrnClean({\n root: process.cwd()\n });\n }\n});\nvar patch = (0, import_citty.defineCommand)({\n meta: {\n name: \"patch\",\n version: \"0.0.0\",\n description: withDocsLink(\"Apply package patches\", \"patch\")\n },\n args: {\n force: {\n type: \"boolean\",\n description: \"Force re-apply all patches\"\n }\n },\n async run(param) {\n var { args } = param;\n var { run } = await import(\"./cli/patch\");\n await run(args);\n }\n});\nvar generateRoutes = (0, import_citty.defineCommand)({\n meta: {\n name: \"generate-routes\",\n version,\n description: withDocsLink(\"Generate route type definitions (routes.d.ts)\", \"generate-routes\")\n },\n args: {\n appDir: {\n type: \"string\",\n description: 'Path to app directory (default: \"app\")'\n },\n typed: {\n type: \"string\",\n description: 'Auto-generate route helpers. Options: \"type\" (type-only helpers) or \"runtime\" (runtime helpers)'\n }\n },\n async run(param) {\n var { args } = param;\n var { run } = await import(\"./cli/generateRoutes\");\n await run(args);\n }\n});\nvar typegen = (0, import_citty.defineCommand)({\n meta: {\n name: \"typegen\",\n version,\n description: withDocsLink(\"Generate routes.d.ts (alias for generate-routes)\", \"typegen\")\n },\n args: {\n appDir: {\n type: \"string\",\n description: 'Path to app directory (default: \"app\")'\n },\n typed: {\n type: \"string\",\n description: 'Auto-generate route helpers. Options: \"type\" (type-only helpers) or \"runtime\" (runtime helpers)'\n }\n },\n async run(param) {\n var { args } = param;\n var { run } = await import(\"./cli/generateRoutes\");\n await run(args);\n }\n});\nvar metroEject = (0, import_citty.defineCommand)({\n meta: {\n name: \"metro-eject\",\n version,\n description: withDocsLink(\"Write babel.config.cjs + metro.config.cjs so you can own them and customize freely\", \"metro-eject\")\n },\n args: {\n force: {\n type: \"boolean\",\n description: \"Overwrite existing files\"\n }\n },\n async run(param) {\n var { args } = param;\n var { generateBundlerConfig } = await import(\"./cli/generateBundlerConfig\");\n var { loadUserOneOptions } = await import(\"./vite/loadConfig\");\n process.env.IS_VXRN_CLI = \"true\";\n var { oneOptions } = await loadUserOneOptions(\"build\");\n var { ok } = generateBundlerConfig({\n force: !!args.force,\n eject: true,\n oneOptions\n });\n if (!ok) process.exit(1);\n }\n});\nvar daemonCommand = (0, import_citty.defineCommand)({\n meta: {\n name: \"daemon\",\n version,\n description: \"Multi-app development server proxy\"\n },\n args: {\n subcommand: {\n type: \"positional\",\n description: \"Subcommand: start, stop, status, route (default: start)\",\n required: false\n },\n port: {\n type: \"string\",\n description: \"Port to listen on (default: 8081)\"\n },\n host: {\n type: \"string\",\n description: \"Host to bind to (default: 0.0.0.0)\"\n },\n app: {\n type: \"string\",\n description: \"Bundle ID for route command\"\n },\n slot: {\n type: \"string\",\n description: \"Slot number for route command\"\n },\n project: {\n type: \"string\",\n description: \"Project path for route command\"\n },\n tui: {\n type: \"boolean\",\n description: \"Show TUI (default: true if TTY)\"\n }\n },\n async run(param) {\n var { args } = param;\n var { daemon } = await import(\"./cli/daemon\");\n await daemon({\n ...args,\n port: lastValue(args.port),\n host: lastValue(args.host)\n });\n }\n});\nvar subCommands = {\n dev,\n clean,\n build: buildCommand,\n prebuild,\n \"run:ios\": runIos,\n \"run:android\": runAndroid,\n patch,\n serve: serveCommand,\n \"generate-routes\": generateRoutes,\n typegen,\n daemon: daemonCommand,\n \"metro-eject\": metroEject\n};\nvar subMain = (0, import_citty.defineCommand)({\n meta: {\n name: \"main\",\n version,\n description: \"Welcome to One\"\n },\n subCommands\n});\nvar main = (0, import_citty.defineCommand)({\n meta: {\n name: \"main\",\n version,\n description: \"Welcome to One\"\n },\n args: {\n name: {\n type: \"positional\",\n description: \"Folder name to place the app into\",\n required: false\n }\n },\n async run(param) {\n var { args } = param;\n if (subCommands[args.name]) {\n (0, import_citty.runMain)(subMain);\n return;\n }\n var { cliMain } = await import(\"./cli/main\");\n await cliMain(args);\n }\n});\nvar helpIndex = process.argv.indexOf(\"--help\");\nif (helpIndex > 0) {\n var subCommandName = process.argv[helpIndex - 1];\n var subCommand = subCommands[subCommandName];\n if (subCommand) {\n (0, import_citty.showUsage)(subCommand);\n } else {\n (0, import_citty.showUsage)(subMain);\n }\n} else {\n (0, import_citty.runMain)(main);\n}\n//# sourceMappingURL=cli.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,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,OAAO;AAClC,IAAI,YAAY,QAAQ,IAAI;AAC5B,IAAI,cAAc,QAAQ,QAAQ,MAAM,GAAG,CAAC;AAC5C,IAAI,aAAa,QAAQ,KAAK;AAC9B,IAAI,oBAAoB,QAAQ,QAAQ,YAAY,GAAG,CAAC;AACxD,MAAM,cAAc,CAAC;AACrB,SAAS,oBAAoB;CAC3B,IAAI;CACJ,IAAI,OAAO,cAAc,aAAa;EACpC,UAAU;CACZ,OAAO;EACL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zB,MAAM,UAAU,KAAK,IAAI;EAC3B,CAAC;CACH;AACF,CAAC;AACD,IAAI,cAAc;CAChB;CACA;CACA,OAAO;CACP;CACA,WAAW;CACX,eAAe;CACf;CACA,OAAO;CACP,mBAAmB;CACnB;CACA,QAAQ;CACR,eAAe;AACjB;AACA,IAAI,WAAW,GAAG,aAAa,cAAa,CAAE;CAC5C,MAAM;EACJ,MAAM;EACN;EACA,aAAa;CACf;CACA;AACF,CAAC;AACD,IAAI,QAAQ,GAAG,aAAa,cAAa,CAAE;CACzC,MAAM;EACJ,MAAM;EACN;EACA,aAAa;CACf;CACA,MAAM,EACJ,MAAM;EACJ,MAAM;EACN,aAAa;EACb,UAAU;CACZ,EACF;CACA,MAAM,IAAI,OAAO;EACf,IAAI,EAAE,SAAS;EACf,IAAI,YAAY,KAAK,OAAO;GAC1B,CAAC,GAAG,aAAa,QAAO,CAAE,OAAO;GACjC;EACF;EACA,IAAI,EAAE,YAAY,MAAM,OAAO;EAC/B,MAAM,QAAQ,IAAI;CACpB;AACF,CAAC;AACD,IAAI,YAAY,QAAQ,KAAK,QAAQ,QAAQ;AAC7C,IAAI,YAAY,GAAG;CACjB,IAAI,iBAAiB,QAAQ,KAAK,YAAY;CAC9C,IAAI,aAAa,YAAY;CAC7B,IAAI,YAAY;EACd,CAAC,GAAG,aAAa,UAAS,CAAE,UAAU;CACxC,OAAO;EACL,CAAC,GAAG,aAAa,UAAS,CAAE,OAAO;CACrC;AACF,OAAO;CACL,CAAC,GAAG,aAAa,QAAO,CAAE,IAAI;AAChC"}
|
|
1
|
+
{"version":3,"file":"cli.native.js","names":[],"sources":["cjs/cli.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 __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_citty = require(\"citty\");\nvar import_fs = require(\"fs\");\nvar import_path = __toESM(require(\"path\"), 1);\nvar import_url = require(\"url\");\nvar import_picocolors = __toESM(require(\"picocolors\"), 1);\nconst import_meta = {};\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}\nvar version = getPackageVersion();\nvar DOCS_BASE = \"https://onestack.dev/docs\";\nvar docsLinks = {\n dev: `${DOCS_BASE}/one-dev`,\n build: `${DOCS_BASE}/one-build`,\n serve: `${DOCS_BASE}/one-serve`,\n prebuild: `${DOCS_BASE}/guides-ios-native`,\n \"run:ios\": `${DOCS_BASE}/guides-ios-native`,\n \"run:android\": `${DOCS_BASE}/guides-ios-native`,\n clean: `${DOCS_BASE}/configuration`,\n patch: `${DOCS_BASE}/configuration`,\n \"generate-routes\": `${DOCS_BASE}/routing-typed-routes`,\n typegen: `${DOCS_BASE}/routing-typed-routes`,\n \"metro-eject\": `${DOCS_BASE}/guides-ota-updates`\n};\nfunction withDocsLink(description, command) {\n return `${description}\n\nDocs: ${docsLinks[command]}`;\n}\nif (import_path.default.sep !== \"/\") {\n console.warn(import_picocolors.default.bgYellow(\"WARNING: UNSUPPORTED OS\") + import_picocolors.default.yellow(\" - It appears you\\u2019re using Windows, which is currently not supported. You may experience unexpected issues.\"));\n}\nvar modes = {\n development: \"development\",\n production: \"production\"\n};\nfunction lastValue(arg) {\n if (Array.isArray(arg)) {\n return arg[arg.length - 1];\n }\n return arg;\n}\nvar dev = (0, import_citty.defineCommand)({\n meta: {\n name: \"dev\",\n version,\n description: withDocsLink(\"Start the dev server\", \"dev\")\n },\n args: {\n clean: {\n type: \"boolean\"\n },\n host: {\n type: \"string\"\n },\n port: {\n type: \"string\"\n },\n mode: {\n type: \"string\",\n description: 'If set to \"production\" you can run the development server but serve the production bundle'\n },\n \"debug-bundle\": {\n type: \"string\",\n description: `Will output the bundle to a temp file and then serve it from there afterwards allowing you to easily edit the bundle to debug problems.`\n },\n debug: {\n type: \"string\",\n description: `Pass debug args to Vite`\n },\n \"extra-config\": {\n type: \"string\",\n description: `Path to an extra vite config file to merge on top of the project config`\n }\n },\n async run(param) {\n var { args } = param;\n var { dev: dev2 } = await import(\"./cli/dev\");\n await dev2({\n ...args,\n port: lastValue(args.port),\n host: lastValue(args.host),\n debugBundle: lastValue(args[\"debug-bundle\"]),\n mode: modes[lastValue(args.mode)],\n extraConfig: lastValue(args[\"extra-config\"])\n });\n }\n});\nvar buildCommand = (0, import_citty.defineCommand)({\n meta: {\n name: \"build\",\n version,\n description: withDocsLink(\"Build your app\", \"build\")\n },\n args: {\n step: {\n type: \"string\",\n required: false\n },\n // limit the pages built\n only: {\n type: \"string\",\n required: false\n },\n platform: {\n type: \"string\",\n description: `One of: web, ios, android`,\n default: \"web\",\n required: false\n },\n \"skip-env\": {\n type: \"boolean\",\n description: `Skip loading .env files during build`,\n required: false\n }\n },\n async run(param) {\n var { args } = param;\n var { build } = await import(\"./cli/build\");\n var platforms = {\n ios: \"ios\",\n web: \"web\",\n android: \"android\"\n };\n if (args.platform && !platforms[args.platform]) {\n throw new Error(`Invalid platform: ${args.platform}`);\n }\n var platform = platforms[args.platform] || \"web\";\n await build({\n only: args.only,\n platform,\n step: args.step,\n skipEnv: args[\"skip-env\"]\n });\n process.exit(0);\n }\n});\nvar serveCommand = (0, import_citty.defineCommand)({\n meta: {\n name: \"serve\",\n version,\n description: withDocsLink(\"Serve a built app for production\", \"serve\")\n },\n args: {\n host: {\n type: \"string\"\n },\n port: {\n type: \"string\"\n },\n compress: {\n type: \"boolean\"\n },\n loadEnv: {\n type: \"boolean\"\n },\n outDir: {\n type: \"string\",\n description: \"Build output directory (default: dist)\"\n },\n cluster: {\n type: \"string\",\n description: \"Enable cluster mode with N workers (default: cpu count)\"\n }\n },\n async run(param) {\n var { args } = param;\n var { serve } = await import(\"./serve\");\n var port = lastValue(args.port);\n var host = lastValue(args.host);\n var clusterArg = lastValue(args.cluster);\n await serve({\n port: port ? +port : void 0,\n host,\n compress: args.compress,\n loadEnv: !!args.loadEnv,\n outDir: lastValue(args.outDir),\n cluster: clusterArg !== void 0 ? clusterArg ? +clusterArg : true : void 0\n });\n }\n});\nvar prebuild = (0, import_citty.defineCommand)({\n meta: {\n name: \"prebuild\",\n version,\n description: withDocsLink(\"Prebuild native project\", \"prebuild\")\n },\n args: {\n platform: {\n type: \"string\",\n description: \"ios or android\"\n },\n \"no-install\": {\n type: \"boolean\",\n description: \"skip installing native dependencies\",\n default: false\n }\n },\n async run(param) {\n var { args } = param;\n if (args.install === false) args[\"no-install\"] = true;\n var { run } = await import(\"./cli/prebuild\");\n await run(args);\n }\n});\nvar runIos = (0, import_citty.defineCommand)({\n meta: {\n name: \"run:ios\",\n version,\n description: withDocsLink(\"Run the iOS app\", \"run:ios\")\n },\n args: {\n simulator: {\n type: \"string\",\n description: 'explicitly set the simulator to use, e.g. \"iPhone 16\"'\n },\n udid: {\n type: \"string\",\n description: \"explicitly set the simulator to use by UDID\"\n }\n },\n async run(param) {\n var { args } = param;\n var { run } = await import(\"./cli/runIos\");\n await run(args);\n }\n});\nvar runAndroid = (0, import_citty.defineCommand)({\n meta: {\n name: \"run:android\",\n version,\n description: withDocsLink(\"Run the Android app\", \"run:android\")\n },\n args: {},\n async run(param) {\n var { args } = param;\n var { run } = await import(\"./cli/runAndroid\");\n await run(args);\n }\n});\nvar clean = (0, import_citty.defineCommand)({\n meta: {\n name: \"clean\",\n version: \"0.0.0\",\n description: withDocsLink(\"Clean build folders\", \"clean\")\n },\n args: {},\n async run() {\n var { clean: vxrnClean } = await import(\"vxrn\");\n await vxrnClean({\n root: process.cwd()\n });\n }\n});\nvar patch = (0, import_citty.defineCommand)({\n meta: {\n name: \"patch\",\n version: \"0.0.0\",\n description: withDocsLink(\"Apply package patches\", \"patch\")\n },\n args: {\n force: {\n type: \"boolean\",\n description: \"Force re-apply all patches\"\n }\n },\n async run(param) {\n var { args } = param;\n var { run } = await import(\"./cli/patch\");\n await run(args);\n }\n});\nvar generateRoutes = (0, import_citty.defineCommand)({\n meta: {\n name: \"generate-routes\",\n version,\n description: withDocsLink(\"Generate route type definitions (routes.d.ts)\", \"generate-routes\")\n },\n args: {\n appDir: {\n type: \"string\",\n description: 'Path to app directory (default: \"app\")'\n },\n typed: {\n type: \"string\",\n description: 'Auto-generate route helpers. Options: \"type\" (type-only helpers) or \"runtime\" (runtime helpers)'\n }\n },\n async run(param) {\n var { args } = param;\n var { run } = await import(\"./cli/generateRoutes\");\n await run(args);\n }\n});\nvar typegen = (0, import_citty.defineCommand)({\n meta: {\n name: \"typegen\",\n version,\n description: withDocsLink(\"Generate routes.d.ts (alias for generate-routes)\", \"typegen\")\n },\n args: {\n appDir: {\n type: \"string\",\n description: 'Path to app directory (default: \"app\")'\n },\n typed: {\n type: \"string\",\n description: 'Auto-generate route helpers. Options: \"type\" (type-only helpers) or \"runtime\" (runtime helpers)'\n }\n },\n async run(param) {\n var { args } = param;\n var { run } = await import(\"./cli/generateRoutes\");\n await run(args);\n }\n});\nvar metroEject = (0, import_citty.defineCommand)({\n meta: {\n name: \"metro-eject\",\n version,\n description: withDocsLink(\"Write babel.config.cjs + metro.config.cjs so you can own them and customize freely\", \"metro-eject\")\n },\n args: {\n force: {\n type: \"boolean\",\n description: \"Overwrite existing files\"\n }\n },\n async run(param) {\n var { args } = param;\n var { generateBundlerConfig } = await import(\"./cli/generateBundlerConfig\");\n var { loadUserOneOptions } = await import(\"./vite/loadConfig\");\n process.env.IS_VXRN_CLI = \"true\";\n var { oneOptions } = await loadUserOneOptions(\"build\");\n var { ok } = generateBundlerConfig({\n force: !!args.force,\n eject: true,\n oneOptions\n });\n if (!ok) process.exit(1);\n }\n});\nvar daemonCommand = (0, import_citty.defineCommand)({\n meta: {\n name: \"daemon\",\n version,\n description: \"Multi-app development server proxy\"\n },\n args: {\n subcommand: {\n type: \"positional\",\n description: \"Subcommand: start, stop, status, route (default: start)\",\n required: false\n },\n port: {\n type: \"string\",\n description: \"Port to listen on (default: 8081)\"\n },\n host: {\n type: \"string\",\n description: \"Host to bind to (default: 0.0.0.0)\"\n },\n app: {\n type: \"string\",\n description: \"Bundle ID for route command\"\n },\n slot: {\n type: \"string\",\n description: \"Slot number for route command\"\n },\n project: {\n type: \"string\",\n description: \"Project path for route command\"\n },\n tui: {\n type: \"boolean\",\n description: \"Show TUI (default: true if TTY)\"\n }\n },\n async run(param) {\n var { args } = param;\n var { daemon } = await import(\"./cli/daemon\");\n await daemon({\n ...args,\n port: lastValue(args.port),\n host: lastValue(args.host)\n });\n }\n});\nvar subCommands = {\n dev,\n clean,\n build: buildCommand,\n prebuild,\n \"run:ios\": runIos,\n \"run:android\": runAndroid,\n patch,\n serve: serveCommand,\n \"generate-routes\": generateRoutes,\n typegen,\n daemon: daemonCommand,\n \"metro-eject\": metroEject\n};\nvar subMain = (0, import_citty.defineCommand)({\n meta: {\n name: \"main\",\n version,\n description: \"Welcome to One\"\n },\n subCommands\n});\nvar main = (0, import_citty.defineCommand)({\n meta: {\n name: \"main\",\n version,\n description: \"Welcome to One\"\n },\n args: {\n name: {\n type: \"positional\",\n description: \"Folder name to place the app into\",\n required: false\n }\n },\n async run(param) {\n var { args } = param;\n if (subCommands[args.name]) {\n (0, import_citty.runMain)(subMain);\n return;\n }\n var { cliMain } = await import(\"./cli/main\");\n await cliMain(args);\n }\n});\nvar helpIndex = process.argv.indexOf(\"--help\");\nif (helpIndex > 0) {\n var subCommandName = process.argv[helpIndex - 1];\n var subCommand = subCommands[subCommandName];\n if (subCommand) {\n (0, import_citty.showUsage)(subCommand);\n } else {\n (0, import_citty.showUsage)(subMain);\n }\n} else {\n (0, import_citty.runMain)(main);\n}\n//# sourceMappingURL=cli.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,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,OAAO;AAClC,IAAI,YAAY,QAAQ,IAAI;AAC5B,IAAI,cAAc,QAAQ,QAAQ,MA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AO,CAAE,IAAI;AAChC"}
|
|
@@ -20,9 +20,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
return to;
|
|
21
21
|
};
|
|
22
22
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
-
var
|
|
24
|
-
__export(
|
|
25
|
-
module.exports = __toCommonJS(
|
|
26
|
-
var
|
|
23
|
+
var Head_android_exports = {};
|
|
24
|
+
__export(Head_android_exports, { Head: () => Head });
|
|
25
|
+
module.exports = __toCommonJS(Head_android_exports);
|
|
26
|
+
var import_HeadModule = require("./HeadModule.native.js");
|
|
27
|
+
var Head = function(props) {
|
|
28
|
+
return null;
|
|
29
|
+
};
|
|
30
|
+
Object.assign(Head, import_HeadModule.HeadModule);
|
|
27
31
|
|
|
28
|
-
//# sourceMappingURL=
|
|
32
|
+
//# sourceMappingURL=Head.android.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Head.android.js","names":[],"sources":["cjs/head/Head.android.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Head_android_exports = {};\n__export(Head_android_exports, {\n Head: () => Head\n});\nmodule.exports = __toCommonJS(Head_android_exports);\nvar import_HeadModule = require(\"./HeadModule\");\nvar Head = function(props) {\n return null;\n};\nObject.assign(Head, import_HeadModule.HeadModule);\n//# sourceMappingURL=Head.android.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,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,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,uBAAuB,CAAC;AAC5B,SAAS,sBAAsB,EAC7B,YAAY,KACd,CAAC;AACD,OAAO,UAAU,aAAa,oBAAoB;AAClD,IAAI,oBAAoB,QAAQ,wBAAc;AAC9C,IAAI,OAAO,SAAS,OAAO;CACzB,OAAO;AACT;AACA,OAAO,OAAO,MAAM,kBAAkB,UAAU"}
|