@tamagui/cli 1.74.13 → 1.74.15
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/package.json +8 -8
- package/dist/dev/clientInjectPlugin.js +0 -104
- package/dist/dev/clientInjectPlugin.js.map +0 -6
- package/dist/dev/clientInjectPlugin.native.js +0 -72
- package/dist/dev/clientInjectPlugin.native.js.map +0 -6
- package/dist/dev/createDevServer.js +0 -122
- package/dist/dev/createDevServer.js.map +0 -6
- package/dist/dev/createDevServer.native.js +0 -123
- package/dist/dev/createDevServer.native.js.map +0 -6
- package/dist/dev/types.js +0 -17
- package/dist/dev/types.js.map +0 -6
- package/dist/dev/types.native.js +0 -15
- package/dist/dev/types.native.js.map +0 -6
- package/dist/dev.js +0 -158
- package/dist/dev.js.map +0 -6
- package/dist/dev.native.js +0 -159
- package/dist/dev.native.js.map +0 -6
- package/dist/test.js +0 -36
- package/dist/test.js.map +0 -6
- package/dist/test.native.js +0 -37
- package/dist/test.native.js.map +0 -6
- package/dist/utils/constants.js +0 -25
- package/dist/utils/constants.js.map +0 -6
- package/dist/utils/constants.native.js +0 -26
- package/dist/utils/constants.native.js.map +0 -6
- package/dist/vendor/debugger-app/index.js +0 -23
- package/dist/vendor/debugger-app/index.js.map +0 -6
- package/dist/vendor/debugger-app/index.native.js +0 -24
- package/dist/vendor/debugger-app/index.native.js.map +0 -6
- package/dist/vendor/debugger-app/src/debuggerWorker.js +0 -47
- package/dist/vendor/debugger-app/src/debuggerWorker.js.map +0 -6
- package/dist/vendor/debugger-app/src/debuggerWorker.native.js +0 -48
- package/dist/vendor/debugger-app/src/debuggerWorker.native.js.map +0 -6
- package/dist/vendor/debugger-app/src/index.css +0 -41
- package/dist/vendor/debugger-app/src/index.css.map +0 -6
- package/dist/vendor/debugger-app/src/index.js +0 -105
- package/dist/vendor/debugger-app/src/index.js.map +0 -6
- package/dist/vendor/debugger-app/src/index.native.js +0 -106
- package/dist/vendor/debugger-app/src/index.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/createServer.js +0 -97
- package/dist/vendor/repack/dev-server/src/createServer.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/createServer.native.js +0 -98
- package/dist/vendor/repack/dev-server/src/createServer.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/index.js +0 -21
- package/dist/vendor/repack/dev-server/src/index.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/index.native.js +0 -22
- package/dist/vendor/repack/dev-server/src/index.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/api/apiPlugin.js +0 -51
- package/dist/vendor/repack/dev-server/src/plugins/api/apiPlugin.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/api/apiPlugin.native.js +0 -52
- package/dist/vendor/repack/dev-server/src/plugins/api/apiPlugin.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/api/index.js +0 -29
- package/dist/vendor/repack/dev-server/src/plugins/api/index.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/api/index.native.js +0 -30
- package/dist/vendor/repack/dev-server/src/plugins/api/index.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.js +0 -77
- package/dist/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.native.js +0 -78
- package/dist/vendor/repack/dev-server/src/plugins/compiler/compilerPlugin.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/compiler/index.js +0 -33
- package/dist/vendor/repack/dev-server/src/plugins/compiler/index.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/compiler/index.native.js +0 -34
- package/dist/vendor/repack/dev-server/src/plugins/compiler/index.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/compiler/types.js +0 -14
- package/dist/vendor/repack/dev-server/src/plugins/compiler/types.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/compiler/types.native.js +0 -15
- package/dist/vendor/repack/dev-server/src/plugins/compiler/types.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.js +0 -95
- package/dist/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.native.js +0 -96
- package/dist/vendor/repack/dev-server/src/plugins/devtools/devtoolsPlugin.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/devtools/index.js +0 -29
- package/dist/vendor/repack/dev-server/src/plugins/devtools/index.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/devtools/index.native.js +0 -30
- package/dist/vendor/repack/dev-server/src/plugins/devtools/index.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.js +0 -36
- package/dist/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.native.js +0 -37
- package/dist/vendor/repack/dev-server/src/plugins/favicon/faviconPlugin.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/favicon/index.js +0 -29
- package/dist/vendor/repack/dev-server/src/plugins/favicon/index.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/favicon/index.native.js +0 -30
- package/dist/vendor/repack/dev-server/src/plugins/favicon/index.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/multipart/index.js +0 -33
- package/dist/vendor/repack/dev-server/src/plugins/multipart/index.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/multipart/index.native.js +0 -34
- package/dist/vendor/repack/dev-server/src/plugins/multipart/index.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.js +0 -61
- package/dist/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.native.js +0 -62
- package/dist/vendor/repack/dev-server/src/plugins/multipart/multipartPlugin.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/multipart/types.js +0 -14
- package/dist/vendor/repack/dev-server/src/plugins/multipart/types.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/multipart/types.native.js +0 -15
- package/dist/vendor/repack/dev-server/src/plugins/multipart/types.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.js +0 -185
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.native.js +0 -186
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/Symbolicator.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/index.js +0 -35
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/index.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/index.native.js +0 -36
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/index.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.js +0 -55
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.native.js +0 -56
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/sybmolicatePlugin.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/types.js +0 -14
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/types.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/types.native.js +0 -15
- package/dist/vendor/repack/dev-server/src/plugins/symbolicate/types.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.js +0 -64
- package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.native.js +0 -65
- package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketRouter.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.js +0 -54
- package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.native.js +0 -50
- package/dist/vendor/repack/dev-server/src/plugins/wss/WebSocketServer.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/index.js +0 -35
- package/dist/vendor/repack/dev-server/src/plugins/wss/index.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/index.native.js +0 -36
- package/dist/vendor/repack/dev-server/src/plugins/wss/index.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.js +0 -118
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.native.js +0 -118
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/HermesInspectorProxy.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.js +0 -67
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.native.js +0 -68
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketApiServer.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.js +0 -110
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.native.js +0 -103
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDebuggerServer.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.js +0 -71
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.native.js +0 -72
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketDevClientServer.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.js +0 -160
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.native.js +0 -162
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketEventsServer.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.js +0 -88
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.native.js +0 -89
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketHMRServer.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.js +0 -323
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.native.js +0 -325
- package/dist/vendor/repack/dev-server/src/plugins/wss/servers/WebSocketMessageServer.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/types.js +0 -14
- package/dist/vendor/repack/dev-server/src/plugins/wss/types.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/types.native.js +0 -15
- package/dist/vendor/repack/dev-server/src/plugins/wss/types.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/wssPlugin.js +0 -52
- package/dist/vendor/repack/dev-server/src/plugins/wss/wssPlugin.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/plugins/wss/wssPlugin.native.js +0 -53
- package/dist/vendor/repack/dev-server/src/plugins/wss/wssPlugin.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/types.js +0 -29
- package/dist/vendor/repack/dev-server/src/types.js.map +0 -6
- package/dist/vendor/repack/dev-server/src/types.native.js +0 -30
- package/dist/vendor/repack/dev-server/src/types.native.js.map +0 -6
- package/dist/vendor/repack/dev-server/vendor/metro-inspector-proxy/src/Device.js +0 -29
- package/dist/vendor/repack/dev-server/vendor/metro-inspector-proxy/src/Device.js.map +0 -6
- package/dist/vendor/repack/dev-server/vendor/metro-inspector-proxy/src/Device.native.js +0 -30
- package/dist/vendor/repack/dev-server/vendor/metro-inspector-proxy/src/Device.native.js.map +0 -6
package/dist/dev.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var dev_exports = {};
|
|
24
|
-
__export(dev_exports, {
|
|
25
|
-
dev: () => dev
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(dev_exports);
|
|
28
|
-
var import_promises = require("fs/promises"), import_path = require("path"), import_vite_plugin = require("@tamagui/vite-plugin"), import_chalk = __toESM(require("chalk")), import_fs_extra = __toESM(require("fs-extra")), import_vite = require("vite"), import_createDevServer = require("./dev/createDevServer"), import_utils = require("./utils");
|
|
29
|
-
const dev = async (options) => {
|
|
30
|
-
var _a;
|
|
31
|
-
const { root, mode, paths } = options;
|
|
32
|
-
process.chdir(process.cwd()), await (0, import_vite_plugin.nativePrebuild)();
|
|
33
|
-
const plugins = [
|
|
34
|
-
(0, import_vite_plugin.tamaguiPlugin)({
|
|
35
|
-
components: ["tamagui"],
|
|
36
|
-
target: "native"
|
|
37
|
-
}),
|
|
38
|
-
(0, import_vite_plugin.nativePlugin)()
|
|
39
|
-
], rootFile = (0, import_path.join)(root, "src/test-tamagui-stack.tsx");
|
|
40
|
-
console.log("root", root, rootFile);
|
|
41
|
-
const server = await (0, import_vite.createServer)({
|
|
42
|
-
root: rootFile,
|
|
43
|
-
mode: "development",
|
|
44
|
-
plugins,
|
|
45
|
-
server: {
|
|
46
|
-
port: options.port,
|
|
47
|
-
host: options.host || "localhost"
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
await server.listen(), await (0, import_fs_extra.ensureDir)(options.paths.dotDir);
|
|
51
|
-
const info = (_a = server.httpServer) == null ? void 0 : _a.address(), port = 8081, defaultResponse = {
|
|
52
|
-
name: "myapp",
|
|
53
|
-
slug: "myapp",
|
|
54
|
-
scheme: "myapp",
|
|
55
|
-
version: "1.0.0",
|
|
56
|
-
jsEngine: "jsc",
|
|
57
|
-
orientation: "portrait",
|
|
58
|
-
icon: "./assets/icon.png",
|
|
59
|
-
userInterfaceStyle: "light",
|
|
60
|
-
splash: {
|
|
61
|
-
image: "./assets/splash.png",
|
|
62
|
-
resizeMode: "contain",
|
|
63
|
-
backgroundColor: "#ffffff",
|
|
64
|
-
imageUrl: "http://127.0.0.1:8081/assets/./assets/splash.png"
|
|
65
|
-
},
|
|
66
|
-
updates: { fallbackToCacheTimeout: 0 },
|
|
67
|
-
assetBundlePatterns: ["**/*"],
|
|
68
|
-
ios: { supportsTablet: !0, bundleIdentifier: "com.natew.myapp" },
|
|
69
|
-
android: {
|
|
70
|
-
package: "com.tamagui.myapp",
|
|
71
|
-
adaptiveIcon: {
|
|
72
|
-
foregroundImage: "./assets/adaptive-icon.png",
|
|
73
|
-
backgroundColor: "#FFFFFF",
|
|
74
|
-
foregroundImageUrl: "http://127.0.0.1:8081/assets/./assets/adaptive-icon.png"
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
web: { favicon: "./assets/favicon.png" },
|
|
78
|
-
extra: { eas: { projectId: "061b4470-78c7-4d6a-b850-8167fb0a3434" } },
|
|
79
|
-
_internal: {
|
|
80
|
-
isDebug: !1,
|
|
81
|
-
projectRoot: "/Users/n8/tamagui/apps/kitchen-sink",
|
|
82
|
-
dynamicConfigPath: null,
|
|
83
|
-
staticConfigPath: "/Users/n8/tamagui/apps/kitchen-sink/app.json",
|
|
84
|
-
packageJsonPath: "/Users/n8/tamagui/apps/kitchen-sink/package.json"
|
|
85
|
-
},
|
|
86
|
-
sdkVersion: "47.0.0",
|
|
87
|
-
platforms: ["ios", "android", "web"],
|
|
88
|
-
iconUrl: `http://127.0.0.1:${port}/assets/./assets/icon.png`,
|
|
89
|
-
debuggerHost: `127.0.0.1:${port}`,
|
|
90
|
-
logUrl: `http://127.0.0.1:${port}/logs`,
|
|
91
|
-
developer: { tool: "expo-cli", projectRoot: "/Users/n8/tamagui/apps/kitchen-sink" },
|
|
92
|
-
packagerOpts: { dev: !0 },
|
|
93
|
-
mainModuleName: "index",
|
|
94
|
-
__flipperHack: "React Native packager is running",
|
|
95
|
-
hostUri: `127.0.0.1:${port}`,
|
|
96
|
-
bundleUrl: `http://127.0.0.1:${port}/index.bundle?platform=ios&dev=true&hot=false`,
|
|
97
|
-
id: "@anonymous/myapp-473c4543-3c36-4786-9db1-c66a62ac9b78"
|
|
98
|
-
}, dispose = await (0, import_createDevServer.createDevServer)(options, {
|
|
99
|
-
getIndexBundle: getBundle,
|
|
100
|
-
indexJson: defaultResponse
|
|
101
|
-
});
|
|
102
|
-
console.log("Listening on:", import_chalk.default.green(`http://localhost:${port}`)), server.printUrls(), (0, import_utils.registerDispose)(() => {
|
|
103
|
-
dispose(), server.close();
|
|
104
|
-
}), await new Promise((res) => {
|
|
105
|
-
var _a2;
|
|
106
|
-
return (_a2 = server.httpServer) == null ? void 0 : _a2.on("close", res);
|
|
107
|
-
}), console.log("closed");
|
|
108
|
-
async function getBundle() {
|
|
109
|
-
console.log("get bundle");
|
|
110
|
-
const outputJsPath = (0, import_path.join)(process.cwd(), ".tamagui", "bundle.js"), outputCode = await getBundleCode();
|
|
111
|
-
return import_fs_extra.default.writeFile(outputJsPath, outputCode), outputCode;
|
|
112
|
-
}
|
|
113
|
-
async function getBundleCode() {
|
|
114
|
-
const buildOutput = await (0, import_vite.build)({
|
|
115
|
-
// @ts-ignore
|
|
116
|
-
plugins,
|
|
117
|
-
appType: "custom",
|
|
118
|
-
root,
|
|
119
|
-
build: {
|
|
120
|
-
ssr: !0
|
|
121
|
-
},
|
|
122
|
-
ssr: {
|
|
123
|
-
format: "cjs",
|
|
124
|
-
target: "node"
|
|
125
|
-
},
|
|
126
|
-
mode: "development",
|
|
127
|
-
define: {
|
|
128
|
-
__DEV__: "true",
|
|
129
|
-
"process.env.NODE_ENV": '"development"'
|
|
130
|
-
}
|
|
131
|
-
}), appCode = "output" in buildOutput ? buildOutput.output[0].code : null;
|
|
132
|
-
if (console.log("built", appCode), !appCode)
|
|
133
|
-
throw "\u274C";
|
|
134
|
-
const [react, reactJsxRuntime, reactNative] = await Promise.all([
|
|
135
|
-
(0, import_promises.readFile)((0, import_path.join)(process.cwd(), "testing-area", "react.js"), "utf-8"),
|
|
136
|
-
(0, import_promises.readFile)((0, import_path.join)(process.cwd(), "testing-area", "react-jsx-runtime.js"), "utf-8"),
|
|
137
|
-
(0, import_promises.readFile)((0, import_path.join)(process.cwd(), "testing-area", "react-native.js"), "utf-8")
|
|
138
|
-
]), reactCode = react.replace(
|
|
139
|
-
"module.exports = require_react_development();",
|
|
140
|
-
"return require_react_development()"
|
|
141
|
-
), reactJSXRuntimeCode = reactJsxRuntime.replace(
|
|
142
|
-
"module.exports = require_react_jsx_runtime_production_min();",
|
|
143
|
-
"return require_react_jsx_runtime_production_min()"
|
|
144
|
-
), reactNativeCode = reactNative.replace(
|
|
145
|
-
"module.exports = require_react_native();",
|
|
146
|
-
"return require_react_native()"
|
|
147
|
-
).replace(
|
|
148
|
-
"renderable = /* @__PURE__ */ react(RootComponentWithMeaningfulName, null, renderable);",
|
|
149
|
-
""
|
|
150
|
-
), templateFile = (0, import_path.join)(__dirname, "..", "react-native-template.js");
|
|
151
|
-
return console.log("reding template", templateFile), (await (0, import_promises.readFile)(templateFile, "utf-8")).replace("// -- react --", reactCode).replace("// -- react-native --", reactNativeCode).replace("// -- react/jsx-runtime --", reactJSXRuntimeCode).replace("// -- app --", appCode);
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
155
|
-
0 && (module.exports = {
|
|
156
|
-
dev
|
|
157
|
-
});
|
|
158
|
-
//# sourceMappingURL=dev.js.map
|
package/dist/dev.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-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AAQ,gBAAgB,OAAO;AAAA,EACpC;AACF;",
|
|
5
|
-
"names": ["chalk", "_a", "fs"]
|
|
6
|
-
}
|
package/dist/dev.native.js
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var dev_exports = {};
|
|
25
|
-
__export(dev_exports, {
|
|
26
|
-
dev: () => dev
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(dev_exports);
|
|
29
|
-
var import_promises = require("fs/promises"), import_path = require("path"), import_vite_plugin = require("@tamagui/vite-plugin"), import_chalk = __toESM(require("chalk")), import_fs_extra = __toESM(require("fs-extra")), import_vite = require("vite"), import_createDevServer = require("./dev/createDevServer"), import_utils = require("./utils");
|
|
30
|
-
const dev = async (options) => {
|
|
31
|
-
var _a;
|
|
32
|
-
const { root, mode, paths } = options;
|
|
33
|
-
process.chdir(process.cwd()), await (0, import_vite_plugin.nativePrebuild)();
|
|
34
|
-
const plugins = [
|
|
35
|
-
(0, import_vite_plugin.tamaguiPlugin)({
|
|
36
|
-
components: ["tamagui"],
|
|
37
|
-
target: "native"
|
|
38
|
-
}),
|
|
39
|
-
(0, import_vite_plugin.nativePlugin)()
|
|
40
|
-
], rootFile = (0, import_path.join)(root, "src/test-tamagui-stack.tsx");
|
|
41
|
-
console.log("root", root, rootFile);
|
|
42
|
-
const server = await (0, import_vite.createServer)({
|
|
43
|
-
root: rootFile,
|
|
44
|
-
mode: "development",
|
|
45
|
-
plugins,
|
|
46
|
-
server: {
|
|
47
|
-
port: options.port,
|
|
48
|
-
host: options.host || "localhost"
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
await server.listen(), await (0, import_fs_extra.ensureDir)(options.paths.dotDir);
|
|
52
|
-
const info = (_a = server.httpServer) == null ? void 0 : _a.address(), port = 8081, defaultResponse = {
|
|
53
|
-
name: "myapp",
|
|
54
|
-
slug: "myapp",
|
|
55
|
-
scheme: "myapp",
|
|
56
|
-
version: "1.0.0",
|
|
57
|
-
jsEngine: "jsc",
|
|
58
|
-
orientation: "portrait",
|
|
59
|
-
icon: "./assets/icon.png",
|
|
60
|
-
userInterfaceStyle: "light",
|
|
61
|
-
splash: {
|
|
62
|
-
image: "./assets/splash.png",
|
|
63
|
-
resizeMode: "contain",
|
|
64
|
-
backgroundColor: "#ffffff",
|
|
65
|
-
imageUrl: "http://127.0.0.1:8081/assets/./assets/splash.png"
|
|
66
|
-
},
|
|
67
|
-
updates: { fallbackToCacheTimeout: 0 },
|
|
68
|
-
assetBundlePatterns: ["**/*"],
|
|
69
|
-
ios: { supportsTablet: !0, bundleIdentifier: "com.natew.myapp" },
|
|
70
|
-
android: {
|
|
71
|
-
package: "com.tamagui.myapp",
|
|
72
|
-
adaptiveIcon: {
|
|
73
|
-
foregroundImage: "./assets/adaptive-icon.png",
|
|
74
|
-
backgroundColor: "#FFFFFF",
|
|
75
|
-
foregroundImageUrl: "http://127.0.0.1:8081/assets/./assets/adaptive-icon.png"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
web: { favicon: "./assets/favicon.png" },
|
|
79
|
-
extra: { eas: { projectId: "061b4470-78c7-4d6a-b850-8167fb0a3434" } },
|
|
80
|
-
_internal: {
|
|
81
|
-
isDebug: !1,
|
|
82
|
-
projectRoot: "/Users/n8/tamagui/apps/kitchen-sink",
|
|
83
|
-
dynamicConfigPath: null,
|
|
84
|
-
staticConfigPath: "/Users/n8/tamagui/apps/kitchen-sink/app.json",
|
|
85
|
-
packageJsonPath: "/Users/n8/tamagui/apps/kitchen-sink/package.json"
|
|
86
|
-
},
|
|
87
|
-
sdkVersion: "47.0.0",
|
|
88
|
-
platforms: ["ios", "android", "web"],
|
|
89
|
-
iconUrl: `http://127.0.0.1:${port}/assets/./assets/icon.png`,
|
|
90
|
-
debuggerHost: `127.0.0.1:${port}`,
|
|
91
|
-
logUrl: `http://127.0.0.1:${port}/logs`,
|
|
92
|
-
developer: { tool: "expo-cli", projectRoot: "/Users/n8/tamagui/apps/kitchen-sink" },
|
|
93
|
-
packagerOpts: { dev: !0 },
|
|
94
|
-
mainModuleName: "index",
|
|
95
|
-
__flipperHack: "React Native packager is running",
|
|
96
|
-
hostUri: `127.0.0.1:${port}`,
|
|
97
|
-
bundleUrl: `http://127.0.0.1:${port}/index.bundle?platform=ios&dev=true&hot=false`,
|
|
98
|
-
id: "@anonymous/myapp-473c4543-3c36-4786-9db1-c66a62ac9b78"
|
|
99
|
-
}, dispose = await (0, import_createDevServer.createDevServer)(options, {
|
|
100
|
-
getIndexBundle: getBundle,
|
|
101
|
-
indexJson: defaultResponse
|
|
102
|
-
});
|
|
103
|
-
console.log("Listening on:", import_chalk.default.green(`http://localhost:${port}`)), server.printUrls(), (0, import_utils.registerDispose)(() => {
|
|
104
|
-
dispose(), server.close();
|
|
105
|
-
}), await new Promise((res) => {
|
|
106
|
-
var _a2;
|
|
107
|
-
return (_a2 = server.httpServer) == null ? void 0 : _a2.on("close", res);
|
|
108
|
-
}), console.log("closed");
|
|
109
|
-
async function getBundle() {
|
|
110
|
-
console.log("get bundle");
|
|
111
|
-
const outputJsPath = (0, import_path.join)(process.cwd(), ".tamagui", "bundle.js"), outputCode = await getBundleCode();
|
|
112
|
-
return import_fs_extra.default.writeFile(outputJsPath, outputCode), outputCode;
|
|
113
|
-
}
|
|
114
|
-
async function getBundleCode() {
|
|
115
|
-
const buildOutput = await (0, import_vite.build)({
|
|
116
|
-
// @ts-ignore
|
|
117
|
-
plugins,
|
|
118
|
-
appType: "custom",
|
|
119
|
-
root,
|
|
120
|
-
build: {
|
|
121
|
-
ssr: !0
|
|
122
|
-
},
|
|
123
|
-
ssr: {
|
|
124
|
-
format: "cjs",
|
|
125
|
-
target: "node"
|
|
126
|
-
},
|
|
127
|
-
mode: "development",
|
|
128
|
-
define: {
|
|
129
|
-
__DEV__: "true",
|
|
130
|
-
"process.env.NODE_ENV": '"development"'
|
|
131
|
-
}
|
|
132
|
-
}), appCode = "output" in buildOutput ? buildOutput.output[0].code : null;
|
|
133
|
-
if (console.log("built", appCode), !appCode)
|
|
134
|
-
throw "\u274C";
|
|
135
|
-
const [react, reactJsxRuntime, reactNative] = await Promise.all([
|
|
136
|
-
(0, import_promises.readFile)((0, import_path.join)(process.cwd(), "testing-area", "react.js"), "utf-8"),
|
|
137
|
-
(0, import_promises.readFile)((0, import_path.join)(process.cwd(), "testing-area", "react-jsx-runtime.js"), "utf-8"),
|
|
138
|
-
(0, import_promises.readFile)((0, import_path.join)(process.cwd(), "testing-area", "react-native.js"), "utf-8")
|
|
139
|
-
]), reactCode = react.replace(
|
|
140
|
-
"module.exports = require_react_development();",
|
|
141
|
-
"return require_react_development()"
|
|
142
|
-
), reactJSXRuntimeCode = reactJsxRuntime.replace(
|
|
143
|
-
"module.exports = require_react_jsx_runtime_production_min();",
|
|
144
|
-
"return require_react_jsx_runtime_production_min()"
|
|
145
|
-
), reactNativeCode = reactNative.replace(
|
|
146
|
-
"module.exports = require_react_native();",
|
|
147
|
-
"return require_react_native()"
|
|
148
|
-
).replace(
|
|
149
|
-
"renderable = /* @__PURE__ */ react(RootComponentWithMeaningfulName, null, renderable);",
|
|
150
|
-
""
|
|
151
|
-
), templateFile = (0, import_path.join)(__dirname, "..", "react-native-template.js");
|
|
152
|
-
return console.log("reding template", templateFile), (await (0, import_promises.readFile)(templateFile, "utf-8")).replace("// -- react --", reactCode).replace("// -- react-native --", reactNativeCode).replace("// -- react/jsx-runtime --", reactJSXRuntimeCode).replace("// -- app --", appCode);
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
156
|
-
0 && (module.exports = {
|
|
157
|
-
dev
|
|
158
|
-
});
|
|
159
|
-
//# sourceMappingURL=dev.js.map
|
package/dist/dev.native.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/dev.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAyB,wBAEzB,cAAqB,iBAGrB,qBAA4D,iCAC5D,eAAkB,2BAClB,kBAA8B,8BAC9B,cAAoC,iBAEpC,yBAAgC,kCAChC,eAAgC;AAEzB,MAAM,MAAM,OAAO,YAAgC;AAb1D;AAcE,QAAM,EAAE,MAAM,MAAM,MAAM,IAAI;AAE9B,UAAQ,MAAM,QAAQ,IAAI,CAAC,GAG3B,UAA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AAS;AAAA,QACT,wBAAwB;AAAA,MAC1B;AAAA,IACF,CAAC,GAEK,UAAU,YAAY,cAAc,YAAY,OAAO,CAAC,EAAE,OAAO;AAIvE,QAFA,QAAQ,IAAI,SAAS,OAAO,GAExB,CAAC;AACH,YAAM;AAGR,UAAM,CAAC,OAAO,iBAAiB,WAAW,IAAI,MAAM,QAAQ,IAAI;AAAA,UAC9D,8BAAS,kBAAK,QAAQ,IAAI,GAAG,gBAAgB,UAAU,GAAG,OAAO;AAAA,UACjE,8BAAS,kBAAK,QAAQ,IAAI,GAAG,gBAAgB,sBAAsB,GAAG,OAAO;AAAA,UAC7E,8BAAS,kBAAK,QAAQ,IAAI,GAAG,gBAAgB,iBAAiB,GAAG,OAAO;AAAA,IAC1E,CAAC,GAEK,YAAY,MAAM;AAAA,MACtB;AAAA,MACA;AAAA,IACF,GAEM,sBAAsB,gBAAgB;AAAA,MAC1C;AAAA,MACA;AAAA,IACF,GAEM,kBAAkB,YACrB;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,GAEI,mBAAe,kBAAK,WAAW,MAAM,0BAA0B;AAErE,mBAAQ,IAAI,mBAAmB,YAAY,IAEnC,UAAM,0BAAS,cAAc,OAAO,GACzC,QAAQ,kBAAkB,SAAS,EACnC,QAAQ,yBAAyB,eAAe,EAChD,QAAQ,8BAA8B,mBAAmB,EACzD,QAAQ,gBAAgB,OAAO;AAAA,EACpC;AACF;",
|
|
5
|
-
"names": ["chalk", "_a", "fs"]
|
|
6
|
-
}
|
package/dist/test.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var test_exports = {};
|
|
24
|
-
__export(test_exports, {
|
|
25
|
-
test: () => test
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(test_exports);
|
|
28
|
-
const test = async (options) => {
|
|
29
|
-
const { dev } = await import("./dev.js");
|
|
30
|
-
dev(options), console.log("run tests");
|
|
31
|
-
};
|
|
32
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
-
0 && (module.exports = {
|
|
34
|
-
test
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=test.js.map
|
package/dist/test.js.map
DELETED
package/dist/test.native.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var test_exports = {};
|
|
25
|
-
__export(test_exports, {
|
|
26
|
-
test: () => test
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(test_exports);
|
|
29
|
-
const test = async (options) => {
|
|
30
|
-
const { dev } = await import("./dev.js");
|
|
31
|
-
dev(options), console.log("run tests");
|
|
32
|
-
};
|
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
-
0 && (module.exports = {
|
|
35
|
-
test
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=test.js.map
|
package/dist/test.native.js.map
DELETED
package/dist/utils/constants.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var constants_exports = {};
|
|
16
|
-
__export(constants_exports, {
|
|
17
|
-
DEFAULT_PORT: () => DEFAULT_PORT
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(constants_exports);
|
|
20
|
-
const DEFAULT_PORT = 8081;
|
|
21
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
-
0 && (module.exports = {
|
|
23
|
-
DEFAULT_PORT
|
|
24
|
-
});
|
|
25
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var constants_exports = {};
|
|
17
|
-
__export(constants_exports, {
|
|
18
|
-
DEFAULT_PORT: () => DEFAULT_PORT
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(constants_exports);
|
|
21
|
-
const DEFAULT_PORT = 8081;
|
|
22
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
-
0 && (module.exports = {
|
|
24
|
-
DEFAULT_PORT
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var debugger_app_exports = {};
|
|
16
|
-
__export(debugger_app_exports, {
|
|
17
|
-
default: () => debugger_app_default
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(debugger_app_exports);
|
|
20
|
-
var import_url = require("url");
|
|
21
|
-
const import_meta = {};
|
|
22
|
-
var debugger_app_default = (0, import_url.fileURLToPath)(new import_url.URL("./dist", import_meta.url));
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var debugger_app_exports = {};
|
|
17
|
-
__export(debugger_app_exports, {
|
|
18
|
-
default: () => debugger_app_default
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(debugger_app_exports);
|
|
21
|
-
var import_url = require("url");
|
|
22
|
-
const import_meta = {};
|
|
23
|
-
var debugger_app_default = (0, import_url.fileURLToPath)(new import_url.URL("./dist", import_meta.url));
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
onmessage = function() {
|
|
2
|
-
var visibilityState, showVisibilityWarning = function() {
|
|
3
|
-
var hasWarned = !1;
|
|
4
|
-
return function() {
|
|
5
|
-
hasWarned || console.warn.toString().includes("[native code]") || (hasWarned = !0, console.warn(
|
|
6
|
-
"Remote debugger is in a background tab which may cause apps to perform slowly. Fix this by foregrounding the tab (or opening it in a separate window)."
|
|
7
|
-
));
|
|
8
|
-
};
|
|
9
|
-
}(), messageHandlers = {
|
|
10
|
-
executeApplicationScript: function(message, sendReply) {
|
|
11
|
-
for (var key in message.inject)
|
|
12
|
-
self[key] = JSON.parse(message.inject[key]);
|
|
13
|
-
var error;
|
|
14
|
-
try {
|
|
15
|
-
importScripts(message.url);
|
|
16
|
-
} catch (err) {
|
|
17
|
-
error = err.message;
|
|
18
|
-
}
|
|
19
|
-
sendReply(null, error);
|
|
20
|
-
},
|
|
21
|
-
setDebuggerVisibility: function(message) {
|
|
22
|
-
visibilityState = message.visibilityState;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
return function(message) {
|
|
26
|
-
visibilityState === "hidden" && showVisibilityWarning();
|
|
27
|
-
var object = message.data, sendReply = function(result, error2) {
|
|
28
|
-
postMessage({ replyID: object.id, result, error: error2 });
|
|
29
|
-
}, handler = messageHandlers[object.method];
|
|
30
|
-
if (handler)
|
|
31
|
-
handler(object, sendReply);
|
|
32
|
-
else {
|
|
33
|
-
var returnValue = [[], [], [], 0], error;
|
|
34
|
-
try {
|
|
35
|
-
typeof __fbBatchedBridge == "object" ? returnValue = __fbBatchedBridge[object.method].apply(
|
|
36
|
-
null,
|
|
37
|
-
object.arguments
|
|
38
|
-
) : error = "Failed to call function, __fbBatchedBridge is undefined";
|
|
39
|
-
} catch (err) {
|
|
40
|
-
error = err.message;
|
|
41
|
-
} finally {
|
|
42
|
-
sendReply(JSON.stringify(returnValue), error);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
}();
|
|
47
|
-
//# sourceMappingURL=debuggerWorker.js.map
|
|
@@ -1,6 +0,0 @@
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