@reliverse/dler 1.7.118 → 1.7.119
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/bin/app/build/build-library.d.ts +0 -1
- package/bin/app/build/build-library.js +0 -5
- package/bin/app/build/build-regular.d.ts +2 -2
- package/bin/app/build/build-regular.js +3 -8
- package/bin/app/build/regular-flow.js +0 -4
- package/bin/app/config/comments.js +2 -2
- package/bin/app/config/constants.d.ts +1 -1
- package/bin/app/config/constants.js +1 -1
- package/bin/app/providers/better-t-stack/types.d.ts +3 -3
- package/bin/app/providers/reliverse-stack/rs-impl.d.ts +2 -2
- package/bin/app/schema/gen.js +2 -2
- package/bin/app/schema/mod.js +2 -2
- package/bin/app/toolbox/toolbox-impl.d.ts +0 -2
- package/bin/app/toolbox/toolbox-impl.js +1 -50
- package/bin/app/utils/common.d.ts +8 -2
- package/bin/app/utils/common.js +14 -5
- package/bin/app/utils/schemaMemory.d.ts +1 -1
- package/bin/app/utils/startEndPrompts.d.ts +1 -1
- package/bin/app/utils/startEndPrompts.js +2 -2
- package/bin/mod.d.ts +1 -1
- package/bin/mod.js +1 -2
- package/package.json +8 -8
- package/bin/app/build/cmd.d.ts +0 -81
- package/bin/app/build/cmd.js +0 -178
- package/bin/app/pub/cmd.d.ts +0 -17
- package/bin/app/pub/cmd.js +0 -42
- package/bin/app/toolbox/cmd.d.ts +0 -7
- package/bin/app/toolbox/cmd.js +0 -37
- package/bin/dler.d.ts +0 -1
- package/bin/dler.js +0 -2
|
@@ -26,7 +26,6 @@ export type LibraryBuildOptions = ReliverseConfig & {
|
|
|
26
26
|
libTranspileMinify: boolean;
|
|
27
27
|
transpileTarget: TranspileTarget;
|
|
28
28
|
transpileFormat: TranspileFormat;
|
|
29
|
-
transpileSplitting: boolean;
|
|
30
29
|
transpileSourcemap: Sourcemap;
|
|
31
30
|
transpilePublicPath: string;
|
|
32
31
|
transpileEsbuild: Esbuild;
|
|
@@ -198,7 +198,6 @@ async function library_buildDistributionTarget(params) {
|
|
|
198
198
|
libTranspileMinify,
|
|
199
199
|
transpileTarget,
|
|
200
200
|
transpileFormat,
|
|
201
|
-
transpileSplitting,
|
|
202
201
|
transpileSourcemap,
|
|
203
202
|
transpilePublicPath,
|
|
204
203
|
transpileEsbuild,
|
|
@@ -222,7 +221,6 @@ async function library_buildDistributionTarget(params) {
|
|
|
222
221
|
libTranspileMinify,
|
|
223
222
|
transpileTarget,
|
|
224
223
|
transpileFormat,
|
|
225
|
-
transpileSplitting,
|
|
226
224
|
transpileSourcemap,
|
|
227
225
|
transpilePublicPath,
|
|
228
226
|
transpileEsbuild,
|
|
@@ -267,7 +265,6 @@ async function library_bundleWithBuilder(params) {
|
|
|
267
265
|
libTranspileMinify: executorParams.libTranspileMinify,
|
|
268
266
|
transpileTarget: executorParams.transpileTarget,
|
|
269
267
|
transpileFormat: executorParams.transpileFormat,
|
|
270
|
-
transpileSplitting: executorParams.transpileSplitting,
|
|
271
268
|
transpileSourcemap: executorParams.transpileSourcemap,
|
|
272
269
|
transpilePublicPath: executorParams.transpilePublicPath
|
|
273
270
|
});
|
|
@@ -328,7 +325,6 @@ async function library_bundleUsingBun(entryPoint, outDirBin, libName, options) {
|
|
|
328
325
|
libTranspileMinify,
|
|
329
326
|
transpileTarget,
|
|
330
327
|
transpileFormat,
|
|
331
|
-
transpileSplitting,
|
|
332
328
|
transpileSourcemap,
|
|
333
329
|
transpilePublicPath
|
|
334
330
|
} = options;
|
|
@@ -345,7 +341,6 @@ async function library_bundleUsingBun(entryPoint, outDirBin, libName, options) {
|
|
|
345
341
|
outdir: outDirBin,
|
|
346
342
|
target: transpileTarget,
|
|
347
343
|
format: transpileFormat,
|
|
348
|
-
splitting: transpileSplitting,
|
|
349
344
|
minify: libTranspileMinify,
|
|
350
345
|
sourcemap: getBunSourcemapOption(transpileSourcemap),
|
|
351
346
|
publicPath: transpilePublicPath,
|
|
@@ -8,7 +8,7 @@ import type { PerfTimer } from "../types/mod.js";
|
|
|
8
8
|
export declare function regular_buildJsrDist(isDev: boolean, isJsr: boolean, coreIsCLI: {
|
|
9
9
|
enabled: boolean;
|
|
10
10
|
scripts: Record<string, string>;
|
|
11
|
-
}, coreEntrySrcDir: string, distJsrDirName: string, distJsrBuilder: BundlerName, coreEntryFile: string, transpileTarget: TranspileTarget, transpileFormat: TranspileFormat,
|
|
11
|
+
}, coreEntrySrcDir: string, distJsrDirName: string, distJsrBuilder: BundlerName, coreEntryFile: string, transpileTarget: TranspileTarget, transpileFormat: TranspileFormat, transpileMinify: boolean, transpileSourcemap: Sourcemap, transpilePublicPath: string, unifiedBundlerOutExt: NpmOutExt, config: ReliverseConfig, timer: PerfTimer, transpileStub: boolean, transpileWatch: boolean, distJsrGenTsconfig: boolean, coreDeclarations: boolean): Promise<void>;
|
|
12
12
|
/**
|
|
13
13
|
* Builds a regular NPM distribution.
|
|
14
14
|
* - Copies entire src dir if "jsr"
|
|
@@ -17,4 +17,4 @@ export declare function regular_buildJsrDist(isDev: boolean, isJsr: boolean, cor
|
|
|
17
17
|
export declare function regular_buildNpmDist(isDev: boolean, coreIsCLI: {
|
|
18
18
|
enabled: boolean;
|
|
19
19
|
scripts: Record<string, string>;
|
|
20
|
-
}, coreEntrySrcDir: string, distNpmDirName: string, distNpmBuilder: BundlerName, coreEntryFile: string, unifiedBundlerOutExt: NpmOutExt, config: ReliverseConfig, transpileTarget: TranspileTarget, transpileFormat: TranspileFormat,
|
|
20
|
+
}, coreEntrySrcDir: string, distNpmDirName: string, distNpmBuilder: BundlerName, coreEntryFile: string, unifiedBundlerOutExt: NpmOutExt, config: ReliverseConfig, transpileTarget: TranspileTarget, transpileFormat: TranspileFormat, transpileMinify: boolean, transpileSourcemap: Sourcemap, transpilePublicPath: string, transpileStub: boolean, transpileWatch: boolean, timer: PerfTimer, coreDeclarations: boolean): Promise<void>;
|
|
@@ -12,7 +12,7 @@ import { createJsrJSON, renameTsxFiles } from "../utils/utils-jsr-json.js";
|
|
|
12
12
|
import { regular_createPackageJSON } from "../utils/utils-package-json-regular.js";
|
|
13
13
|
import { getElapsedPerfTime } from "../utils/utils-perf.js";
|
|
14
14
|
const ALIAS_PREFIX_TO_CONVERT = "~";
|
|
15
|
-
export async function regular_buildJsrDist(isDev, isJsr, coreIsCLI, coreEntrySrcDir, distJsrDirName, distJsrBuilder, coreEntryFile, transpileTarget, transpileFormat,
|
|
15
|
+
export async function regular_buildJsrDist(isDev, isJsr, coreIsCLI, coreEntrySrcDir, distJsrDirName, distJsrBuilder, coreEntryFile, transpileTarget, transpileFormat, transpileMinify, transpileSourcemap, transpilePublicPath, unifiedBundlerOutExt, config, timer, transpileStub, transpileWatch, distJsrGenTsconfig, coreDeclarations) {
|
|
16
16
|
const outDirRoot = path.join(process.cwd(), distJsrDirName);
|
|
17
17
|
const outDirBin = path.join(outDirRoot, config.coreBuildOutDir || "bin");
|
|
18
18
|
const singleFile = path.join(process.cwd(), coreEntrySrcDir, coreEntryFile);
|
|
@@ -31,7 +31,6 @@ export async function regular_buildJsrDist(isDev, isJsr, coreIsCLI, coreEntrySrc
|
|
|
31
31
|
transpileMinify,
|
|
32
32
|
transpilePublicPath,
|
|
33
33
|
transpileSourcemap,
|
|
34
|
-
transpileSplitting,
|
|
35
34
|
transpileStub,
|
|
36
35
|
transpileTarget,
|
|
37
36
|
transpileWatch,
|
|
@@ -78,7 +77,7 @@ export async function regular_buildJsrDist(isDev, isJsr, coreIsCLI, coreEntrySrc
|
|
|
78
77
|
throw new Error(`JSR distribution build failed: ${errorMessage}`);
|
|
79
78
|
}
|
|
80
79
|
}
|
|
81
|
-
export async function regular_buildNpmDist(isDev, coreIsCLI, coreEntrySrcDir, distNpmDirName, distNpmBuilder, coreEntryFile, unifiedBundlerOutExt, config, transpileTarget, transpileFormat,
|
|
80
|
+
export async function regular_buildNpmDist(isDev, coreIsCLI, coreEntrySrcDir, distNpmDirName, distNpmBuilder, coreEntryFile, unifiedBundlerOutExt, config, transpileTarget, transpileFormat, transpileMinify, transpileSourcemap, transpilePublicPath, transpileStub, transpileWatch, timer, coreDeclarations) {
|
|
82
81
|
const outDirRoot = path.join(process.cwd(), distNpmDirName);
|
|
83
82
|
const outDirBin = path.join(outDirRoot, config.coreBuildOutDir || "bin");
|
|
84
83
|
const singleFile = path.join(process.cwd(), coreEntrySrcDir, coreEntryFile);
|
|
@@ -97,7 +96,6 @@ export async function regular_buildNpmDist(isDev, coreIsCLI, coreEntrySrcDir, di
|
|
|
97
96
|
transpileMinify,
|
|
98
97
|
transpilePublicPath,
|
|
99
98
|
transpileSourcemap,
|
|
100
|
-
transpileSplitting,
|
|
101
99
|
transpileStub,
|
|
102
100
|
transpileTarget,
|
|
103
101
|
transpileWatch,
|
|
@@ -128,7 +126,7 @@ export async function regular_buildNpmDist(isDev, coreIsCLI, coreEntrySrcDir, di
|
|
|
128
126
|
throw new Error(`NPM distribution build failed: ${errorMessage}`);
|
|
129
127
|
}
|
|
130
128
|
}
|
|
131
|
-
async function regular_bundleUsingBun(coreEntryFile, outDirBin, transpileTarget, transpileFormat,
|
|
129
|
+
async function regular_bundleUsingBun(coreEntryFile, outDirBin, transpileTarget, transpileFormat, transpileMinify, transpileSourcemap, transpilePublicPath, timer) {
|
|
132
130
|
relinka(
|
|
133
131
|
"verbose",
|
|
134
132
|
`Bundling regular project using Bun (entry: ${coreEntryFile}, outDir: ${outDirBin})`
|
|
@@ -156,7 +154,6 @@ async function regular_bundleUsingBun(coreEntryFile, outDirBin, transpileTarget,
|
|
|
156
154
|
outdir: outDirBin,
|
|
157
155
|
publicPath: transpilePublicPath || "/",
|
|
158
156
|
sourcemap: getBunSourcemapOption(transpileSourcemap),
|
|
159
|
-
splitting: transpileSplitting,
|
|
160
157
|
target: transpileTarget,
|
|
161
158
|
throw: true
|
|
162
159
|
});
|
|
@@ -272,7 +269,6 @@ async function regular_bundleWithBuilder(builder, params) {
|
|
|
272
269
|
transpileMinify,
|
|
273
270
|
transpilePublicPath,
|
|
274
271
|
transpileSourcemap,
|
|
275
|
-
transpileSplitting,
|
|
276
272
|
transpileStub,
|
|
277
273
|
transpileTarget,
|
|
278
274
|
transpileWatch,
|
|
@@ -288,7 +284,6 @@ async function regular_bundleWithBuilder(builder, params) {
|
|
|
288
284
|
outDir,
|
|
289
285
|
transpileTarget,
|
|
290
286
|
transpileFormat,
|
|
291
|
-
transpileSplitting,
|
|
292
287
|
transpileMinify,
|
|
293
288
|
transpileSourcemap,
|
|
294
289
|
transpilePublicPath,
|
|
@@ -22,7 +22,6 @@ export async function regular_buildFlow(timer, isDev, config) {
|
|
|
22
22
|
config.coreEntryFile,
|
|
23
23
|
config.transpileTarget,
|
|
24
24
|
config.transpileFormat,
|
|
25
|
-
config.transpileSplitting,
|
|
26
25
|
config.transpileMinify,
|
|
27
26
|
config.transpileSourcemap,
|
|
28
27
|
config.transpilePublicPath,
|
|
@@ -48,7 +47,6 @@ export async function regular_buildFlow(timer, isDev, config) {
|
|
|
48
47
|
config,
|
|
49
48
|
config.transpileTarget,
|
|
50
49
|
config.transpileFormat,
|
|
51
|
-
config.transpileSplitting,
|
|
52
50
|
config.transpileMinify,
|
|
53
51
|
config.transpileSourcemap,
|
|
54
52
|
config.transpilePublicPath,
|
|
@@ -71,7 +69,6 @@ export async function regular_buildFlow(timer, isDev, config) {
|
|
|
71
69
|
config.coreEntryFile,
|
|
72
70
|
config.transpileTarget,
|
|
73
71
|
config.transpileFormat,
|
|
74
|
-
config.transpileSplitting,
|
|
75
72
|
config.transpileMinify,
|
|
76
73
|
config.transpileSourcemap,
|
|
77
74
|
config.transpilePublicPath,
|
|
@@ -94,7 +91,6 @@ export async function regular_buildFlow(timer, isDev, config) {
|
|
|
94
91
|
config,
|
|
95
92
|
config.transpileTarget,
|
|
96
93
|
config.transpileFormat,
|
|
97
|
-
config.transpileSplitting,
|
|
98
94
|
config.transpileMinify,
|
|
99
95
|
config.transpileSourcemap,
|
|
100
96
|
config.transpilePublicPath,
|
|
@@ -22,7 +22,7 @@ export function injectSectionComments(fileContent) {
|
|
|
22
22
|
],
|
|
23
23
|
ignoreDependencies: [comment("List dependencies to exclude from checks")],
|
|
24
24
|
customRules: [
|
|
25
|
-
comment("Provide custom rules for
|
|
25
|
+
comment("Provide custom rules for Rse AI"),
|
|
26
26
|
comment("You can use any json type here in {}")
|
|
27
27
|
],
|
|
28
28
|
deployBehavior: [
|
|
@@ -34,7 +34,7 @@ export function injectSectionComments(fileContent) {
|
|
|
34
34
|
comment("Options: prompt | autoYes | autoYesSkipCommit | autoNo")
|
|
35
35
|
],
|
|
36
36
|
relinterConfirm: [
|
|
37
|
-
comment("Behavior for
|
|
37
|
+
comment("Behavior for Rse AI chat and agent mode"),
|
|
38
38
|
comment("Options: promptOnce | promptEachFile | autoYes")
|
|
39
39
|
]
|
|
40
40
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const PROJECT_ROOT: string;
|
|
2
|
-
export declare const cliVersion = "1.7.
|
|
2
|
+
export declare const cliVersion = "1.7.119";
|
|
3
3
|
export declare const cliName = "@reliverse/rse";
|
|
4
4
|
export declare const rseName = "@reliverse/rse";
|
|
5
5
|
export declare const dlerName = "@reliverse/dler";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import os from "node:os";
|
|
2
2
|
import path from "@reliverse/pathkit";
|
|
3
3
|
export const PROJECT_ROOT = path.resolve(process.cwd());
|
|
4
|
-
const version = "1.7.
|
|
4
|
+
const version = "1.7.119";
|
|
5
5
|
export const cliVersion = version;
|
|
6
6
|
export const cliName = "@reliverse/rse";
|
|
7
7
|
export const rseName = "@reliverse/rse";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const DatabaseSchema: z.ZodEnum<{
|
|
3
3
|
none: "none";
|
|
4
|
-
mysql: "mysql";
|
|
5
4
|
sqlite: "sqlite";
|
|
5
|
+
mysql: "mysql";
|
|
6
6
|
mongodb: "mongodb";
|
|
7
7
|
postgres: "postgres";
|
|
8
8
|
}>;
|
|
@@ -50,14 +50,14 @@ export declare const AddonsSchema: z.ZodEnum<{
|
|
|
50
50
|
tauri: "tauri";
|
|
51
51
|
starlight: "starlight";
|
|
52
52
|
turborepo: "turborepo";
|
|
53
|
-
pwa: "pwa";
|
|
54
53
|
husky: "husky";
|
|
54
|
+
pwa: "pwa";
|
|
55
55
|
}>;
|
|
56
56
|
export type Addons = z.infer<typeof AddonsSchema>;
|
|
57
57
|
export declare const ExamplesSchema: z.ZodEnum<{
|
|
58
|
+
ai: "ai";
|
|
58
59
|
none: "none";
|
|
59
60
|
todo: "todo";
|
|
60
|
-
ai: "ai";
|
|
61
61
|
}>;
|
|
62
62
|
export type Examples = z.infer<typeof ExamplesSchema>;
|
|
63
63
|
export declare const PackageManagerSchema: z.ZodEnum<{
|
|
@@ -14,7 +14,7 @@ export type BrowserRepoOption = "reliverse/template-browser-extension" | "unknow
|
|
|
14
14
|
export declare function configureBrowserExtension(): Promise<{
|
|
15
15
|
displayName: string;
|
|
16
16
|
description: string;
|
|
17
|
-
features: ("
|
|
17
|
+
features: ("webview" | "language" | "commands" | "themes")[];
|
|
18
18
|
activation: "onCommand" | "onLanguage" | "startup";
|
|
19
19
|
publisher: string;
|
|
20
20
|
}>;
|
|
@@ -24,7 +24,7 @@ export declare function configureBrowserExtension(): Promise<{
|
|
|
24
24
|
export declare function configureVSCodeExtension(): Promise<{
|
|
25
25
|
displayName: string;
|
|
26
26
|
description: string;
|
|
27
|
-
features: ("
|
|
27
|
+
features: ("webview" | "language" | "commands" | "themes")[];
|
|
28
28
|
activation: "onCommand" | "onLanguage" | "startup";
|
|
29
29
|
publisher: string;
|
|
30
30
|
}>;
|
package/bin/app/schema/gen.js
CHANGED
|
@@ -1390,7 +1390,7 @@ export const DEFAULT_CONFIG_RELIVERSE: ReliverseConfig = {
|
|
|
1390
1390
|
},
|
|
1391
1391
|
// List dependencies to exclude from checks
|
|
1392
1392
|
ignoreDependencies: [],
|
|
1393
|
-
// Provide custom rules for
|
|
1393
|
+
// Provide custom rules for Rse AI
|
|
1394
1394
|
// You can use any json type here in {}
|
|
1395
1395
|
customRules: {},
|
|
1396
1396
|
// Project features
|
|
@@ -1468,7 +1468,7 @@ export const DEFAULT_CONFIG_RELIVERSE: ReliverseConfig = {
|
|
|
1468
1468
|
// Behavior for existing GitHub repos during project creation
|
|
1469
1469
|
// Options: prompt | autoYes | autoYesSkipCommit | autoNo
|
|
1470
1470
|
existingRepoBehavior: "prompt",
|
|
1471
|
-
// Behavior for
|
|
1471
|
+
// Behavior for Rse AI chat and agent mode
|
|
1472
1472
|
// Options: promptOnce | promptEachFile | autoYes
|
|
1473
1473
|
relinterConfirm: "promptOnce",
|
|
1474
1474
|
// Remdn Configuration
|
package/bin/app/schema/mod.js
CHANGED
|
@@ -241,7 +241,7 @@ export const DEFAULT_CONFIG_RELIVERSE = {
|
|
|
241
241
|
},
|
|
242
242
|
// List dependencies to exclude from checks
|
|
243
243
|
ignoreDependencies: [],
|
|
244
|
-
// Provide custom rules for
|
|
244
|
+
// Provide custom rules for Rse AI
|
|
245
245
|
// You can use any json type here in {}
|
|
246
246
|
customRules: {},
|
|
247
247
|
// Project features
|
|
@@ -319,7 +319,7 @@ export const DEFAULT_CONFIG_RELIVERSE = {
|
|
|
319
319
|
// Behavior for existing GitHub repos during project creation
|
|
320
320
|
// Options: prompt | autoYes | autoYesSkipCommit | autoNo
|
|
321
321
|
existingRepoBehavior: "prompt",
|
|
322
|
-
// Behavior for
|
|
322
|
+
// Behavior for Rse AI chat and agent mode
|
|
323
323
|
// Options: promptOnce | promptEachFile | autoYes
|
|
324
324
|
relinterConfirm: "promptOnce",
|
|
325
325
|
// Remdn Configuration
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { ReliverseConfig } from "../schema/mod.js";
|
|
2
|
-
import type { ParamsOmitReli } from "../types/mod.js";
|
|
3
2
|
import type { RepoOption } from "../utils/projectRepository.js";
|
|
4
3
|
import type { ReliverseMemory } from "../utils/schemaMemory.js";
|
|
5
4
|
export declare function rmTestsRuntime(cwd: string): Promise<void>;
|
|
6
5
|
export declare function downloadRepoOption(template: RepoOption, config: ReliverseConfig, memory: ReliverseMemory, isDev: boolean, cwd: string, skipPrompts: boolean): Promise<void>;
|
|
7
|
-
export declare function showDevToolsMenu(params: ParamsOmitReli): Promise<void>;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import path from "@reliverse/pathkit";
|
|
2
2
|
import fs from "@reliverse/relifso";
|
|
3
3
|
import { relinka } from "@reliverse/relinka";
|
|
4
|
-
import { confirmPrompt
|
|
4
|
+
import { confirmPrompt } from "@reliverse/rempts";
|
|
5
5
|
import { FALLBACK_ENV_EXAMPLE_URL } from "../config/constants.js";
|
|
6
6
|
import { composeEnvFile } from "../init/use-template/cp-modules/compose-env-file/cef-mod.js";
|
|
7
7
|
import { promptGitDeploy } from "../init/use-template/cp-modules/git-deploy-prompts/gdp-mod.js";
|
|
8
|
-
import { experimental } from "../utils/badgeNotifiers.js";
|
|
9
8
|
import { downloadRepo } from "../utils/downloading/downloadRepo.js";
|
|
10
9
|
import { askProjectName } from "../utils/prompts/askProjectName.js";
|
|
11
10
|
import { askUsernameFrontend } from "../utils/prompts/askUsernameFrontend.js";
|
|
12
11
|
import { cd, pwd, rm } from "../utils/terminalHelpers.js";
|
|
13
|
-
import { openVercelTools } from "./toolbox-vercel.js";
|
|
14
12
|
export async function rmTestsRuntime(cwd) {
|
|
15
13
|
const TestsRuntimePath = path.join(cwd, "tests-runtime");
|
|
16
14
|
if (await fs.pathExists(TestsRuntimePath)) {
|
|
@@ -78,50 +76,3 @@ export async function downloadRepoOption(template, config, memory, isDev, cwd, s
|
|
|
78
76
|
relinka("success", `Project deployed successfully to ${primaryDomain}`);
|
|
79
77
|
}
|
|
80
78
|
}
|
|
81
|
-
export async function showDevToolsMenu(params) {
|
|
82
|
-
const { cwd, isDev, memory, config, skipPrompts } = params;
|
|
83
|
-
const TestsRuntimePath = path.join(cwd, "tests-runtime");
|
|
84
|
-
const TestsRuntimeExists = await fs.pathExists(TestsRuntimePath);
|
|
85
|
-
const toolsOptions = {
|
|
86
|
-
rmTestsRuntime: "rm-tests-runtime",
|
|
87
|
-
downloadTemplate: "download-template",
|
|
88
|
-
openVercelTools: "open-vercel-tools",
|
|
89
|
-
exit: "exit"
|
|
90
|
-
};
|
|
91
|
-
const option = await selectPrompt({
|
|
92
|
-
title: "Dev tools menu",
|
|
93
|
-
options: [
|
|
94
|
-
...isDev && TestsRuntimeExists ? [
|
|
95
|
-
{
|
|
96
|
-
label: "remove tests-runtime dir",
|
|
97
|
-
value: toolsOptions.rmTestsRuntime
|
|
98
|
-
}
|
|
99
|
-
] : [],
|
|
100
|
-
...isDev ? [
|
|
101
|
-
{
|
|
102
|
-
label: "downloadRepo + cd(tests-runtime) + composeEnvFile + promptGitDeploy",
|
|
103
|
-
value: toolsOptions.downloadTemplate
|
|
104
|
-
}
|
|
105
|
-
] : [],
|
|
106
|
-
{
|
|
107
|
-
label: `Open Vercel devtools ${experimental}`,
|
|
108
|
-
value: toolsOptions.openVercelTools
|
|
109
|
-
},
|
|
110
|
-
{ label: "\u{1F448} Exit", value: toolsOptions.exit }
|
|
111
|
-
]
|
|
112
|
-
});
|
|
113
|
-
if (option === toolsOptions.rmTestsRuntime) {
|
|
114
|
-
await rmTestsRuntime(cwd);
|
|
115
|
-
} else if (option === toolsOptions.downloadTemplate) {
|
|
116
|
-
await downloadRepoOption(
|
|
117
|
-
"blefnk/relivator-nextjs-template",
|
|
118
|
-
config,
|
|
119
|
-
memory,
|
|
120
|
-
isDev,
|
|
121
|
-
cwd,
|
|
122
|
-
skipPrompts
|
|
123
|
-
);
|
|
124
|
-
} else if (option === toolsOptions.openVercelTools) {
|
|
125
|
-
await openVercelTools(memory);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import type { CommonArgs } from "../types/mod";
|
|
2
|
-
export declare function commonStartActions({ strCwd, isCI, isDev }: CommonArgs
|
|
3
|
-
|
|
2
|
+
export declare function commonStartActions({ strCwd, isCI, isDev, showRuntimeInfo, clearConsole, withStartPrompt, }: CommonArgs & {
|
|
3
|
+
showRuntimeInfo: boolean;
|
|
4
|
+
clearConsole: boolean;
|
|
5
|
+
withStartPrompt: boolean;
|
|
6
|
+
}): Promise<void>;
|
|
7
|
+
export declare function commonEndActions({ withEndPrompt }: {
|
|
8
|
+
withEndPrompt: boolean;
|
|
9
|
+
}): Promise<void>;
|
package/bin/app/utils/common.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { relinka } from "@reliverse/relinka";
|
|
2
2
|
import { prepareReliverseEnvironment } from "../config/prepare.js";
|
|
3
3
|
import { showEndPrompt, showStartPrompt } from "./startEndPrompts.js";
|
|
4
|
-
export async function commonStartActions({
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export async function commonStartActions({
|
|
5
|
+
strCwd,
|
|
6
|
+
isCI,
|
|
7
|
+
isDev,
|
|
8
|
+
showRuntimeInfo,
|
|
9
|
+
clearConsole,
|
|
10
|
+
withStartPrompt
|
|
11
|
+
}) {
|
|
12
|
+
if (!isCI && withStartPrompt) {
|
|
13
|
+
await showStartPrompt(isDev, showRuntimeInfo, clearConsole);
|
|
7
14
|
}
|
|
8
15
|
if (isDev) {
|
|
9
16
|
relinka.log("Running the CLI in dev mode.");
|
|
@@ -22,7 +29,9 @@ export async function commonStartActions({ strCwd, isCI, isDev }) {
|
|
|
22
29
|
}
|
|
23
30
|
await prepareReliverseEnvironment(strCwd, isDev, "ts");
|
|
24
31
|
}
|
|
25
|
-
export async function commonEndActions() {
|
|
26
|
-
|
|
32
|
+
export async function commonEndActions({ withEndPrompt }) {
|
|
33
|
+
if (withEndPrompt) {
|
|
34
|
+
await showEndPrompt();
|
|
35
|
+
}
|
|
27
36
|
process.exit(0);
|
|
28
37
|
}
|
|
@@ -14,8 +14,8 @@ declare const userDataSchema: import("@sinclair/typebox").TObject<{
|
|
|
14
14
|
vercelTeamSlug: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
15
15
|
}>;
|
|
16
16
|
export declare const memorySchema: import("@sinclair/typebox").TObject<{
|
|
17
|
-
code: import("@sinclair/typebox").TString;
|
|
18
17
|
key: import("@sinclair/typebox").TString;
|
|
18
|
+
code: import("@sinclair/typebox").TString;
|
|
19
19
|
githubKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
20
20
|
vercelKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21
21
|
openaiKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -4,5 +4,5 @@ export declare function readPackageJSON(): Promise<{
|
|
|
4
4
|
}>;
|
|
5
5
|
export declare const getPkgName: () => Promise<string>;
|
|
6
6
|
export declare const getPkgVersion: () => Promise<string>;
|
|
7
|
-
export declare function showStartPrompt(isDev: boolean, showRuntimeInfo: boolean): Promise<void>;
|
|
7
|
+
export declare function showStartPrompt(isDev: boolean, showRuntimeInfo: boolean, clearConsole: boolean): Promise<void>;
|
|
8
8
|
export declare function showEndPrompt(): Promise<void>;
|
|
@@ -20,10 +20,10 @@ export const getPkgVersion = async () => {
|
|
|
20
20
|
const pkg = await readPackageJSON();
|
|
21
21
|
return pkg.version || "0.0.0";
|
|
22
22
|
};
|
|
23
|
-
export async function showStartPrompt(isDev, showRuntimeInfo) {
|
|
23
|
+
export async function showStartPrompt(isDev, showRuntimeInfo, clearConsole) {
|
|
24
24
|
await startPrompt({
|
|
25
25
|
titleColor: "inverse",
|
|
26
|
-
clearConsole
|
|
26
|
+
clearConsole,
|
|
27
27
|
packageName: dlerName,
|
|
28
28
|
packageVersion: cliVersion,
|
|
29
29
|
isDev
|
package/bin/mod.d.ts
CHANGED
|
@@ -299,7 +299,7 @@ export type { BumpMode, BundlerName, Esbuild, LibConfig, LogLevel, LogLevelConfi
|
|
|
299
299
|
export { DEFAULT_CONFIG_RELIVERSE, defineConfig } from "./app/schema/mod";
|
|
300
300
|
export { checkIfRegenerationNeeded, ensureReltypesFile } from "./app/schema/utils";
|
|
301
301
|
export { getAllSourceFiles, splitLargeFileByLines, splitLargeFunctions } from "./app/split/impl";
|
|
302
|
-
export { downloadRepoOption, rmTestsRuntime,
|
|
302
|
+
export { downloadRepoOption, rmTestsRuntime, } from "./app/toolbox/toolbox-impl";
|
|
303
303
|
export { openVercelTools } from "./app/toolbox/toolbox-vercel";
|
|
304
304
|
export type { BundleSource, IndentOptions, MagicStringOptions, OverwriteOptions, StringTransformer, TransformResult, UpdateOptions, } from "./app/transform/transform-impl-mod";
|
|
305
305
|
export { append, compose, createBundle, createTransformer, createTransformerFromMagicString, indent, insertAt, overwrite, pipe, prepend, readAndTransform, remove, replace, replaceAll, slice, template, transformAndWrite, transformMultiple, trim, update, wrapWith, } from "./app/transform/transform-impl-mod";
|
package/bin/mod.js
CHANGED
|
@@ -648,8 +648,7 @@ export { checkIfRegenerationNeeded, ensureReltypesFile } from "./app/schema/util
|
|
|
648
648
|
export { getAllSourceFiles, splitLargeFileByLines, splitLargeFunctions } from "./app/split/impl.js";
|
|
649
649
|
export {
|
|
650
650
|
downloadRepoOption,
|
|
651
|
-
rmTestsRuntime
|
|
652
|
-
showDevToolsMenu
|
|
651
|
+
rmTestsRuntime
|
|
653
652
|
} from "./app/toolbox/toolbox-impl.js";
|
|
654
653
|
export { openVercelTools } from "./app/toolbox/toolbox-vercel.js";
|
|
655
654
|
export {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@ai-sdk/openai": "^2.0.
|
|
3
|
+
"@ai-sdk/openai": "^2.0.22",
|
|
4
4
|
"@babel/preset-react": "^7.27.1",
|
|
5
5
|
"@babel/preset-typescript": "^7.27.1",
|
|
6
6
|
"@hookform/resolvers": "^5.2.1",
|
|
7
|
-
"@libsql/client": "^0.15.
|
|
8
|
-
"@mendable/firecrawl-js": "^3.2.
|
|
7
|
+
"@libsql/client": "^0.15.14",
|
|
8
|
+
"@mendable/firecrawl-js": "^3.2.1",
|
|
9
9
|
"@mrleebo/prisma-ast": "^0.13.0",
|
|
10
10
|
"@octokit/plugin-rest-endpoint-methods": "^16.0.0",
|
|
11
11
|
"@octokit/request-error": "^7.0.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@volar/typescript": "^2.4.23",
|
|
34
34
|
"@vue/language-core": "^3.0.6",
|
|
35
35
|
"@vue/language-core2.0": "npm:@vue/language-core@2.0.29",
|
|
36
|
-
"ai": "^5.0.
|
|
36
|
+
"ai": "^5.0.25",
|
|
37
37
|
"async-listen": "^3.1.0",
|
|
38
38
|
"autoprefixer": "^10.4.21",
|
|
39
39
|
"better-auth": "^1.3.7",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"postcss": "^8.5.6",
|
|
85
85
|
"postcss-nested": "^7.0.2",
|
|
86
86
|
"postgres": "^3.4.7",
|
|
87
|
-
"posthog-node": "^5.
|
|
87
|
+
"posthog-node": "^5.8.0",
|
|
88
88
|
"pretty-bytes": "^7.0.1",
|
|
89
89
|
"pretty-ms": "^9.2.0",
|
|
90
90
|
"querystring": "^0.2.1",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"registry-url": "^7.2.0",
|
|
97
97
|
"rollup": "^4.48.1",
|
|
98
98
|
"rollup-plugin-dts": "^6.2.3",
|
|
99
|
-
"sass": "^1.
|
|
99
|
+
"sass": "^1.91.0",
|
|
100
100
|
"scule": "^1.3.0",
|
|
101
101
|
"semver": "^7.7.2",
|
|
102
102
|
"shebang-command": "^2.0.0",
|
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
"vue-tsc": "^3.0.6",
|
|
118
118
|
"vue-tsc1": "npm:vue-tsc@1.8.27",
|
|
119
119
|
"vue-tsc2.0": "npm:vue-tsc@2.0.29",
|
|
120
|
-
"zod": "^4.1.
|
|
120
|
+
"zod": "^4.1.3"
|
|
121
121
|
},
|
|
122
122
|
"description": "dler (prev. relidler) is a flexible, unified, and fully automated bundler for TypeScript and JavaScript projects, as well as an NPM and JSR publishing tool.",
|
|
123
123
|
"homepage": "https://docs.reliverse.org/cli",
|
|
124
124
|
"license": "MIT",
|
|
125
125
|
"name": "@reliverse/dler",
|
|
126
126
|
"type": "module",
|
|
127
|
-
"version": "1.7.
|
|
127
|
+
"version": "1.7.119",
|
|
128
128
|
"keywords": [
|
|
129
129
|
"reliverse",
|
|
130
130
|
"cli",
|
package/bin/app/build/cmd.d.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@reliverse/rempts").Command<{
|
|
2
|
-
ci: {
|
|
3
|
-
type: "boolean";
|
|
4
|
-
description: string;
|
|
5
|
-
default: boolean;
|
|
6
|
-
};
|
|
7
|
-
dev: {
|
|
8
|
-
type: "boolean";
|
|
9
|
-
description: string;
|
|
10
|
-
};
|
|
11
|
-
cwd: {
|
|
12
|
-
type: "string";
|
|
13
|
-
description: string;
|
|
14
|
-
default: string;
|
|
15
|
-
};
|
|
16
|
-
debugOnlyCopyNonBuildFiles: {
|
|
17
|
-
type: "boolean";
|
|
18
|
-
description: string;
|
|
19
|
-
};
|
|
20
|
-
debugDontCopyNonBuildFiles: {
|
|
21
|
-
type: "boolean";
|
|
22
|
-
description: string;
|
|
23
|
-
};
|
|
24
|
-
"binary-enabled": {
|
|
25
|
-
type: "boolean";
|
|
26
|
-
description: string;
|
|
27
|
-
};
|
|
28
|
-
"binary-input": {
|
|
29
|
-
type: "string";
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
"binary-targets": {
|
|
33
|
-
type: "string";
|
|
34
|
-
description: string;
|
|
35
|
-
};
|
|
36
|
-
"binary-outdir": {
|
|
37
|
-
type: "string";
|
|
38
|
-
description: string;
|
|
39
|
-
};
|
|
40
|
-
"binary-minify": {
|
|
41
|
-
type: "boolean";
|
|
42
|
-
description: string;
|
|
43
|
-
};
|
|
44
|
-
"binary-sourcemap": {
|
|
45
|
-
type: "boolean";
|
|
46
|
-
description: string;
|
|
47
|
-
};
|
|
48
|
-
"binary-bytecode": {
|
|
49
|
-
type: "boolean";
|
|
50
|
-
description: string;
|
|
51
|
-
};
|
|
52
|
-
"binary-clean": {
|
|
53
|
-
type: "boolean";
|
|
54
|
-
description: string;
|
|
55
|
-
};
|
|
56
|
-
"binary-windows-icon": {
|
|
57
|
-
type: "string";
|
|
58
|
-
description: string;
|
|
59
|
-
};
|
|
60
|
-
"binary-windows-hide-console": {
|
|
61
|
-
type: "boolean";
|
|
62
|
-
description: string;
|
|
63
|
-
};
|
|
64
|
-
"binary-asset-naming": {
|
|
65
|
-
type: "string";
|
|
66
|
-
description: string;
|
|
67
|
-
};
|
|
68
|
-
"binary-parallel": {
|
|
69
|
-
type: "boolean";
|
|
70
|
-
description: string;
|
|
71
|
-
};
|
|
72
|
-
"binary-external": {
|
|
73
|
-
type: "array";
|
|
74
|
-
description: string;
|
|
75
|
-
};
|
|
76
|
-
"binary-no-compile": {
|
|
77
|
-
type: "boolean";
|
|
78
|
-
description: string;
|
|
79
|
-
};
|
|
80
|
-
}>;
|
|
81
|
-
export default _default;
|
package/bin/app/build/cmd.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { defineArgs, defineCommand } from "@reliverse/rempts";
|
|
2
|
-
import { getConfigDler } from "../config/load.js";
|
|
3
|
-
import { commonEndActions, commonStartActions } from "../utils/common.js";
|
|
4
|
-
import { finalizeBuild } from "../utils/finalize.js";
|
|
5
|
-
import { getCurrentWorkingDirectory } from "../utils/terminalHelpers.js";
|
|
6
|
-
import { createPerfTimer } from "../utils/utils-perf.js";
|
|
7
|
-
import { dlerBuild } from "./impl.js";
|
|
8
|
-
export default defineCommand({
|
|
9
|
-
meta: {
|
|
10
|
-
name: "build",
|
|
11
|
-
description: ""
|
|
12
|
-
},
|
|
13
|
-
args: defineArgs({
|
|
14
|
-
// Common args
|
|
15
|
-
ci: {
|
|
16
|
-
type: "boolean",
|
|
17
|
-
description: "ci",
|
|
18
|
-
default: !process.stdout.isTTY || !!process.env["CI"]
|
|
19
|
-
},
|
|
20
|
-
dev: {
|
|
21
|
-
type: "boolean",
|
|
22
|
-
description: "dev"
|
|
23
|
-
},
|
|
24
|
-
cwd: {
|
|
25
|
-
type: "string",
|
|
26
|
-
description: "cwd",
|
|
27
|
-
default: getCurrentWorkingDirectory()
|
|
28
|
-
},
|
|
29
|
-
// Command specific args
|
|
30
|
-
debugOnlyCopyNonBuildFiles: {
|
|
31
|
-
type: "boolean",
|
|
32
|
-
description: "Only copy non-build files to dist directories"
|
|
33
|
-
},
|
|
34
|
-
debugDontCopyNonBuildFiles: {
|
|
35
|
-
type: "boolean",
|
|
36
|
-
description: "Don't copy non-build files to dist directories, only build buildPreExtensions files"
|
|
37
|
-
},
|
|
38
|
-
// Binary build args
|
|
39
|
-
"binary-enabled": {
|
|
40
|
-
type: "boolean",
|
|
41
|
-
description: "Enable binary build functionality to create standalone executables"
|
|
42
|
-
},
|
|
43
|
-
"binary-input": {
|
|
44
|
-
type: "string",
|
|
45
|
-
description: "Input TypeScript file to bundle for binary builds (overrides config)"
|
|
46
|
-
},
|
|
47
|
-
"binary-targets": {
|
|
48
|
-
type: "string",
|
|
49
|
-
description: "Comma-separated list of targets to build for (use 'all' for all targets, 'list' to show available targets)"
|
|
50
|
-
},
|
|
51
|
-
"binary-outdir": {
|
|
52
|
-
type: "string",
|
|
53
|
-
description: "Output directory for built binary executables (overrides config)"
|
|
54
|
-
},
|
|
55
|
-
"binary-minify": {
|
|
56
|
-
type: "boolean",
|
|
57
|
-
description: "Minify the binary output (overrides config)"
|
|
58
|
-
},
|
|
59
|
-
"binary-sourcemap": {
|
|
60
|
-
type: "boolean",
|
|
61
|
-
description: "Generate source maps for binary builds (overrides config)"
|
|
62
|
-
},
|
|
63
|
-
"binary-bytecode": {
|
|
64
|
-
type: "boolean",
|
|
65
|
-
description: "Enable bytecode compilation for faster startup (Bun v1.1.30+) (overrides config)"
|
|
66
|
-
},
|
|
67
|
-
"binary-clean": {
|
|
68
|
-
type: "boolean",
|
|
69
|
-
description: "Clean output directory before building binaries (overrides config)"
|
|
70
|
-
},
|
|
71
|
-
"binary-windows-icon": {
|
|
72
|
-
type: "string",
|
|
73
|
-
description: "Path to Windows .ico file for executable icon (overrides config)"
|
|
74
|
-
},
|
|
75
|
-
"binary-windows-hide-console": {
|
|
76
|
-
type: "boolean",
|
|
77
|
-
description: "Hide console window on Windows (overrides config)"
|
|
78
|
-
},
|
|
79
|
-
"binary-asset-naming": {
|
|
80
|
-
type: "string",
|
|
81
|
-
description: "Asset naming pattern for binary builds (overrides config)"
|
|
82
|
-
},
|
|
83
|
-
"binary-parallel": {
|
|
84
|
-
type: "boolean",
|
|
85
|
-
description: "Build binary targets in parallel (overrides config)"
|
|
86
|
-
},
|
|
87
|
-
"binary-external": {
|
|
88
|
-
type: "array",
|
|
89
|
-
description: "External dependencies to exclude from binary bundle (overrides config)"
|
|
90
|
-
},
|
|
91
|
-
"binary-no-compile": {
|
|
92
|
-
type: "boolean",
|
|
93
|
-
description: "Create a bundled script instead of standalone executable (overrides config)"
|
|
94
|
-
}
|
|
95
|
-
}),
|
|
96
|
-
run: async ({ args }) => {
|
|
97
|
-
const {
|
|
98
|
-
ci,
|
|
99
|
-
cwd,
|
|
100
|
-
dev,
|
|
101
|
-
debugOnlyCopyNonBuildFiles,
|
|
102
|
-
debugDontCopyNonBuildFiles,
|
|
103
|
-
"binary-enabled": binaryEnabled,
|
|
104
|
-
"binary-input": binaryInput,
|
|
105
|
-
"binary-targets": binaryTargets,
|
|
106
|
-
"binary-outdir": binaryOutdir,
|
|
107
|
-
"binary-minify": binaryMinify,
|
|
108
|
-
"binary-sourcemap": binarySourcemap,
|
|
109
|
-
"binary-bytecode": binaryBytecode,
|
|
110
|
-
"binary-clean": binaryClean,
|
|
111
|
-
"binary-windows-icon": binaryWindowsIcon,
|
|
112
|
-
"binary-windows-hide-console": binaryWindowsHideConsole,
|
|
113
|
-
"binary-asset-naming": binaryAssetNaming,
|
|
114
|
-
"binary-parallel": binaryParallel,
|
|
115
|
-
"binary-external": binaryExternal,
|
|
116
|
-
"binary-no-compile": binaryNoCompile
|
|
117
|
-
} = args;
|
|
118
|
-
const isCI = Boolean(ci);
|
|
119
|
-
const isDev = Boolean(dev);
|
|
120
|
-
const strCwd = String(cwd);
|
|
121
|
-
const isDebugOnlyCopyNonBuildFiles = Boolean(debugOnlyCopyNonBuildFiles);
|
|
122
|
-
const isDebugDontCopyNonBuildFiles = Boolean(debugDontCopyNonBuildFiles);
|
|
123
|
-
await commonStartActions({ isCI, isDev, strCwd });
|
|
124
|
-
const timer = createPerfTimer();
|
|
125
|
-
const config = await getConfigDler();
|
|
126
|
-
if (binaryEnabled !== void 0) {
|
|
127
|
-
config.binaryBuildEnabled = Boolean(binaryEnabled);
|
|
128
|
-
}
|
|
129
|
-
if (binaryInput !== void 0) {
|
|
130
|
-
config.binaryBuildInputFile = String(binaryInput);
|
|
131
|
-
}
|
|
132
|
-
if (binaryTargets !== void 0) {
|
|
133
|
-
config.binaryBuildTargets = String(binaryTargets);
|
|
134
|
-
}
|
|
135
|
-
if (binaryOutdir !== void 0) {
|
|
136
|
-
config.binaryBuildOutDir = String(binaryOutdir);
|
|
137
|
-
}
|
|
138
|
-
if (binaryMinify !== void 0) {
|
|
139
|
-
config.binaryBuildMinify = Boolean(binaryMinify);
|
|
140
|
-
}
|
|
141
|
-
if (binarySourcemap !== void 0) {
|
|
142
|
-
config.binaryBuildSourcemap = Boolean(binarySourcemap);
|
|
143
|
-
}
|
|
144
|
-
if (binaryBytecode !== void 0) {
|
|
145
|
-
config.binaryBuildBytecode = Boolean(binaryBytecode);
|
|
146
|
-
}
|
|
147
|
-
if (binaryClean !== void 0) {
|
|
148
|
-
config.binaryBuildClean = Boolean(binaryClean);
|
|
149
|
-
}
|
|
150
|
-
if (binaryWindowsIcon !== void 0) {
|
|
151
|
-
config.binaryBuildWindowsIcon = String(binaryWindowsIcon);
|
|
152
|
-
}
|
|
153
|
-
if (binaryWindowsHideConsole !== void 0) {
|
|
154
|
-
config.binaryBuildWindowsHideConsole = Boolean(binaryWindowsHideConsole);
|
|
155
|
-
}
|
|
156
|
-
if (binaryAssetNaming !== void 0) {
|
|
157
|
-
config.binaryBuildAssetNaming = String(binaryAssetNaming);
|
|
158
|
-
}
|
|
159
|
-
if (binaryParallel !== void 0) {
|
|
160
|
-
config.binaryBuildParallel = Boolean(binaryParallel);
|
|
161
|
-
}
|
|
162
|
-
if (binaryExternal !== void 0) {
|
|
163
|
-
config.binaryBuildExternal = binaryExternal;
|
|
164
|
-
}
|
|
165
|
-
if (binaryNoCompile !== void 0) {
|
|
166
|
-
config.binaryBuildNoCompile = Boolean(binaryNoCompile);
|
|
167
|
-
}
|
|
168
|
-
await dlerBuild(
|
|
169
|
-
timer,
|
|
170
|
-
isDev,
|
|
171
|
-
config,
|
|
172
|
-
isDebugOnlyCopyNonBuildFiles,
|
|
173
|
-
isDebugDontCopyNonBuildFiles
|
|
174
|
-
);
|
|
175
|
-
await finalizeBuild(timer, false, "build");
|
|
176
|
-
await commonEndActions();
|
|
177
|
-
}
|
|
178
|
-
});
|
package/bin/app/pub/cmd.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@reliverse/rempts").Command<{
|
|
2
|
-
ci: {
|
|
3
|
-
type: "boolean";
|
|
4
|
-
description: string;
|
|
5
|
-
default: boolean;
|
|
6
|
-
};
|
|
7
|
-
cwd: {
|
|
8
|
-
type: "string";
|
|
9
|
-
description: string;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
dev: {
|
|
13
|
-
type: "boolean";
|
|
14
|
-
description: string;
|
|
15
|
-
};
|
|
16
|
-
}>;
|
|
17
|
-
export default _default;
|
package/bin/app/pub/cmd.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { defineArgs, defineCommand } from "@reliverse/rempts";
|
|
2
|
-
import { getConfigDler } from "../config/load.js";
|
|
3
|
-
import { commonEndActions, commonStartActions } from "../utils/common.js";
|
|
4
|
-
import { getCurrentWorkingDirectory } from "../utils/terminalHelpers.js";
|
|
5
|
-
import { createPerfTimer } from "../utils/utils-perf.js";
|
|
6
|
-
import { dlerPub } from "./impl.js";
|
|
7
|
-
export default defineCommand({
|
|
8
|
-
meta: {
|
|
9
|
-
name: "publish",
|
|
10
|
-
description: ""
|
|
11
|
-
},
|
|
12
|
-
args: defineArgs({
|
|
13
|
-
// Common args
|
|
14
|
-
ci: {
|
|
15
|
-
type: "boolean",
|
|
16
|
-
description: "ci",
|
|
17
|
-
default: !process.stdout.isTTY || !!process.env["CI"]
|
|
18
|
-
},
|
|
19
|
-
cwd: {
|
|
20
|
-
type: "string",
|
|
21
|
-
description: "cwd",
|
|
22
|
-
default: getCurrentWorkingDirectory()
|
|
23
|
-
},
|
|
24
|
-
dev: {
|
|
25
|
-
type: "boolean",
|
|
26
|
-
description: "dev"
|
|
27
|
-
}
|
|
28
|
-
// Command specific args
|
|
29
|
-
// ...
|
|
30
|
-
}),
|
|
31
|
-
run: async ({ args }) => {
|
|
32
|
-
const { ci, cwd, dev } = args;
|
|
33
|
-
const isCI = Boolean(ci);
|
|
34
|
-
const isDev = Boolean(dev);
|
|
35
|
-
const strCwd = String(cwd);
|
|
36
|
-
await commonStartActions({ isCI, isDev, strCwd });
|
|
37
|
-
const timer = createPerfTimer();
|
|
38
|
-
const config = await getConfigDler();
|
|
39
|
-
await dlerPub(timer, isDev, config);
|
|
40
|
-
await commonEndActions();
|
|
41
|
-
}
|
|
42
|
-
});
|
package/bin/app/toolbox/cmd.d.ts
DELETED
package/bin/app/toolbox/cmd.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "@reliverse/rempts";
|
|
2
|
-
import { getOrCreateReliverseConfig } from "../config/core-cfg.js";
|
|
3
|
-
import { showDevToolsMenu } from "./toolbox-impl.js";
|
|
4
|
-
import { getOrCreateReliverseMemory } from "../utils/reliverseMemory.js";
|
|
5
|
-
import { getCurrentWorkingDirectory } from "../utils/terminalHelpers.js";
|
|
6
|
-
export default defineCommand({
|
|
7
|
-
meta: {
|
|
8
|
-
name: "studio",
|
|
9
|
-
description: "Provides information on how to open rseo",
|
|
10
|
-
hidden: true
|
|
11
|
-
},
|
|
12
|
-
args: {
|
|
13
|
-
dev: {
|
|
14
|
-
type: "boolean",
|
|
15
|
-
default: false
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
run: async ({ args }) => {
|
|
19
|
-
const isDev = args.dev;
|
|
20
|
-
const cwd = getCurrentWorkingDirectory();
|
|
21
|
-
const { config } = await getOrCreateReliverseConfig({
|
|
22
|
-
projectPath: cwd,
|
|
23
|
-
isDev,
|
|
24
|
-
overrides: {}
|
|
25
|
-
});
|
|
26
|
-
const memory = await getOrCreateReliverseMemory();
|
|
27
|
-
await showDevToolsMenu({
|
|
28
|
-
projectName: "",
|
|
29
|
-
cwd,
|
|
30
|
-
isDev,
|
|
31
|
-
config,
|
|
32
|
-
memory,
|
|
33
|
-
skipPrompts: false
|
|
34
|
-
});
|
|
35
|
-
process.exit(0);
|
|
36
|
-
}
|
|
37
|
-
});
|
package/bin/dler.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/bin/dler.js
DELETED