@reliverse/dler 1.7.114 → 1.7.115
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/add/add-local/core/templates.d.ts +3 -3
- package/bin/app/add/add-local/core/templates.js +8 -8
- package/bin/app/add/cmd.js +2 -2
- package/bin/app/ai/ai-impl/ai-chat.d.ts +2 -2
- package/bin/app/ai/ai-impl/ai-types.d.ts +2 -2
- package/bin/app/ai/ai-impl/relinter/relinter.d.ts +2 -2
- package/bin/app/ai/ai-menu.d.ts +2 -2
- package/bin/app/ai/cmd.js +4 -4
- package/bin/app/better/auth/cmd.js +1 -6
- package/bin/app/build/build-library.d.ts +5 -4
- package/bin/app/build/build-regular.d.ts +4 -3
- package/bin/app/build/cmd.d.ts +10 -0
- package/bin/app/build/cmd.js +29 -12
- package/bin/app/build/impl.d.ts +3 -2
- package/bin/app/build/library-flow.d.ts +5 -4
- package/bin/app/build/postbuild.d.ts +2 -2
- package/bin/app/build/postbuild.js +0 -6
- package/bin/app/build/prebuild.d.ts +2 -2
- package/bin/app/build/prebuild.js +0 -6
- package/bin/app/build/regular-flow.d.ts +4 -3
- package/bin/app/check/cmd.js +2 -2
- package/bin/app/config/constants.d.ts +1 -1
- package/bin/app/config/constants.js +1 -1
- package/bin/app/config/content.d.ts +1 -1
- package/bin/app/config/content.js +2 -2
- package/bin/app/config/core-cfg.d.ts +5 -5
- package/bin/app/config/core-cfg.js +27 -16
- package/bin/app/config/create.d.ts +6 -5
- package/bin/app/config/create.js +13 -22
- package/bin/app/config/def-utils.d.ts +3 -3
- package/bin/app/config/def-utils.js +10 -8
- package/bin/app/config/detect.d.ts +4 -2
- package/bin/app/config/detect.js +36 -6
- package/bin/app/config/gen-cfg.js +4 -4
- package/bin/app/config/load.d.ts +2 -2
- package/bin/app/config/load.js +1 -1
- package/bin/app/config/migrate.d.ts +1 -1
- package/bin/app/config/migrate.js +7 -3
- package/bin/app/config/path.d.ts +1 -1
- package/bin/app/config/path.js +3 -3
- package/bin/app/config/prepare.d.ts +1 -1
- package/bin/app/config/prepare.js +83 -81
- package/bin/app/config/prompts.d.ts +1 -1
- package/bin/app/config/prompts.js +1 -1
- package/bin/app/config/read.d.ts +3 -3
- package/bin/app/config/read.js +13 -35
- package/bin/app/config/repair.d.ts +2 -2
- package/bin/app/config/repair.js +12 -12
- package/bin/app/config/unstable.d.ts +3 -3
- package/bin/app/config/unstable.js +2 -14
- package/bin/app/config/update.d.ts +3 -3
- package/bin/app/config/update.js +41 -48
- package/bin/app/env/env-impl.js +2 -2
- package/bin/app/init/cmd-2.js +2 -2
- package/bin/app/init/init-utils/init-utils.js +7 -7
- package/bin/app/init/init-utils/mm-deprecated/editor-menu.d.ts +3 -2
- package/bin/app/init/init-utils/mm-deprecated/editor-menu.js +1 -6
- package/bin/app/init/use-template/cp-impl.d.ts +5 -4
- package/bin/app/init/use-template/cp-mod.d.ts +3 -3
- package/bin/app/init/use-template/cp-mod.js +5 -5
- package/bin/app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/showCloneProjectMenu.d.ts +2 -2
- package/bin/app/init/use-template/cp-modules/compose-env-file/cef-impl.d.ts +2 -2
- package/bin/app/init/use-template/cp-modules/compose-env-file/cef-mod.d.ts +2 -2
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/deploy.d.ts +4 -3
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/gdp-mod.d.ts +5 -4
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/git.d.ts +6 -5
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/github.d.ts +2 -2
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-private-repo.d.ts +2 -2
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-private-repo.js +6 -3
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-repo-exists.d.ts +3 -2
- package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-repo-exists.js +4 -4
- package/bin/app/invoke/cmd.js +2 -2
- package/bin/app/mrse/cmd.js +2 -2
- package/bin/app/mrse/mrse-impl.js +2 -2
- package/bin/app/providers/better-t-stack/types.d.ts +5 -5
- package/bin/app/providers/package.json +3 -0
- package/bin/app/providers/reliverse-stack/reliverse-stack-mod.js +2 -2
- package/bin/app/providers/reliverse-stack/rs-impl.d.ts +4 -4
- package/bin/app/pub/cmd.d.ts +10 -0
- package/bin/app/pub/cmd.js +27 -12
- package/bin/app/pub/impl.d.ts +3 -2
- package/bin/app/rempts/cmd.js +2 -2
- package/bin/app/rules/reliverse/dler-config-health/dler-config-health.d.ts +1 -1
- package/bin/app/rules/reliverse/dler-config-health/dler-config-health.js +1 -1
- package/bin/app/schema/cmd.js +3 -3
- package/bin/app/{config/reltypes-content.js → schema/gen.js} +475 -229
- package/bin/app/schema/mod.d.ts +1224 -0
- package/bin/app/schema/mod.js +329 -0
- package/bin/app/{config/reltypes-utils.js → schema/utils.js} +6 -3
- package/bin/app/toolbox/cmd.js +2 -2
- package/bin/app/toolbox/toolbox-impl.d.ts +3 -2
- package/bin/app/types/mod.d.ts +10 -1518
- package/bin/app/types/mod.js +0 -161
- package/bin/app/update/impl.d.ts +1 -0
- package/bin/app/update/impl.js +102 -1
- package/bin/app/utils/common.d.ts +3 -0
- package/bin/app/utils/common.js +28 -0
- package/bin/app/utils/decideHelper.d.ts +2 -2
- package/bin/app/utils/downloading/downloadRepo.d.ts +2 -2
- package/bin/app/utils/downloading/downloadRepo.js +3 -3
- package/bin/app/utils/downloading/handleDownload.d.ts +2 -2
- package/bin/app/utils/finalize.d.ts +2 -1
- package/bin/app/utils/handlers/handleCleanup.js +2 -2
- package/bin/app/utils/handlers/handleCodemods.d.ts +2 -2
- package/bin/app/utils/projectRepository.d.ts +3 -4
- package/bin/app/utils/prompts/askUsernameFrontend.d.ts +2 -2
- package/bin/app/utils/prompts/askUsernameFrontend.js +3 -3
- package/bin/app/utils/resolve-cross-libs.js +2 -2
- package/bin/app/utils/schemaMemory.d.ts +1 -1
- package/bin/app/utils/startEndPrompts.d.ts +8 -2
- package/bin/app/utils/startEndPrompts.js +43 -12
- package/bin/app/utils/utils-build.d.ts +2 -2
- package/bin/app/utils/utils-clean.d.ts +1 -1
- package/bin/app/utils/utils-deps.d.ts +2 -2
- package/bin/app/utils/utils-determine.d.ts +1 -1
- package/bin/app/utils/utils-jsr-json.d.ts +2 -2
- package/bin/app/utils/utils-package-json-libraries.d.ts +3 -3
- package/bin/app/utils/utils-package-json-regular.d.ts +2 -2
- package/bin/dler.js +2 -92
- package/bin/mod.d.ts +431 -438
- package/bin/mod.js +36 -27
- package/package.json +10 -10
- package/bin/app/agg/cmd.d.ts +0 -72
- package/bin/app/agg/cmd.js +0 -128
- package/bin/app/cli/cmd.d.ts +0 -12
- package/bin/app/cli/cmd.js +0 -56
- package/bin/app/cli/impl.d.ts +0 -3
- package/bin/app/cli/impl.js +0 -88
- package/bin/app/config/default-cfg.d.ts +0 -3
- package/bin/app/config/default-cfg.js +0 -155
- package/bin/app/config/default.d.ts +0 -6
- package/bin/app/config/default.js +0 -159
- package/bin/app/config/schema.d.ts +0 -130
- package/bin/app/config/schema.js +0 -443
- package/bin/app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/getMainMenuOptions.d.ts +0 -12
- package/bin/app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/getMainMenuOptions.js +0 -69
- package/bin/app/init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.d.ts +0 -2
- package/bin/app/init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.js +0 -26
- package/bin/app/schema/schema-impl.d.ts +0 -2
- package/bin/app/schema/schema-impl.js +0 -24
- package/bin/app/update/cmd.d.ts +0 -103
- package/bin/app/update/cmd.js +0 -299
- package/bin/app/utils/native-cli/nc-impl.d.ts +0 -15
- package/bin/app/utils/native-cli/nc-impl.js +0 -154
- package/bin/app/utils/native-cli/nc-mod.d.ts +0 -3
- package/bin/app/utils/native-cli/nc-mod.js +0 -44
- package/bin/app/web/README.md +0 -149
- package/bin/app/web/cmd.d.ts +0 -2
- package/bin/app/web/cmd.js +0 -11
- package/bin/dler-go +0 -4
- package/bin/dler-rust +0 -4
- /package/bin/app/{config/reltypes-content.d.ts → schema/gen.d.ts} +0 -0
- /package/bin/app/{config/reltypes-utils.d.ts → schema/utils.d.ts} +0 -0
- /package/bin/app/utils/{hasOnlyRseConfig.d.ts → hasOnlyReliverseConfig.d.ts} +0 -0
- /package/bin/app/utils/{hasOnlyRseConfig.js → hasOnlyReliverseConfig.js} +0 -0
package/bin/dler.js
CHANGED
|
@@ -1,92 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
callCmd,
|
|
4
|
-
defineArgs,
|
|
5
|
-
defineCommand,
|
|
6
|
-
runMain,
|
|
7
|
-
selectPrompt,
|
|
8
|
-
showUsage
|
|
9
|
-
} from "@reliverse/rempts";
|
|
10
|
-
import { default as buildCmd } from "./app/build/cmd.js";
|
|
11
|
-
import { prepareReliverseEnvironment } from "./app/config/prepare.js";
|
|
12
|
-
import {
|
|
13
|
-
showEndPrompt,
|
|
14
|
-
showStartPrompt
|
|
15
|
-
} from "./app/init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.js";
|
|
16
|
-
import { default as pubCmd } from "./app/pub/cmd.js";
|
|
17
|
-
import { default as updateCmd } from "./app/update/cmd.js";
|
|
18
|
-
import { promptAggCommand } from "./app/utils/agg/agg-1.js";
|
|
19
|
-
const MENU_CMDS = ["agg", "build", "pub", "update"];
|
|
20
|
-
const main = defineCommand({
|
|
21
|
-
meta: {
|
|
22
|
-
name: "dler",
|
|
23
|
-
version: "1.7.114",
|
|
24
|
-
description: `Displays dler's command menu.
|
|
25
|
-
To see ALL available commands and arguments, run: 'dler --help' (or 'dler <command> --help')
|
|
26
|
-
Available menu commands: ${MENU_CMDS.join(", ")}`
|
|
27
|
-
},
|
|
28
|
-
args: defineArgs({
|
|
29
|
-
dev: {
|
|
30
|
-
type: "boolean",
|
|
31
|
-
description: "Runs the CLI in dev mode"
|
|
32
|
-
},
|
|
33
|
-
cwd: {
|
|
34
|
-
type: "string",
|
|
35
|
-
description: "The working directory to run the CLI in",
|
|
36
|
-
default: process.cwd()
|
|
37
|
-
},
|
|
38
|
-
"install-dlerust": {
|
|
39
|
-
type: "boolean",
|
|
40
|
-
description: "(experimental) Install 'dlerust' binary",
|
|
41
|
-
default: false
|
|
42
|
-
}
|
|
43
|
-
}),
|
|
44
|
-
async run({ args }) {
|
|
45
|
-
const isDev = args.dev;
|
|
46
|
-
const isCI = process.env.CI === "true";
|
|
47
|
-
const isNonInteractive = !process.stdout.isTTY;
|
|
48
|
-
if (isCI || isNonInteractive) {
|
|
49
|
-
relinka(
|
|
50
|
-
"error",
|
|
51
|
-
"Non-interactive mode was detected. Please use `dler --help` to see available non-interactive commands and options."
|
|
52
|
-
);
|
|
53
|
-
showUsage(main);
|
|
54
|
-
process.exit(0);
|
|
55
|
-
}
|
|
56
|
-
await showStartPrompt(isDev, false);
|
|
57
|
-
await prepareReliverseEnvironment(isDev, "ts");
|
|
58
|
-
relinka("verbose", `Running in ${isDev ? "dev" : "prod"} mode`);
|
|
59
|
-
const cmdToRun = await selectPrompt({
|
|
60
|
-
title: "Select a command to run",
|
|
61
|
-
content: "Run 'dler --help' to see all available commands",
|
|
62
|
-
options: [
|
|
63
|
-
{ value: "build", label: "build only project" },
|
|
64
|
-
{ value: "pub", label: "build+pub project" },
|
|
65
|
-
{ value: "upgrade", label: "upgrade dev tools" },
|
|
66
|
-
{ value: "update", label: "update all deps" },
|
|
67
|
-
{ value: "agg", label: "aggregate" },
|
|
68
|
-
{ value: "exit", label: "exit" }
|
|
69
|
-
]
|
|
70
|
-
});
|
|
71
|
-
switch (cmdToRun) {
|
|
72
|
-
case "build": {
|
|
73
|
-
await callCmd(buildCmd, { dev: isDev });
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
case "pub": {
|
|
77
|
-
await callCmd(pubCmd, { dev: isDev });
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
case "update": {
|
|
81
|
-
await callCmd(updateCmd, {});
|
|
82
|
-
break;
|
|
83
|
-
}
|
|
84
|
-
case "agg": {
|
|
85
|
-
await promptAggCommand();
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
await showEndPrompt();
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
await runMain(main);
|
|
1
|
+
import { createCli, defineCommand } from "@reliverse/rempts";
|
|
2
|
+
await createCli(defineCommand({}));
|