@apps-in-toss/web-framework 0.0.0-dev.1741084084392 → 0.0.7
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/chunk-DI2VGQ6M.js +53 -0
- package/dist/chunk-HL7M3JLX.js +53 -0
- package/dist/chunk-I3ZDGLIW.js +19 -0
- package/dist/chunk-OMIGZ2S7.js +7689 -0
- package/dist/chunk-TZCMTMV7.js +38 -0
- package/dist/cli/index.cjs +644 -0
- package/dist/cli/index.d.cts +2 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +592 -0
- package/dist/cli.cjs +613 -0
- package/dist/cli.d.cts +2 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +562 -0
- package/dist/index.cjs +18 -0
- package/dist/index.d.cts +2 -0
- package/package.json +9 -9
- package/react-native/.bedrock/.env.js +4 -0
- package/dist/chunk-SHV3PFAA.js +0 -169
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
+
}) : x)(function(x) {
|
|
5
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
// ../../.yarn/__virtual__/tsup-virtual-dfda26f750/0/cache/tsup-npm-8.3.5-ed25596739-7794953cbc.zip/node_modules/tsup/assets/esm_shims.js
|
|
10
|
+
import { fileURLToPath } from "url";
|
|
11
|
+
import path from "path";
|
|
12
|
+
var getFilename = () => fileURLToPath(import.meta.url);
|
|
13
|
+
var getDirname = () => path.dirname(getFilename());
|
|
14
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
15
|
+
|
|
16
|
+
// src/config/defineConfig.ts
|
|
17
|
+
import { z } from "zod";
|
|
18
|
+
var AppsInTossConfigSchema = z.object({
|
|
19
|
+
appName: z.string(),
|
|
20
|
+
web: z.object({
|
|
21
|
+
port: z.number(),
|
|
22
|
+
commands: z.object({
|
|
23
|
+
dev: z.string(),
|
|
24
|
+
build: z.string()
|
|
25
|
+
})
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
var defineConfig = (config) => {
|
|
29
|
+
return AppsInTossConfigSchema.parse(config);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// src/config/loadConfig.ts
|
|
33
|
+
import { cosmiconfig } from "cosmiconfig";
|
|
34
|
+
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
35
|
+
var loadConfig = async () => {
|
|
36
|
+
const explorer = cosmiconfig("apps-in-toss", {
|
|
37
|
+
searchPlaces: ["apps-in-toss.config.web.ts", "apps-in-toss.config.web.mts"],
|
|
38
|
+
loaders: {
|
|
39
|
+
".ts": TypeScriptLoader(),
|
|
40
|
+
".mts": TypeScriptLoader()
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const result = await explorer.search(process.cwd());
|
|
44
|
+
const config = defineConfig(result?.config ?? {});
|
|
45
|
+
return config;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
__require,
|
|
50
|
+
__dirname,
|
|
51
|
+
defineConfig,
|
|
52
|
+
loadConfig
|
|
53
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
+
}) : x)(function(x) {
|
|
5
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
// ../../.yarn/__virtual__/tsup-virtual-dfda26f750/0/cache/tsup-npm-8.3.5-ed25596739-7794953cbc.zip/node_modules/tsup/assets/esm_shims.js
|
|
10
|
+
import { fileURLToPath } from "url";
|
|
11
|
+
import path from "path";
|
|
12
|
+
var getFilename = () => fileURLToPath(import.meta.url);
|
|
13
|
+
var getDirname = () => path.dirname(getFilename());
|
|
14
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
15
|
+
|
|
16
|
+
// src/defineConfig.ts
|
|
17
|
+
import { z } from "zod";
|
|
18
|
+
var AppsInTossConfigSchema = z.object({
|
|
19
|
+
appName: z.string(),
|
|
20
|
+
web: z.object({
|
|
21
|
+
port: z.number(),
|
|
22
|
+
commands: z.object({
|
|
23
|
+
dev: z.string(),
|
|
24
|
+
build: z.string()
|
|
25
|
+
})
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
var defineConfig = (config) => {
|
|
29
|
+
return AppsInTossConfigSchema.parse(config);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// src/loadConfig.ts
|
|
33
|
+
import { cosmiconfig } from "cosmiconfig";
|
|
34
|
+
import { TypeScriptLoader } from "cosmiconfig-typescript-loader";
|
|
35
|
+
var loadConfig = async () => {
|
|
36
|
+
const explorer = cosmiconfig("apps-in-toss", {
|
|
37
|
+
searchPlaces: ["apps-in-toss.config.web.ts", "apps-in-toss.config.web.mts"],
|
|
38
|
+
loaders: {
|
|
39
|
+
".ts": TypeScriptLoader(),
|
|
40
|
+
".mts": TypeScriptLoader()
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const result = await explorer.search(process.cwd());
|
|
44
|
+
const config = defineConfig(result?.config ?? {});
|
|
45
|
+
return config;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
__require,
|
|
50
|
+
__dirname,
|
|
51
|
+
defineConfig,
|
|
52
|
+
loadConfig
|
|
53
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
3
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
4
|
+
}) : x)(function(x) {
|
|
5
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
6
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
// ../../.yarn/__virtual__/tsup-virtual-dfda26f750/0/cache/tsup-npm-8.3.5-ed25596739-7794953cbc.zip/node_modules/tsup/assets/esm_shims.js
|
|
10
|
+
import { fileURLToPath } from "url";
|
|
11
|
+
import path from "path";
|
|
12
|
+
var getFilename = () => fileURLToPath(import.meta.url);
|
|
13
|
+
var getDirname = () => path.dirname(getFilename());
|
|
14
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
__require,
|
|
18
|
+
__dirname
|
|
19
|
+
};
|