@apps-in-toss/web-framework 0.0.0-dev.1752114017143 → 0.0.0-dev.1752115036458
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/index.js +27 -29
- package/dist/config/index.js +1 -0
- package/dist/prebuilt/dev.android.js +22815 -20889
- package/dist/prebuilt/dev.ios.js +22772 -20838
- package/dist/prebuilt/prod.android.js +5124 -4381
- package/dist/prebuilt/prod.ios.js +5097 -4345
- package/dist/prebuilt/prod.json +6 -6
- package/package.json +16 -16
package/dist/cli/index.js
CHANGED
|
@@ -57729,21 +57729,21 @@ var Te = async (t2) => {
|
|
|
57729
57729
|
};
|
|
57730
57730
|
|
|
57731
57731
|
// src/cli/commands/BuildCommand.ts
|
|
57732
|
-
import { getPackageRoot as getPackageRoot4 } from "@
|
|
57732
|
+
import { getPackageRoot as getPackageRoot4 } from "@granite-js/utils";
|
|
57733
57733
|
|
|
57734
57734
|
// src/config/loadConfig.ts
|
|
57735
57735
|
init_esm_shims();
|
|
57736
57736
|
var import_cosmiconfig = __toESM(require_dist(), 1);
|
|
57737
|
-
import { getPackageRoot } from "@
|
|
57737
|
+
import { getPackageRoot } from "@granite-js/utils";
|
|
57738
57738
|
|
|
57739
|
-
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-
|
|
57739
|
+
// ../../.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
|
|
57740
57740
|
init_esm_shims();
|
|
57741
57741
|
|
|
57742
|
-
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-
|
|
57742
|
+
// ../../.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
|
|
57743
57743
|
init_esm_shims();
|
|
57744
57744
|
var import_jiti = __toESM(require_lib4(), 1);
|
|
57745
57745
|
|
|
57746
|
-
// ../../.yarn/__virtual__/cosmiconfig-typescript-loader-virtual-
|
|
57746
|
+
// ../../.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
|
|
57747
57747
|
init_esm_shims();
|
|
57748
57748
|
var TypeScriptCompileError = class _TypeScriptCompileError extends Error {
|
|
57749
57749
|
constructor(message) {
|
|
@@ -57760,7 +57760,7 @@ ${error.message}`;
|
|
|
57760
57760
|
}
|
|
57761
57761
|
};
|
|
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/loader.mjs
|
|
57764
57764
|
function TypeScriptLoader(options) {
|
|
57765
57765
|
const loader = (0, import_jiti.default)("", { interopDefault: true, ...options });
|
|
57766
57766
|
return (path9) => {
|
|
@@ -57778,8 +57778,8 @@ function TypeScriptLoader(options) {
|
|
|
57778
57778
|
|
|
57779
57779
|
// src/config/loadConfig.ts
|
|
57780
57780
|
var loadConfig = async () => {
|
|
57781
|
-
const explorer = (0, import_cosmiconfig.cosmiconfig)("
|
|
57782
|
-
searchPlaces: ["
|
|
57781
|
+
const explorer = (0, import_cosmiconfig.cosmiconfig)("granite", {
|
|
57782
|
+
searchPlaces: ["granite.config.ts", "granite.config.mts", "granite.config.js", "granite.config.cjs"],
|
|
57783
57783
|
loaders: {
|
|
57784
57784
|
".ts": TypeScriptLoader(),
|
|
57785
57785
|
".mts": TypeScriptLoader()
|
|
@@ -57796,7 +57796,7 @@ import fs2 from "fs";
|
|
|
57796
57796
|
import path7 from "path";
|
|
57797
57797
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
57798
57798
|
import { transform } from "@babel/core";
|
|
57799
|
-
import { getPackageRoot as getPackageRoot3 } from "@
|
|
57799
|
+
import { getPackageRoot as getPackageRoot3 } from "@granite-js/utils";
|
|
57800
57800
|
|
|
57801
57801
|
// ../../.yarn/cache/es-toolkit-npm-1.32.0-019fc7c155-56ba965570.zip/node_modules/es-toolkit/dist/index.mjs
|
|
57802
57802
|
init_esm_shims();
|
|
@@ -58164,7 +58164,7 @@ import {
|
|
|
58164
58164
|
setupRuntimeSetupScript,
|
|
58165
58165
|
collectDependencyVersions
|
|
58166
58166
|
} from "@apps-in-toss/plugins";
|
|
58167
|
-
import { getPackageRoot as getPackageRoot2 } from "@
|
|
58167
|
+
import { getPackageRoot as getPackageRoot2 } from "@granite-js/utils";
|
|
58168
58168
|
|
|
58169
58169
|
// ../../.yarn/cache/execa-npm-9.5.2-ac35c57136-94782a6282.zip/node_modules/execa/index.js
|
|
58170
58170
|
init_esm_shims();
|
|
@@ -65194,7 +65194,7 @@ function appsInTossWebBuild(options) {
|
|
|
65194
65194
|
const webDistFiles = await fs.promises.readdir(webDistDir);
|
|
65195
65195
|
if (webDistFiles.length === 0) {
|
|
65196
65196
|
throw new Error(
|
|
65197
|
-
`\uC6F9 \uBE4C\uB4DC \uACB0\uACFC\uBB3C\uC774 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.
|
|
65197
|
+
`\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.`
|
|
65198
65198
|
);
|
|
65199
65199
|
}
|
|
65200
65200
|
if (!webDistFiles.includes("index.html")) {
|
|
@@ -65250,7 +65250,7 @@ function appsInTossCreateArtifact(deploymentId) {
|
|
|
65250
65250
|
}
|
|
65251
65251
|
]).flat(),
|
|
65252
65252
|
outfile: path6.join(cwd, `${appName}.ait`),
|
|
65253
|
-
appJsonPath: path6.join(packageRoot, ".
|
|
65253
|
+
appJsonPath: path6.join(packageRoot, ".granite", APP_MANIFEST_NAME),
|
|
65254
65254
|
additionalFilesToZip,
|
|
65255
65255
|
packageJson: {
|
|
65256
65256
|
dependencies,
|
|
@@ -65449,10 +65449,10 @@ var BuildCommand = class extends Command {
|
|
|
65449
65449
|
static paths = [[`build`]];
|
|
65450
65450
|
static usage = Command.Usage({
|
|
65451
65451
|
category: "Build",
|
|
65452
|
-
description: "
|
|
65452
|
+
description: "Granite App \uBC88\uB4E4\uC744 \uC0DD\uC131\uD569\uB2C8\uB2E4",
|
|
65453
65453
|
examples: [
|
|
65454
|
-
["\uBE4C\uB4DC\uD558\uAE30", "
|
|
65455
|
-
["\uC9C0\uC815\uB41C \uB300\uC0C1\uB9CC \uBE4C\uB4DC\uD558\uAE30", "
|
|
65454
|
+
["\uBE4C\uB4DC\uD558\uAE30", "granite build"],
|
|
65455
|
+
["\uC9C0\uC815\uB41C \uB300\uC0C1\uB9CC \uBE4C\uB4DC\uD558\uAE30", "granite build --id service-ios"]
|
|
65456
65456
|
]
|
|
65457
65457
|
});
|
|
65458
65458
|
tag = options_exports.String("--tag", {
|
|
@@ -65471,6 +65471,7 @@ var BuildCommand = class extends Command {
|
|
|
65471
65471
|
|
|
65472
65472
|
// src/cli/commands/DevCommand.ts
|
|
65473
65473
|
init_esm_shims();
|
|
65474
|
+
import { getPackageRoot as getPackageRoot5 } from "@granite-js/utils";
|
|
65474
65475
|
|
|
65475
65476
|
// ../../.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
|
|
65476
65477
|
init_esm_shims();
|
|
@@ -65931,9 +65932,6 @@ var serve = (options, listeningListener) => {
|
|
|
65931
65932
|
return server;
|
|
65932
65933
|
};
|
|
65933
65934
|
|
|
65934
|
-
// src/cli/commands/DevCommand.ts
|
|
65935
|
-
import { getPackageRoot as getPackageRoot5 } from "@react-native-bedrock/utils";
|
|
65936
|
-
|
|
65937
65935
|
// src/server.ts
|
|
65938
65936
|
init_esm_shims();
|
|
65939
65937
|
import fs3 from "fs";
|
|
@@ -67843,14 +67841,14 @@ var createApp = ({ appName, web, permissions, webViewProps, brand }) => {
|
|
|
67843
67841
|
init_esm_shims();
|
|
67844
67842
|
var import_picocolors4 = __toESM(require_picocolors2(), 1);
|
|
67845
67843
|
var LOGO = [
|
|
67846
|
-
"\u2588\u2588\u2588\u2588\u2588\u2588\u2557 \u2588\u2588\u2588\u2588\u2588\u2588\
|
|
67847
|
-
"\u2588\u2588\u2554\u2550\u2550\
|
|
67848
|
-
"\u2588\u2588\
|
|
67849
|
-
"\u2588\u2588\u2554\u2550\u2550\u2588\u2588\u2557\u2588\u2588\u2554\u2550\u2550\
|
|
67850
|
-
"\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D\u2588\u2588\
|
|
67851
|
-
"\u255A\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\
|
|
67844
|
+
" \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",
|
|
67845
|
+
"\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",
|
|
67846
|
+
"\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 ",
|
|
67847
|
+
"\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 ",
|
|
67848
|
+
"\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",
|
|
67849
|
+
" \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"
|
|
67852
67850
|
];
|
|
67853
|
-
var GREETING_MESSAGE = "Welcome to
|
|
67851
|
+
var GREETING_MESSAGE = "Welcome to Granite";
|
|
67854
67852
|
function printLogo() {
|
|
67855
67853
|
const maxLength = LOGO.reduce((prev, line) => Math.max(line.length, prev), 0);
|
|
67856
67854
|
console.log();
|
|
@@ -67866,8 +67864,8 @@ var DevCommand = class extends Command {
|
|
|
67866
67864
|
static paths = [[`dev`]];
|
|
67867
67865
|
static usage = Command.Usage({
|
|
67868
67866
|
category: "Development",
|
|
67869
|
-
description: "
|
|
67870
|
-
examples: [["\uAC1C\uBC1C \uC11C\uBC84 \uC2E4\uD589\uD558\uAE30", "
|
|
67867
|
+
description: "Granite \uAC1C\uBC1C \uC11C\uBC84\uB97C \uC2E4\uD589\uD569\uB2C8\uB2E4",
|
|
67868
|
+
examples: [["\uAC1C\uBC1C \uC11C\uBC84 \uC2E4\uD589\uD558\uAE30", "granite dev"]]
|
|
67871
67869
|
});
|
|
67872
67870
|
async execute() {
|
|
67873
67871
|
const packageRoot = getPackageRoot5();
|
|
@@ -67896,8 +67894,8 @@ var DevCommand = class extends Command {
|
|
|
67896
67894
|
|
|
67897
67895
|
// src/cli/index.ts
|
|
67898
67896
|
var cli = new Cli({
|
|
67899
|
-
binaryLabel: "
|
|
67900
|
-
binaryName: "
|
|
67897
|
+
binaryLabel: "granite",
|
|
67898
|
+
binaryName: "granite",
|
|
67901
67899
|
enableCapture: true
|
|
67902
67900
|
});
|
|
67903
67901
|
async function initialize() {
|