@apps-in-toss/web-framework 0.0.39 → 1.0.0
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/cli/{chunk-PT6B3KQJ.js → chunk-4QYXKJID.js} +2 -2
- package/dist/cli/{chunk-AZQN2M6D.js → chunk-GXCMR4MK.js} +1 -1
- package/dist/cli/index.js +154 -159
- package/dist/cli/{lib-GNFDOQZX.js → lib-AYUPV6FY.js} +2 -2
- package/dist/cli/typescript-L5EPUEWV.js +6 -0
- package/dist/config/index.js +1 -0
- package/dist/prebuilt/dev.android.js +52329 -59497
- package/dist/prebuilt/dev.ios.js +63074 -70223
- package/dist/prebuilt/prod.android.js +14761 -13283
- package/dist/prebuilt/prod.ios.js +14766 -13304
- package/package.json +20 -31
- package/dist/cli/typescript-WPGJO2BO.js +0 -6
- package/dist/prebuilt/prod.json +0 -14
package/dist/cli/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createRequire } from 'module'; const require =
|
|
1
|
+
import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
require_typescript
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4QYXKJID.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__dirname,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__require,
|
|
11
11
|
__toESM,
|
|
12
12
|
init_esm_shims
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GXCMR4MK.js";
|
|
14
14
|
|
|
15
15
|
// ../../.yarn/cache/sisteransi-npm-1.0.5-a80f5ef7c8-230ac975cc.zip/node_modules/sisteransi/src/index.js
|
|
16
16
|
var require_src = __commonJS({
|
|
@@ -5484,9 +5484,9 @@ var require_js_yaml = __commonJS({
|
|
|
5484
5484
|
}
|
|
5485
5485
|
});
|
|
5486
5486
|
|
|
5487
|
-
// ../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
5487
|
+
// ../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/loaders.js
|
|
5488
5488
|
var require_loaders = __commonJS({
|
|
5489
|
-
"../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
5489
|
+
"../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/loaders.js"(exports) {
|
|
5490
5490
|
"use strict";
|
|
5491
5491
|
init_esm_shims();
|
|
5492
5492
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
@@ -5581,7 +5581,7 @@ ${error.message}`;
|
|
|
5581
5581
|
exports.loadTsSync = loadTsSync;
|
|
5582
5582
|
var loadTs = async function loadTs2(filepath, content) {
|
|
5583
5583
|
if (typescript === void 0) {
|
|
5584
|
-
typescript = (await import("./typescript-
|
|
5584
|
+
typescript = (await import("./typescript-L5EPUEWV.js")).default;
|
|
5585
5585
|
}
|
|
5586
5586
|
const compiledFilepath = `${filepath.slice(0, -2)}mjs`;
|
|
5587
5587
|
let transpiledContent;
|
|
@@ -5626,9 +5626,9 @@ ${error.message}`;
|
|
|
5626
5626
|
}
|
|
5627
5627
|
});
|
|
5628
5628
|
|
|
5629
|
-
// ../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
5629
|
+
// ../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/defaults.js
|
|
5630
5630
|
var require_defaults = __commonJS({
|
|
5631
|
-
"../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
5631
|
+
"../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/defaults.js"(exports) {
|
|
5632
5632
|
"use strict";
|
|
5633
5633
|
init_esm_shims();
|
|
5634
5634
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5799,9 +5799,9 @@ var require_env_paths = __commonJS({
|
|
|
5799
5799
|
}
|
|
5800
5800
|
});
|
|
5801
5801
|
|
|
5802
|
-
// ../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
5802
|
+
// ../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/util.js
|
|
5803
5803
|
var require_util = __commonJS({
|
|
5804
|
-
"../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
5804
|
+
"../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/util.js"(exports) {
|
|
5805
5805
|
"use strict";
|
|
5806
5806
|
init_esm_shims();
|
|
5807
5807
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o3, m2, k3, k22) {
|
|
@@ -5888,9 +5888,9 @@ var require_util = __commonJS({
|
|
|
5888
5888
|
}
|
|
5889
5889
|
});
|
|
5890
5890
|
|
|
5891
|
-
// ../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
5891
|
+
// ../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/ExplorerBase.js
|
|
5892
5892
|
var require_ExplorerBase = __commonJS({
|
|
5893
|
-
"../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
5893
|
+
"../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/ExplorerBase.js"(exports) {
|
|
5894
5894
|
"use strict";
|
|
5895
5895
|
init_esm_shims();
|
|
5896
5896
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
@@ -6007,9 +6007,9 @@ ${[...importStack, fullPath].map((path9, i2) => `${i2 + 1}. ${path9}`).join("\n"
|
|
|
6007
6007
|
}
|
|
6008
6008
|
});
|
|
6009
6009
|
|
|
6010
|
-
// ../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
6010
|
+
// ../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/merge.js
|
|
6011
6011
|
var require_merge2 = __commonJS({
|
|
6012
|
-
"../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
6012
|
+
"../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/merge.js"(exports) {
|
|
6013
6013
|
"use strict";
|
|
6014
6014
|
init_esm_shims();
|
|
6015
6015
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6044,9 +6044,9 @@ var require_merge2 = __commonJS({
|
|
|
6044
6044
|
}
|
|
6045
6045
|
});
|
|
6046
6046
|
|
|
6047
|
-
// ../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
6047
|
+
// ../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/Explorer.js
|
|
6048
6048
|
var require_Explorer = __commonJS({
|
|
6049
|
-
"../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
6049
|
+
"../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/Explorer.js"(exports) {
|
|
6050
6050
|
"use strict";
|
|
6051
6051
|
init_esm_shims();
|
|
6052
6052
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
@@ -6203,9 +6203,9 @@ var require_Explorer = __commonJS({
|
|
|
6203
6203
|
}
|
|
6204
6204
|
});
|
|
6205
6205
|
|
|
6206
|
-
// ../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
6206
|
+
// ../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/ExplorerSync.js
|
|
6207
6207
|
var require_ExplorerSync = __commonJS({
|
|
6208
|
-
"../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
6208
|
+
"../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/ExplorerSync.js"(exports) {
|
|
6209
6209
|
"use strict";
|
|
6210
6210
|
init_esm_shims();
|
|
6211
6211
|
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
@@ -6376,9 +6376,9 @@ var require_ExplorerSync = __commonJS({
|
|
|
6376
6376
|
}
|
|
6377
6377
|
});
|
|
6378
6378
|
|
|
6379
|
-
// ../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
6379
|
+
// ../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/index.js
|
|
6380
6380
|
var require_dist = __commonJS({
|
|
6381
|
-
"../../.yarn/__virtual__/cosmiconfig-virtual-
|
|
6381
|
+
"../../.yarn/__virtual__/cosmiconfig-virtual-6be535658c/0/cache/cosmiconfig-npm-9.0.0-1cc563163a-1c1703be4f.zip/node_modules/cosmiconfig/dist/index.js"(exports) {
|
|
6382
6382
|
"use strict";
|
|
6383
6383
|
init_esm_shims();
|
|
6384
6384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -55838,19 +55838,19 @@ var require_picocolors2 = __commonJS({
|
|
|
55838
55838
|
// src/cli/index.ts
|
|
55839
55839
|
init_esm_shims();
|
|
55840
55840
|
|
|
55841
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
55841
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/index.mjs
|
|
55842
55842
|
init_esm_shims();
|
|
55843
55843
|
|
|
55844
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
55844
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/Command.mjs
|
|
55845
55845
|
init_esm_shims();
|
|
55846
55846
|
|
|
55847
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
55847
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/options/utils.mjs
|
|
55848
55848
|
init_esm_shims();
|
|
55849
55849
|
|
|
55850
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
55850
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/errors.mjs
|
|
55851
55851
|
init_esm_shims();
|
|
55852
55852
|
|
|
55853
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
55853
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/constants.mjs
|
|
55854
55854
|
init_esm_shims();
|
|
55855
55855
|
var SpecialToken;
|
|
55856
55856
|
(function(SpecialToken2) {
|
|
@@ -55872,7 +55872,7 @@ var BATCH_REGEX = /^-[a-zA-Z]{2,}$/;
|
|
|
55872
55872
|
var BINDING_REGEX = /^([^=]+)=([\s\S]*)$/;
|
|
55873
55873
|
var IS_DEBUG = process.env.DEBUG_CLI === `1`;
|
|
55874
55874
|
|
|
55875
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
55875
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/errors.mjs
|
|
55876
55876
|
var UsageError = class extends Error {
|
|
55877
55877
|
constructor(message) {
|
|
55878
55878
|
super(message);
|
|
@@ -55941,7 +55941,7 @@ var whileRunning = (input) => `While running ${input.filter((token) => {
|
|
|
55941
55941
|
}
|
|
55942
55942
|
}).join(` `)}`;
|
|
55943
55943
|
|
|
55944
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
55944
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/options/utils.mjs
|
|
55945
55945
|
var isOptionSymbol = Symbol(`clipanion/isOption`);
|
|
55946
55946
|
function makeCommandOption(spec) {
|
|
55947
55947
|
return { ...spec, [isOptionSymbol]: true };
|
|
@@ -55992,7 +55992,7 @@ function applyValidator(name, value2, validator) {
|
|
|
55992
55992
|
return value2;
|
|
55993
55993
|
}
|
|
55994
55994
|
|
|
55995
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
55995
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/Command.mjs
|
|
55996
55996
|
var Command = class {
|
|
55997
55997
|
constructor() {
|
|
55998
55998
|
this.help = false;
|
|
@@ -56015,7 +56015,7 @@ var Command = class {
|
|
|
56015
56015
|
const commandClass = this.constructor;
|
|
56016
56016
|
const cascade = commandClass.schema;
|
|
56017
56017
|
if (Array.isArray(cascade)) {
|
|
56018
|
-
const { isDict, isUnknown, applyCascade } = await import("./lib-
|
|
56018
|
+
const { isDict, isUnknown, applyCascade } = await import("./lib-AYUPV6FY.js");
|
|
56019
56019
|
const schema = applyCascade(isDict(isUnknown()), cascade);
|
|
56020
56020
|
const errors = [];
|
|
56021
56021
|
const coercions = [];
|
|
@@ -56039,10 +56039,10 @@ var Command = class {
|
|
|
56039
56039
|
Command.isOption = isOptionSymbol;
|
|
56040
56040
|
Command.Default = [];
|
|
56041
56041
|
|
|
56042
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
56042
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/Cli.mjs
|
|
56043
56043
|
init_esm_shims();
|
|
56044
56044
|
|
|
56045
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
56045
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/platform/node.mjs
|
|
56046
56046
|
init_esm_shims();
|
|
56047
56047
|
import tty from "tty";
|
|
56048
56048
|
function getDefaultColorDepth() {
|
|
@@ -56084,7 +56084,7 @@ function getCaptureActivator(context) {
|
|
|
56084
56084
|
};
|
|
56085
56085
|
}
|
|
56086
56086
|
|
|
56087
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
56087
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/core.mjs
|
|
56088
56088
|
init_esm_shims();
|
|
56089
56089
|
function debug(str) {
|
|
56090
56090
|
if (IS_DEBUG) {
|
|
@@ -56812,7 +56812,7 @@ var CliBuilder = class _CliBuilder {
|
|
|
56812
56812
|
}
|
|
56813
56813
|
};
|
|
56814
56814
|
|
|
56815
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
56815
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/format.mjs
|
|
56816
56816
|
init_esm_shims();
|
|
56817
56817
|
var MAX_LINE_LENGTH = 80;
|
|
56818
56818
|
var richLine = Array(MAX_LINE_LENGTH).fill(`\u2501`);
|
|
@@ -56872,7 +56872,7 @@ function formatMarkdownish(text, { format: format2, paragraphs }) {
|
|
|
56872
56872
|
` : ``;
|
|
56873
56873
|
}
|
|
56874
56874
|
|
|
56875
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
56875
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/HelpCommand.mjs
|
|
56876
56876
|
init_esm_shims();
|
|
56877
56877
|
var HelpCommand = class _HelpCommand extends Command {
|
|
56878
56878
|
static from(state, contexts) {
|
|
@@ -56923,7 +56923,7 @@ var HelpCommand = class _HelpCommand extends Command {
|
|
|
56923
56923
|
}
|
|
56924
56924
|
};
|
|
56925
56925
|
|
|
56926
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
56926
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/Cli.mjs
|
|
56927
56927
|
var errorCommandSymbol = Symbol(`clipanion/errorCommand`);
|
|
56928
56928
|
var Cli = class _Cli {
|
|
56929
56929
|
/**
|
|
@@ -57283,7 +57283,7 @@ function noopCaptureActivator(fn) {
|
|
|
57283
57283
|
return fn();
|
|
57284
57284
|
}
|
|
57285
57285
|
|
|
57286
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
57286
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/options/Proxy.mjs
|
|
57287
57287
|
init_esm_shims();
|
|
57288
57288
|
function Proxy(opts = {}) {
|
|
57289
57289
|
return makeCommandOption({
|
|
@@ -57300,7 +57300,7 @@ function Proxy(opts = {}) {
|
|
|
57300
57300
|
});
|
|
57301
57301
|
}
|
|
57302
57302
|
|
|
57303
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
57303
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/options/index.mjs
|
|
57304
57304
|
var options_exports = {};
|
|
57305
57305
|
__export(options_exports, {
|
|
57306
57306
|
Array: () => Array2,
|
|
@@ -57318,7 +57318,7 @@ __export(options_exports, {
|
|
|
57318
57318
|
});
|
|
57319
57319
|
init_esm_shims();
|
|
57320
57320
|
|
|
57321
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
57321
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/options/Array.mjs
|
|
57322
57322
|
init_esm_shims();
|
|
57323
57323
|
function Array2(descriptor, initialValueBase, optsBase) {
|
|
57324
57324
|
const [initialValue, opts] = rerouteArguments(initialValueBase, optsBase !== null && optsBase !== void 0 ? optsBase : {});
|
|
@@ -57354,7 +57354,7 @@ function Array2(descriptor, initialValueBase, optsBase) {
|
|
|
57354
57354
|
});
|
|
57355
57355
|
}
|
|
57356
57356
|
|
|
57357
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
57357
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/options/Boolean.mjs
|
|
57358
57358
|
init_esm_shims();
|
|
57359
57359
|
function Boolean2(descriptor, initialValueBase, optsBase) {
|
|
57360
57360
|
const [initialValue, opts] = rerouteArguments(initialValueBase, optsBase !== null && optsBase !== void 0 ? optsBase : {});
|
|
@@ -57383,7 +57383,7 @@ function Boolean2(descriptor, initialValueBase, optsBase) {
|
|
|
57383
57383
|
});
|
|
57384
57384
|
}
|
|
57385
57385
|
|
|
57386
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
57386
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/options/Counter.mjs
|
|
57387
57387
|
init_esm_shims();
|
|
57388
57388
|
function Counter(descriptor, initialValueBase, optsBase) {
|
|
57389
57389
|
const [initialValue, opts] = rerouteArguments(initialValueBase, optsBase !== null && optsBase !== void 0 ? optsBase : {});
|
|
@@ -57417,7 +57417,7 @@ function Counter(descriptor, initialValueBase, optsBase) {
|
|
|
57417
57417
|
});
|
|
57418
57418
|
}
|
|
57419
57419
|
|
|
57420
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
57420
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/options/Rest.mjs
|
|
57421
57421
|
init_esm_shims();
|
|
57422
57422
|
function Rest(opts = {}) {
|
|
57423
57423
|
return makeCommandOption({
|
|
@@ -57445,7 +57445,7 @@ function Rest(opts = {}) {
|
|
|
57445
57445
|
});
|
|
57446
57446
|
}
|
|
57447
57447
|
|
|
57448
|
-
// ../../.yarn/__virtual__/clipanion-virtual-
|
|
57448
|
+
// ../../.yarn/__virtual__/clipanion-virtual-3a24346dfa/0/cache/clipanion-npm-4.0.0-rc.4-8228e3d944-047b415b59.zip/node_modules/clipanion/lib/advanced/options/String.mjs
|
|
57449
57449
|
init_esm_shims();
|
|
57450
57450
|
function StringOption(descriptor, initialValueBase, optsBase) {
|
|
57451
57451
|
const [initialValue, opts] = rerouteArguments(initialValueBase, optsBase !== null && optsBase !== void 0 ? optsBase : {});
|
|
@@ -57753,21 +57753,21 @@ var Te = async (t2) => {
|
|
|
57753
57753
|
};
|
|
57754
57754
|
|
|
57755
57755
|
// src/cli/commands/BuildCommand.ts
|
|
57756
|
-
import { getPackageRoot as getPackageRoot4 } from "@
|
|
57756
|
+
import { getPackageRoot as getPackageRoot4 } from "@granite-js/utils";
|
|
57757
57757
|
|
|
57758
57758
|
// src/config/loadConfig.ts
|
|
57759
57759
|
init_esm_shims();
|
|
57760
57760
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
57761
|
-
import { getPackageRoot } from "@
|
|
57761
|
+
import { getPackageRoot } from "@granite-js/utils";
|
|
57762
57762
|
|
|
57763
|
-
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-
|
|
57763
|
+
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-2f1fb2d612/0/cache/cosmiconfig-typescript-loader-npm-5.1.0-81c399fbcb-9c87ade7b0.zip/node_modules/cosmiconfig-typescript-loader/dist/esm/index.mjs
|
|
57764
57764
|
init_esm_shims();
|
|
57765
57765
|
|
|
57766
|
-
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-
|
|
57766
|
+
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-2f1fb2d612/0/cache/cosmiconfig-typescript-loader-npm-5.1.0-81c399fbcb-9c87ade7b0.zip/node_modules/cosmiconfig-typescript-loader/dist/esm/loader.mjs
|
|
57767
57767
|
init_esm_shims();
|
|
57768
57768
|
var import_jiti = __toESM(require_lib4(), 1);
|
|
57769
57769
|
|
|
57770
|
-
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-
|
|
57770
|
+
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-2f1fb2d612/0/cache/cosmiconfig-typescript-loader-npm-5.1.0-81c399fbcb-9c87ade7b0.zip/node_modules/cosmiconfig-typescript-loader/dist/esm/typescript-compile-error.mjs
|
|
57771
57771
|
init_esm_shims();
|
|
57772
57772
|
var TypeScriptCompileError = class _TypeScriptCompileError extends Error {
|
|
57773
57773
|
constructor(message) {
|
|
@@ -57784,7 +57784,7 @@ ${error.message}`;
|
|
|
57784
57784
|
}
|
|
57785
57785
|
};
|
|
57786
57786
|
|
|
57787
|
-
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-
|
|
57787
|
+
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-2f1fb2d612/0/cache/cosmiconfig-typescript-loader-npm-5.1.0-81c399fbcb-9c87ade7b0.zip/node_modules/cosmiconfig-typescript-loader/dist/esm/loader.mjs
|
|
57788
57788
|
function TypeScriptLoader(options) {
|
|
57789
57789
|
const loader = (0, import_jiti.default)("", { interopDefault: true, ...options });
|
|
57790
57790
|
return (path9) => {
|
|
@@ -57802,8 +57802,8 @@ function TypeScriptLoader(options) {
|
|
|
57802
57802
|
|
|
57803
57803
|
// src/config/loadConfig.ts
|
|
57804
57804
|
var loadConfig = async () => {
|
|
57805
|
-
const explorer = (0, import_cosmiconfig.cosmiconfig)("
|
|
57806
|
-
searchPlaces: ["
|
|
57805
|
+
const explorer = (0, import_cosmiconfig.cosmiconfig)("granite", {
|
|
57806
|
+
searchPlaces: ["granite.config.ts", "granite.config.mts", "granite.config.js", "granite.config.cjs"],
|
|
57807
57807
|
loaders: {
|
|
57808
57808
|
".ts": TypeScriptLoader(),
|
|
57809
57809
|
".mts": TypeScriptLoader()
|
|
@@ -57820,16 +57820,7 @@ import fs2 from "fs";
|
|
|
57820
57820
|
import path7 from "path";
|
|
57821
57821
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
57822
57822
|
import { transform } from "@babel/core";
|
|
57823
|
-
import { getPackageRoot as getPackageRoot3 } from "@
|
|
57824
|
-
|
|
57825
|
-
// ../../.yarn/cache/es-toolkit-npm-1.32.0-019fc7c155-56ba965570.zip/node_modules/es-toolkit/dist/index.mjs
|
|
57826
|
-
init_esm_shims();
|
|
57827
|
-
|
|
57828
|
-
// ../../.yarn/cache/es-toolkit-npm-1.32.0-019fc7c155-56ba965570.zip/node_modules/es-toolkit/dist/predicate/isNotNil.mjs
|
|
57829
|
-
init_esm_shims();
|
|
57830
|
-
function isNotNil(x) {
|
|
57831
|
-
return x != null;
|
|
57832
|
-
}
|
|
57823
|
+
import { getPackageRoot as getPackageRoot3 } from "@granite-js/utils";
|
|
57833
57824
|
|
|
57834
57825
|
// ../../.yarn/cache/uuidv7-npm-1.0.2-36affe4cb7-882187a3b6.zip/node_modules/uuidv7/dist/index.js
|
|
57835
57826
|
init_esm_shims();
|
|
@@ -58181,8 +58172,9 @@ init_esm_shims();
|
|
|
58181
58172
|
var __typia_transform__validateReport = __toESM(require_validateReport(), 1);
|
|
58182
58173
|
import fs from "fs";
|
|
58183
58174
|
import path6 from "path";
|
|
58184
|
-
import {
|
|
58185
|
-
import {
|
|
58175
|
+
import { createArtifact, collectDependencyVersions, appsInTossAppJson } from "@apps-in-toss/plugins";
|
|
58176
|
+
import { isBuildFailure, isBuildSuccess } from "@granite-js/plugin-core";
|
|
58177
|
+
import { getPackageRoot as getPackageRoot2 } from "@granite-js/utils";
|
|
58186
58178
|
|
|
58187
58179
|
// ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/index.js
|
|
58188
58180
|
init_esm_shims();
|
|
@@ -65528,7 +65520,7 @@ function appsInTossWebBuild(options) {
|
|
|
65528
65520
|
}
|
|
65529
65521
|
const webDistFiles = await fs.promises.readdir(webDistDir);
|
|
65530
65522
|
if (webDistFiles.length === 0) {
|
|
65531
|
-
throw new Error(`\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC774 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.
|
|
65523
|
+
throw new Error(`\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC774 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. granite.config.ts\uC5D0\uC11C \uC124\uC815\uD55C outdir \uACBD\uB85C\uC640 \uBE4C\uB4DC \uBA85\uB839\uC5B4(web.commands.build)\uC758 \uACB0\uACFC\uBB3C \uACBD\uB85C\uAC00 \uAC19\uC740\uC9C0 \uD655\uC778\uD558\uC138\uC694.`);
|
|
65532
65524
|
}
|
|
65533
65525
|
if (!webDistFiles.includes("index.html")) {
|
|
65534
65526
|
throw new Error(`\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC5D0 ${outdir}/web/index.html \uD30C\uC77C\uC774 \uD544\uC694\uD574\uC694. \uD604\uC7AC\uB294 CSR / SSG \uD658\uACBD\uB9CC \uC9C0\uC6D0\uD558\uACE0 \uC788\uC5B4\uC694.`);
|
|
@@ -65563,10 +65555,14 @@ function appsInTossCreateArtifact(deploymentId) {
|
|
|
65563
65555
|
handler: async ({ buildResults, appName, cwd, outdir }) => {
|
|
65564
65556
|
const { dependencies, devDependencies } = await collectDependencyVersions(cwd);
|
|
65565
65557
|
const additionalFilesToZip = await getWebDistFiles(path6.join(outdir, "web"));
|
|
65558
|
+
const buildFailed = buildResults.some(isBuildFailure);
|
|
65559
|
+
if (buildFailed) {
|
|
65560
|
+
throw new Error("\uBC88\uB4E4 \uBE4C\uB4DC \uC2E4\uD328");
|
|
65561
|
+
}
|
|
65566
65562
|
const artifactOutfile = await createArtifact({
|
|
65567
65563
|
reactNativeVersion: REACT_NATIVE_VERSION,
|
|
65568
65564
|
deploymentId,
|
|
65569
|
-
bundleFiles: buildResults.map(({ outfile, sourcemapOutfile, platform: platform2 }) => [
|
|
65565
|
+
bundleFiles: buildResults.filter(isBuildSuccess).map(({ outfile, sourcemapOutfile, platform: platform2 }) => [
|
|
65570
65566
|
{
|
|
65571
65567
|
path: outfile,
|
|
65572
65568
|
platform: platform2
|
|
@@ -65577,7 +65573,7 @@ function appsInTossCreateArtifact(deploymentId) {
|
|
|
65577
65573
|
}
|
|
65578
65574
|
]).flat(),
|
|
65579
65575
|
outfile: path6.join(cwd, `${appName}.ait`),
|
|
65580
|
-
appJsonPath: path6.join(packageRoot, ".
|
|
65576
|
+
appJsonPath: path6.join(packageRoot, ".granite", APP_MANIFEST_NAME),
|
|
65581
65577
|
additionalFilesToZip,
|
|
65582
65578
|
packageJson: {
|
|
65583
65579
|
dependencies,
|
|
@@ -65596,20 +65592,10 @@ function appsInTossCreateArtifact(deploymentId) {
|
|
|
65596
65592
|
function appsInTossWeb(deploymentId, options) {
|
|
65597
65593
|
const result = validateAppInTossWebPluginOptions(options);
|
|
65598
65594
|
if (!result.success) {
|
|
65599
|
-
console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.
|
|
65595
|
+
console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. granite.config.ts \uAD6C\uC131\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694.");
|
|
65600
65596
|
process.exit(1);
|
|
65601
65597
|
}
|
|
65602
|
-
|
|
65603
|
-
brand: options.brand,
|
|
65604
|
-
deploymentId
|
|
65605
|
-
});
|
|
65606
|
-
return [
|
|
65607
|
-
appsInTossAppJson(options),
|
|
65608
|
-
appsInTossWebBuild(options),
|
|
65609
|
-
appsInTossCreateArtifact(deploymentId),
|
|
65610
|
-
appsInTossEsbuildConfig(contents),
|
|
65611
|
-
appsInTossMetroConfig(envScriptPath)
|
|
65612
|
-
];
|
|
65598
|
+
return [appsInTossAppJson(options), appsInTossWebBuild(options), appsInTossCreateArtifact(deploymentId)];
|
|
65613
65599
|
}
|
|
65614
65600
|
|
|
65615
65601
|
// src/plugins/resolvePlugins.ts
|
|
@@ -65645,13 +65631,7 @@ async function resolvePlugins(plugins) {
|
|
|
65645
65631
|
}
|
|
65646
65632
|
|
|
65647
65633
|
// src/runPrebuildToBuild.ts
|
|
65648
|
-
async function babelBuild({
|
|
65649
|
-
platform: platform2,
|
|
65650
|
-
config,
|
|
65651
|
-
buildNumber,
|
|
65652
|
-
deploymentId
|
|
65653
|
-
}) {
|
|
65654
|
-
const packageRoot = getPackageRoot3();
|
|
65634
|
+
async function babelBuild({ platform: platform2, buildNumber, deploymentId, config }) {
|
|
65655
65635
|
const prebuilt = fileURLToPath3(import.meta.resolve(`@apps-in-toss/web-framework/prebuilt/prod/${platform2}`));
|
|
65656
65636
|
const bundle = await fs2.promises.readFile(prebuilt, "utf-8");
|
|
65657
65637
|
const result = await transform(bundle, {
|
|
@@ -65682,13 +65662,17 @@ async function babelBuild({
|
|
|
65682
65662
|
]
|
|
65683
65663
|
],
|
|
65684
65664
|
generatorOpts: {
|
|
65685
|
-
compact:
|
|
65665
|
+
compact: false,
|
|
65686
65666
|
comments: false
|
|
65687
65667
|
}
|
|
65688
65668
|
});
|
|
65669
|
+
return result;
|
|
65670
|
+
}
|
|
65671
|
+
async function writeBundle(result, { platform: platform2, config }) {
|
|
65689
65672
|
if (!(result?.code && result?.map)) {
|
|
65690
65673
|
throw new Error(`Failed to build ${platform2}`);
|
|
65691
65674
|
}
|
|
65675
|
+
const packageRoot = getPackageRoot3();
|
|
65692
65676
|
await fs2.promises.mkdir(path7.join(packageRoot, config.outdir), { recursive: true });
|
|
65693
65677
|
const basePath = path7.join(packageRoot, config.outdir);
|
|
65694
65678
|
const bundleName = `${config.appName}.${platform2}.js`;
|
|
@@ -65736,26 +65720,17 @@ async function runPrebuildToBuild(cwd, config) {
|
|
|
65736
65720
|
["ios", "android"].map((platform2) => ({
|
|
65737
65721
|
title: `Building ${platform2}`,
|
|
65738
65722
|
task: async () => {
|
|
65739
|
-
const
|
|
65723
|
+
const buildResult = await babelBuild({
|
|
65740
65724
|
config,
|
|
65741
65725
|
platform: platform2,
|
|
65742
65726
|
buildNumber,
|
|
65743
65727
|
deploymentId
|
|
65744
65728
|
});
|
|
65745
|
-
|
|
65729
|
+
const { bundlePath, sourcemapPath } = await writeBundle(buildResult, { platform: platform2, config });
|
|
65730
|
+
transformResults.push({ bundlePath, sourcemapPath, platform: platform2 });
|
|
65746
65731
|
}
|
|
65747
65732
|
}))
|
|
65748
65733
|
);
|
|
65749
|
-
const prodJsonFile = fileURLToPath3(import.meta.resolve(`@apps-in-toss/web-framework/prebuilt/prod.json`));
|
|
65750
|
-
const prodJson = await fs2.promises.readFile(prodJsonFile, "utf-8");
|
|
65751
|
-
const prod = JSON.parse(prodJson);
|
|
65752
|
-
const prodByPlatform = {
|
|
65753
|
-
ios: prod.find((p) => p.platform === "ios"),
|
|
65754
|
-
android: prod.find((p) => p.platform === "android")
|
|
65755
|
-
};
|
|
65756
|
-
if (!Object.values(prodByPlatform).every(isNotNil)) {
|
|
65757
|
-
throw new Error("Failed to build prod.json");
|
|
65758
|
-
}
|
|
65759
65734
|
for (const postHandler of resolvedPlugins.build.postHandlers) {
|
|
65760
65735
|
await postHandler?.call(pluginContext, {
|
|
65761
65736
|
cwd,
|
|
@@ -65773,7 +65748,10 @@ async function runPrebuildToBuild(cwd, config) {
|
|
|
65773
65748
|
metafile: { inputs: {}, outputs: {} },
|
|
65774
65749
|
mangleCache: {},
|
|
65775
65750
|
bundle: {},
|
|
65776
|
-
|
|
65751
|
+
duration: 0,
|
|
65752
|
+
platform: platform2,
|
|
65753
|
+
size: 0,
|
|
65754
|
+
totalModuleCount: 0
|
|
65777
65755
|
}))
|
|
65778
65756
|
});
|
|
65779
65757
|
}
|
|
@@ -65784,10 +65762,10 @@ var BuildCommand = class extends Command {
|
|
|
65784
65762
|
static paths = [[`build`]];
|
|
65785
65763
|
static usage = Command.Usage({
|
|
65786
65764
|
category: "Build",
|
|
65787
|
-
description: "
|
|
65765
|
+
description: "Granite App \uBC88\uB4E4\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4",
|
|
65788
65766
|
examples: [
|
|
65789
|
-
["\uBE4C\uB4DC\uD558\uAE30", "
|
|
65790
|
-
["\uC9C0\uC815\uB41C \uB300\uC0C1\uB9CC \uBE4C\uB4DC\uD558\uAE30", "
|
|
65767
|
+
["\uBE4C\uB4DC\uD558\uAE30", "granite build"],
|
|
65768
|
+
["\uC9C0\uC815\uB41C \uB300\uC0C1\uB9CC \uBE4C\uB4DC\uD558\uAE30", "granite build --id service-ios"]
|
|
65791
65769
|
]
|
|
65792
65770
|
});
|
|
65793
65771
|
tag = options_exports.String("--tag", {
|
|
@@ -65806,6 +65784,7 @@ var BuildCommand = class extends Command {
|
|
|
65806
65784
|
|
|
65807
65785
|
// src/cli/commands/DevCommand.ts
|
|
65808
65786
|
init_esm_shims();
|
|
65787
|
+
import { getPackageRoot as getPackageRoot5 } from "@granite-js/utils";
|
|
65809
65788
|
|
|
65810
65789
|
// ../../.yarn/__virtual__/@hono-node-server-virtual-cf2888014c/0/cache/@hono-node-server-npm-1.13.8-e78cfff928-5880892fdd.zip/node_modules/@hono/node-server/dist/index.mjs
|
|
65811
65790
|
init_esm_shims();
|
|
@@ -66266,9 +66245,6 @@ var serve = (options, listeningListener) => {
|
|
|
66266
66245
|
return server;
|
|
66267
66246
|
};
|
|
66268
66247
|
|
|
66269
|
-
// src/cli/commands/DevCommand.ts
|
|
66270
|
-
import { getPackageRoot as getPackageRoot5 } from "@react-native-bedrock/utils";
|
|
66271
|
-
|
|
66272
66248
|
// src/server.ts
|
|
66273
66249
|
init_esm_shims();
|
|
66274
66250
|
import fs3 from "fs";
|
|
@@ -68112,7 +68088,7 @@ function createWebSocketServer(app) {
|
|
|
68112
68088
|
);
|
|
68113
68089
|
return { injectWebSocket };
|
|
68114
68090
|
}
|
|
68115
|
-
var createApp = (
|
|
68091
|
+
var createApp = (config) => {
|
|
68116
68092
|
const app = new Hono2();
|
|
68117
68093
|
const transformCache = /* @__PURE__ */ new Map();
|
|
68118
68094
|
app.get("/status", (c4) => {
|
|
@@ -68120,13 +68096,14 @@ var createApp = ({ appName, web, permissions, webViewProps, brand }) => {
|
|
|
68120
68096
|
return c4.text("packager-status:running");
|
|
68121
68097
|
});
|
|
68122
68098
|
app.get("/permissions", (c4) => {
|
|
68123
|
-
return c4.text(parsePermissions(permissions));
|
|
68099
|
+
return c4.text(parsePermissions(config.permissions));
|
|
68124
68100
|
});
|
|
68125
68101
|
app.get("/index.bundle", async (c4) => {
|
|
68126
68102
|
const platform2 = c4.req.query("platform");
|
|
68127
|
-
const prebuilt = fileURLToPath4(import.meta.resolve(`@apps-in-toss/web-framework/prebuilt/dev/${platform2}`));
|
|
68128
|
-
const bundle = await fs3.promises.readFile(prebuilt, "utf-8");
|
|
68129
68103
|
const key = JSON.stringify([platform2]);
|
|
68104
|
+
if (platform2 == null) {
|
|
68105
|
+
return c4.text("Error: platform is required", 400);
|
|
68106
|
+
}
|
|
68130
68107
|
c4.header("Surrogate-Control", "no-store");
|
|
68131
68108
|
c4.header("Cache-Control", "no-store, no-cache, must-revalidate, proxy-revalidate");
|
|
68132
68109
|
c4.header("Pragma", "no-cache");
|
|
@@ -68135,60 +68112,75 @@ var createApp = ({ appName, web, permissions, webViewProps, brand }) => {
|
|
|
68135
68112
|
if (transformCache.has(key)) {
|
|
68136
68113
|
return c4.body(transformCache.get(key));
|
|
68137
68114
|
}
|
|
68138
|
-
|
|
68139
|
-
|
|
68140
|
-
|
|
68141
|
-
plugins: [
|
|
68142
|
-
[
|
|
68143
|
-
babelJsonReplacementPlugin,
|
|
68144
|
-
{
|
|
68145
|
-
json: {
|
|
68146
|
-
deploymentId: "local",
|
|
68147
|
-
buildNumber: "00000000",
|
|
68148
|
-
appName,
|
|
68149
|
-
webPort: web.port,
|
|
68150
|
-
webHost: web.host,
|
|
68151
|
-
brandDisplayName: brand.displayName,
|
|
68152
|
-
brandIcon: brand.icon,
|
|
68153
|
-
brandPrimaryColor: brand.primaryColor,
|
|
68154
|
-
brandBridgeColorMode: brand.bridgeColorMode,
|
|
68155
|
-
webViewType: webViewProps.type,
|
|
68156
|
-
webViewHeaderWithBackButton: webViewProps.header?.withBackButton,
|
|
68157
|
-
webViewInitialAccessoryButtons: JSON.stringify(webViewProps.header?.initialAccessoryButtons ?? []),
|
|
68158
|
-
...webViewProps
|
|
68159
|
-
},
|
|
68160
|
-
identifierName: "Ait"
|
|
68161
|
-
}
|
|
68162
|
-
]
|
|
68163
|
-
],
|
|
68164
|
-
generatorOpts: {
|
|
68165
|
-
compact: true,
|
|
68166
|
-
comments: false
|
|
68167
|
-
}
|
|
68168
|
-
});
|
|
68169
|
-
if (!result?.code) {
|
|
68115
|
+
console.log(`Building React Native bundle... (platform: ${platform2})`);
|
|
68116
|
+
const bundle = await (config.production ? buildProdBundle(platform2, config) : buildDevBundle(platform2, config));
|
|
68117
|
+
if (bundle == null) {
|
|
68170
68118
|
return c4.text("Error", 500);
|
|
68171
68119
|
}
|
|
68172
|
-
|
|
68173
|
-
|
|
68174
|
-
return c4.body(transformedCode);
|
|
68120
|
+
transformCache.set(key, bundle);
|
|
68121
|
+
return c4.body(bundle);
|
|
68175
68122
|
});
|
|
68176
68123
|
const wss = createWebSocketServer(app);
|
|
68177
68124
|
return { app, wss };
|
|
68178
68125
|
};
|
|
68126
|
+
async function buildDevBundle(platform2, { appName, web, brand, webViewProps }) {
|
|
68127
|
+
const prebuilt = fileURLToPath4(import.meta.resolve(`@apps-in-toss/web-framework/prebuilt/dev/${platform2}`));
|
|
68128
|
+
const bundle = await fs3.promises.readFile(prebuilt, "utf-8");
|
|
68129
|
+
const result = await transform2(bundle, {
|
|
68130
|
+
babelrc: false,
|
|
68131
|
+
configFile: false,
|
|
68132
|
+
plugins: [
|
|
68133
|
+
[
|
|
68134
|
+
babelJsonReplacementPlugin,
|
|
68135
|
+
{
|
|
68136
|
+
json: {
|
|
68137
|
+
deploymentId: "local",
|
|
68138
|
+
buildNumber: "00000000",
|
|
68139
|
+
appName,
|
|
68140
|
+
webPort: web.port,
|
|
68141
|
+
webHost: web.host,
|
|
68142
|
+
brandDisplayName: brand.displayName,
|
|
68143
|
+
brandIcon: brand.icon,
|
|
68144
|
+
brandPrimaryColor: brand.primaryColor,
|
|
68145
|
+
brandBridgeColorMode: brand.bridgeColorMode,
|
|
68146
|
+
webViewType: webViewProps.type,
|
|
68147
|
+
webViewHeaderWithBackButton: webViewProps.header?.withBackButton,
|
|
68148
|
+
webViewInitialAccessoryButtons: JSON.stringify(webViewProps.header?.initialAccessoryButtons ?? []),
|
|
68149
|
+
...webViewProps
|
|
68150
|
+
},
|
|
68151
|
+
identifierName: "Ait"
|
|
68152
|
+
}
|
|
68153
|
+
]
|
|
68154
|
+
],
|
|
68155
|
+
generatorOpts: {
|
|
68156
|
+
compact: true,
|
|
68157
|
+
comments: false
|
|
68158
|
+
}
|
|
68159
|
+
});
|
|
68160
|
+
return result?.code;
|
|
68161
|
+
}
|
|
68162
|
+
async function buildProdBundle(platform2, config) {
|
|
68163
|
+
const result = await babelBuild({
|
|
68164
|
+
platform: platform2,
|
|
68165
|
+
buildNumber: "00000000",
|
|
68166
|
+
deploymentId: "local",
|
|
68167
|
+
config
|
|
68168
|
+
});
|
|
68169
|
+
return result?.code;
|
|
68170
|
+
}
|
|
68179
68171
|
|
|
68180
68172
|
// src/utils/printLogo.ts
|
|
68181
68173
|
init_esm_shims();
|
|
68182
68174
|
var import_picocolors4 = __toESM(require_picocolors2(), 1);
|
|
68183
68175
|
var LOGO = [
|
|
68184
|
-
"\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\
|
|
68185
|
-
"\u2588\u2588\u2554\u2550\u2550\
|
|
68186
|
-
"\u2588\u2588\
|
|
68187
|
-
"\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\
|
|
68188
|
-
"\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\
|
|
68189
|
-
"\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\
|
|
68176
|
+
" \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2557 \u2588\u2588\u2557\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557",
|
|
68177
|
+
"\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D \u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551\u255A\u2550\u2550\u2588\u2588\u2554\u2550\u2550\u255D\u2588\u2588\u2554\u2550\u2550\u2550\u2550\u255D",
|
|
68178
|
+
"\u2588\u2588\u2551 \u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2554\u2588\u2588\u2557 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2557 ",
|
|
68179
|
+
"\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2551\u2588\u2588\u2551\u255A\u2588\u2588\u2557\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2554\u2550\u2550\u255D ",
|
|
68180
|
+
"\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557",
|
|
68181
|
+
" \u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D"
|
|
68190
68182
|
];
|
|
68191
|
-
var GREETING_MESSAGE = "Welcome to
|
|
68183
|
+
var GREETING_MESSAGE = "Welcome to Granite";
|
|
68192
68184
|
function printLogo() {
|
|
68193
68185
|
const maxLength = LOGO.reduce((prev, line) => Math.max(line.length, prev), 0);
|
|
68194
68186
|
console.log();
|
|
@@ -68204,9 +68196,12 @@ var DevCommand = class extends Command {
|
|
|
68204
68196
|
static paths = [[`dev`]];
|
|
68205
68197
|
static usage = Command.Usage({
|
|
68206
68198
|
category: "Development",
|
|
68207
|
-
description: "
|
|
68208
|
-
examples: [["\uAC1C\uBC1C \uC11C\uBC84 \uC2E4\uD589\uD558\uAE30", "
|
|
68199
|
+
description: "Granite \uAC1C\uBC1C \uC11C\uBC84\uB97C \uC2E4\uD589\uD569\uB2C8\uB2E4",
|
|
68200
|
+
examples: [["\uAC1C\uBC1C \uC11C\uBC84 \uC2E4\uD589\uD558\uAE30", "granite dev"]]
|
|
68209
68201
|
});
|
|
68202
|
+
host = options_exports.String("--host", "0.0.0.0");
|
|
68203
|
+
port = options_exports.String("--port", "8081");
|
|
68204
|
+
experimental = options_exports.Boolean("--experimental-mode", false);
|
|
68210
68205
|
async execute() {
|
|
68211
68206
|
const packageRoot = getPackageRoot5();
|
|
68212
68207
|
const config = await loadConfig();
|
|
@@ -68217,19 +68212,19 @@ var DevCommand = class extends Command {
|
|
|
68217
68212
|
webViewProps: config.webViewProps
|
|
68218
68213
|
});
|
|
68219
68214
|
if (!result.success) {
|
|
68220
|
-
console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.
|
|
68215
|
+
console.error("[Apps In Toss Plugin] \uD50C\uB7EC\uADF8\uC778 \uC635\uC158\uC774 \uC62C\uBC14\uB974\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. granite.config.ts \uAD6C\uC131\uC744 \uD655\uC778\uD574\uC8FC\uC138\uC694.");
|
|
68221
68216
|
process.exit(1);
|
|
68222
68217
|
}
|
|
68223
|
-
const { app, wss } = createApp(config);
|
|
68218
|
+
const { app, wss } = createApp({ ...config, production: this.experimental === true });
|
|
68224
68219
|
const server = serve(
|
|
68225
68220
|
{
|
|
68226
|
-
hostname:
|
|
68221
|
+
hostname: this.host,
|
|
68227
68222
|
fetch: app.fetch,
|
|
68228
|
-
port:
|
|
68223
|
+
port: parseInt(this.port, 10)
|
|
68229
68224
|
},
|
|
68230
68225
|
async (info) => {
|
|
68231
68226
|
printLogo();
|
|
68232
|
-
console.log(`Listening on http
|
|
68227
|
+
console.log(`Listening on http://${this.host}:${info.port}`);
|
|
68233
68228
|
const { packageManager } = getPackageManager({ isExecutor: true });
|
|
68234
68229
|
await execa(packageManager, config.web.commands.dev.split(" "), {
|
|
68235
68230
|
cwd: packageRoot,
|
|
@@ -68244,8 +68239,8 @@ var DevCommand = class extends Command {
|
|
|
68244
68239
|
|
|
68245
68240
|
// src/cli/index.ts
|
|
68246
68241
|
var cli = new Cli({
|
|
68247
|
-
binaryLabel: "
|
|
68248
|
-
binaryName: "
|
|
68242
|
+
binaryLabel: "granite",
|
|
68243
|
+
binaryName: "granite",
|
|
68249
68244
|
enableCapture: true
|
|
68250
68245
|
});
|
|
68251
68246
|
async function initialize() {
|