@reliverse/dler 1.7.18 → 1.7.20
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/libs/cfg/cfg-mod.d.ts +125 -1
- package/bin/libs/cfg/cfg-mod.js +4 -1
- package/bin/libs/cfg/rse/rse-impl/rse-consts.d.ts +0 -1
- package/bin/libs/cfg/rse/rse-impl/rse-consts.js +0 -1
- package/bin/libs/cfg/rse/rse-impl/rse-define.d.ts +11 -11
- package/bin/libs/cfg/rse/rse-impl/rse-schema.js +2 -8
- package/bin/libs/sdk/sdk-impl/config/info.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RseConfig } from "./rse/rse-impl/rse-types";
|
|
1
2
|
import type { DlerConfig } from "./types";
|
|
2
3
|
/**
|
|
3
4
|
* Default configuration for the build and publish logic.
|
|
@@ -66,4 +67,127 @@ export declare const defineConfigDler: (userConfig?: Partial<DlerConfig>) => {
|
|
|
66
67
|
}>;
|
|
67
68
|
};
|
|
68
69
|
};
|
|
69
|
-
export
|
|
70
|
+
export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
71
|
+
version?: string | undefined;
|
|
72
|
+
$schema?: "./schema.json" | "https://reliverse.org/schema.json" | undefined;
|
|
73
|
+
projectName?: string | undefined;
|
|
74
|
+
projectAuthor?: string | undefined;
|
|
75
|
+
projectDescription?: string | undefined;
|
|
76
|
+
projectLicense?: string | undefined;
|
|
77
|
+
projectRepository?: string | undefined;
|
|
78
|
+
projectDomain?: string | undefined;
|
|
79
|
+
projectGitService?: "none" | "github" | "gitlab" | "bitbucket" | undefined;
|
|
80
|
+
projectDeployService?: "none" | "vercel" | "netlify" | "railway" | "deno" | undefined;
|
|
81
|
+
projectPackageManager?: "pnpm" | "bun" | "npm" | "yarn" | undefined;
|
|
82
|
+
projectState?: "created" | "creating" | undefined;
|
|
83
|
+
projectCategory?: "browser" | "cli" | "unknown" | "website" | "vscode" | "library" | "mobile" | undefined;
|
|
84
|
+
projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
|
|
85
|
+
projectFramework?: "vue" | "rempts" | "npm-jsr" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
|
|
86
|
+
projectTemplate?: "unknown" | "blefnk/relivator-nextjs-template" | "blefnk/relivator-docker-template" | "blefnk/next-react-ts-src-minimal" | "blefnk/all-in-one-nextjs-template" | "blefnk/create-t3-app" | "blefnk/create-next-app" | "blefnk/astro-starlight-template" | "blefnk/versator-nextjs-template" | "blefnk/relivator-lynxjs-template" | "blefnk/relivator-react-native-template" | "reliverse/template-browser-extension" | "microsoft/vscode-extension-samples" | "microsoft/vscode-extension-template" | "rsetarter-template" | "blefnk/deno-cli-tutorial" | undefined;
|
|
87
|
+
projectTemplateDate?: string | undefined;
|
|
88
|
+
features?: {
|
|
89
|
+
i18n?: boolean | undefined;
|
|
90
|
+
analytics?: boolean | undefined;
|
|
91
|
+
themeMode?: "light" | "dark" | "dark-light" | undefined;
|
|
92
|
+
authentication?: boolean | undefined;
|
|
93
|
+
api?: boolean | undefined;
|
|
94
|
+
database?: boolean | undefined;
|
|
95
|
+
testing?: boolean | undefined;
|
|
96
|
+
docker?: boolean | undefined;
|
|
97
|
+
ci?: boolean | undefined;
|
|
98
|
+
commands?: string[] | undefined;
|
|
99
|
+
webview?: string[] | undefined;
|
|
100
|
+
language?: string[] | undefined;
|
|
101
|
+
themes?: string[] | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
preferredLibraries?: {
|
|
104
|
+
search?: "unknown" | "algolia" | undefined;
|
|
105
|
+
i18n?: "unknown" | "next-intl" | undefined;
|
|
106
|
+
analytics?: "unknown" | "vercel" | undefined;
|
|
107
|
+
authentication?: "unknown" | "better-auth" | "clerk" | "next-auth" | "supabase-auth" | "auth0" | undefined;
|
|
108
|
+
api?: "unknown" | "hono" | "trpc" | "graphql" | "rest" | undefined;
|
|
109
|
+
testing?: "unknown" | "bun" | "vitest" | "jest" | "playwright" | "cypress" | undefined;
|
|
110
|
+
stateManagement?: "unknown" | "zustand" | "jotai" | "redux-toolkit" | undefined;
|
|
111
|
+
formManagement?: "unknown" | "react-hook-form" | "formik" | undefined;
|
|
112
|
+
styling?: "sass" | "unknown" | "tailwind" | "styled-components" | "css-modules" | undefined;
|
|
113
|
+
uiComponents?: "unknown" | "shadcn-ui" | "chakra-ui" | "material-ui" | undefined;
|
|
114
|
+
databaseLibrary?: "unknown" | "drizzle" | "prisma" | "supabase" | undefined;
|
|
115
|
+
databaseProvider?: "unknown" | "pg" | "mysql" | "sqlite" | "mongodb" | undefined;
|
|
116
|
+
linting?: "unknown" | "eslint" | undefined;
|
|
117
|
+
formatting?: "unknown" | "biome" | undefined;
|
|
118
|
+
payment?: "unknown" | "stripe" | undefined;
|
|
119
|
+
monitoring?: "unknown" | "sentry" | undefined;
|
|
120
|
+
logging?: "unknown" | "axiom" | undefined;
|
|
121
|
+
forms?: "unknown" | "react-hook-form" | undefined;
|
|
122
|
+
notifications?: "unknown" | "sonner" | undefined;
|
|
123
|
+
uploads?: "unknown" | "uploadthing" | undefined;
|
|
124
|
+
validation?: "unknown" | "zod" | "typebox" | "valibot" | undefined;
|
|
125
|
+
documentation?: "unknown" | "starlight" | "nextra" | undefined;
|
|
126
|
+
icons?: "unknown" | "lucide" | undefined;
|
|
127
|
+
mail?: "unknown" | "resend" | undefined;
|
|
128
|
+
cache?: "unknown" | "redis" | undefined;
|
|
129
|
+
storage?: "unknown" | "cloudflare" | undefined;
|
|
130
|
+
cdn?: "unknown" | "cloudflare" | undefined;
|
|
131
|
+
cms?: "unknown" | "contentlayer" | undefined;
|
|
132
|
+
seo?: "unknown" | "next-seo" | undefined;
|
|
133
|
+
motion?: "unknown" | "framer" | undefined;
|
|
134
|
+
charts?: "unknown" | "recharts" | undefined;
|
|
135
|
+
dates?: "unknown" | "dayjs" | undefined;
|
|
136
|
+
markdown?: "unknown" | "mdx" | undefined;
|
|
137
|
+
security?: "unknown" | "auth" | undefined;
|
|
138
|
+
routing?: "unknown" | "next" | "react-router" | "tanstack-router" | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
codeStyle?: {
|
|
141
|
+
lineWidth?: number | undefined;
|
|
142
|
+
indentSize?: number | undefined;
|
|
143
|
+
indentStyle?: "space" | "tab" | undefined;
|
|
144
|
+
quoteMark?: "single" | "double" | undefined;
|
|
145
|
+
semicolons?: boolean | undefined;
|
|
146
|
+
trailingComma?: "all" | "none" | "es5" | undefined;
|
|
147
|
+
bracketSpacing?: boolean | undefined;
|
|
148
|
+
arrowParens?: "always" | "avoid" | undefined;
|
|
149
|
+
tabWidth?: number | undefined;
|
|
150
|
+
jsToTs?: boolean | undefined;
|
|
151
|
+
dontRemoveComments?: boolean | undefined;
|
|
152
|
+
shouldAddComments?: boolean | undefined;
|
|
153
|
+
typeOrInterface?: "type" | "interface" | "mixed" | undefined;
|
|
154
|
+
importOrRequire?: "import" | "require" | "mixed" | undefined;
|
|
155
|
+
cjsToEsm?: boolean | undefined;
|
|
156
|
+
modernize?: {
|
|
157
|
+
replaceFs?: boolean | undefined;
|
|
158
|
+
replacePath?: boolean | undefined;
|
|
159
|
+
replaceHttp?: boolean | undefined;
|
|
160
|
+
replaceProcess?: boolean | undefined;
|
|
161
|
+
replaceConsole?: boolean | undefined;
|
|
162
|
+
replaceEvents?: boolean | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
importSymbol?: string | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
monorepo?: {
|
|
167
|
+
type?: "none" | "turborepo" | "nx" | "pnpm" | "bun" | undefined;
|
|
168
|
+
packages?: string[] | undefined;
|
|
169
|
+
sharedPackages?: string[] | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
ignoreDependencies?: string[] | undefined;
|
|
172
|
+
customRules?: {
|
|
173
|
+
[x: string]: unknown;
|
|
174
|
+
} | undefined;
|
|
175
|
+
multipleRepoCloneMode?: boolean | undefined;
|
|
176
|
+
customUserFocusedRepos?: string[] | undefined;
|
|
177
|
+
customDevsFocusedRepos?: string[] | undefined;
|
|
178
|
+
hideRepoSuggestions?: boolean | undefined;
|
|
179
|
+
customReposOnNewProject?: boolean | undefined;
|
|
180
|
+
envComposerOpenBrowser?: boolean | undefined;
|
|
181
|
+
repoBranch?: string | undefined;
|
|
182
|
+
repoPrivacy?: "unknown" | "public" | "private" | undefined;
|
|
183
|
+
projectArchitecture?: "unknown" | "fullstack" | "separated" | undefined;
|
|
184
|
+
projectRuntime?: "node" | "bun" | "deno" | undefined;
|
|
185
|
+
skipPromptsUseAutoBehavior?: boolean | undefined;
|
|
186
|
+
deployBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
|
|
187
|
+
depsBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
|
|
188
|
+
gitBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
|
|
189
|
+
i18nBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
|
|
190
|
+
scriptsBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
|
|
191
|
+
existingRepoBehavior?: "prompt" | "autoYes" | "autoNo" | "autoYesSkipCommit" | undefined;
|
|
192
|
+
relinterConfirm?: "autoYes" | "promptOnce" | "promptEachFile" | undefined;
|
|
193
|
+
};
|
package/bin/libs/cfg/cfg-mod.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DEFAULT_CONFIG_RSE } from "./rse/rse-impl/rse-default.js";
|
|
1
2
|
export const DEFAULT_CONFIG_DLER = {
|
|
2
3
|
bumpDisable: false,
|
|
3
4
|
bumpFilter: ["package.json", ".config/rse.ts"],
|
|
@@ -58,4 +59,6 @@ export const DEFAULT_CONFIG_DLER = {
|
|
|
58
59
|
export const defineConfigDler = (userConfig = {}) => {
|
|
59
60
|
return { ...DEFAULT_CONFIG_DLER, ...userConfig };
|
|
60
61
|
};
|
|
61
|
-
export
|
|
62
|
+
export const defineConfigRse = (userConfig = {}) => {
|
|
63
|
+
return { ...DEFAULT_CONFIG_RSE, ...userConfig };
|
|
64
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import path from "@reliverse/pathkit";
|
|
2
2
|
import os from "node:os";
|
|
3
3
|
export const PROJECT_ROOT = path.resolve(process.cwd());
|
|
4
|
-
export const rseVersion = "1.7.4";
|
|
5
4
|
export const rseName = "@reliverse/rse";
|
|
6
5
|
export const tsconfigJson = "tsconfig.json";
|
|
7
6
|
export const cliConfigJsonc = ".config/rse.jsonc";
|
|
@@ -10,11 +10,11 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
10
10
|
projectDomain?: string | undefined;
|
|
11
11
|
projectGitService?: "none" | "github" | "gitlab" | "bitbucket" | undefined;
|
|
12
12
|
projectDeployService?: "none" | "vercel" | "netlify" | "railway" | "deno" | undefined;
|
|
13
|
-
projectPackageManager?: "
|
|
14
|
-
projectState?: "
|
|
13
|
+
projectPackageManager?: "pnpm" | "bun" | "npm" | "yarn" | undefined;
|
|
14
|
+
projectState?: "created" | "creating" | undefined;
|
|
15
15
|
projectCategory?: "browser" | "cli" | "unknown" | "website" | "vscode" | "library" | "mobile" | undefined;
|
|
16
16
|
projectSubcategory?: "unknown" | "e-commerce" | "tool" | undefined;
|
|
17
|
-
projectFramework?: "
|
|
17
|
+
projectFramework?: "vue" | "rempts" | "npm-jsr" | "unknown" | "vscode" | "nextjs" | "vite" | "svelte" | "remix" | "astro" | "nuxt" | "solid" | "qwik" | "wxt" | "lynx" | "react-native" | "expo" | "capacitor" | "ionic" | "electron" | "tauri" | "neutralino" | "citty" | "commander" | "cac" | "meow" | "yargs" | "webextension" | "browser-extension" | undefined;
|
|
18
18
|
projectTemplate?: "unknown" | "blefnk/relivator-nextjs-template" | "blefnk/relivator-docker-template" | "blefnk/next-react-ts-src-minimal" | "blefnk/all-in-one-nextjs-template" | "blefnk/create-t3-app" | "blefnk/create-next-app" | "blefnk/astro-starlight-template" | "blefnk/versator-nextjs-template" | "blefnk/relivator-lynxjs-template" | "blefnk/relivator-react-native-template" | "reliverse/template-browser-extension" | "microsoft/vscode-extension-samples" | "microsoft/vscode-extension-template" | "rsetarter-template" | "blefnk/deno-cli-tutorial" | undefined;
|
|
19
19
|
projectTemplateDate?: string | undefined;
|
|
20
20
|
features?: {
|
|
@@ -34,20 +34,19 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
34
34
|
} | undefined;
|
|
35
35
|
preferredLibraries?: {
|
|
36
36
|
search?: "unknown" | "algolia" | undefined;
|
|
37
|
-
cdn?: "unknown" | "cloudflare" | undefined;
|
|
38
37
|
i18n?: "unknown" | "next-intl" | undefined;
|
|
39
38
|
analytics?: "unknown" | "vercel" | undefined;
|
|
40
39
|
authentication?: "unknown" | "better-auth" | "clerk" | "next-auth" | "supabase-auth" | "auth0" | undefined;
|
|
41
40
|
api?: "unknown" | "hono" | "trpc" | "graphql" | "rest" | undefined;
|
|
42
|
-
testing?: "
|
|
41
|
+
testing?: "unknown" | "bun" | "vitest" | "jest" | "playwright" | "cypress" | undefined;
|
|
43
42
|
stateManagement?: "unknown" | "zustand" | "jotai" | "redux-toolkit" | undefined;
|
|
44
43
|
formManagement?: "unknown" | "react-hook-form" | "formik" | undefined;
|
|
45
44
|
styling?: "sass" | "unknown" | "tailwind" | "styled-components" | "css-modules" | undefined;
|
|
46
45
|
uiComponents?: "unknown" | "shadcn-ui" | "chakra-ui" | "material-ui" | undefined;
|
|
47
46
|
databaseLibrary?: "unknown" | "drizzle" | "prisma" | "supabase" | undefined;
|
|
48
47
|
databaseProvider?: "unknown" | "pg" | "mysql" | "sqlite" | "mongodb" | undefined;
|
|
49
|
-
linting?: "
|
|
50
|
-
formatting?: "
|
|
48
|
+
linting?: "unknown" | "eslint" | undefined;
|
|
49
|
+
formatting?: "unknown" | "biome" | undefined;
|
|
51
50
|
payment?: "unknown" | "stripe" | undefined;
|
|
52
51
|
monitoring?: "unknown" | "sentry" | undefined;
|
|
53
52
|
logging?: "unknown" | "axiom" | undefined;
|
|
@@ -60,6 +59,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
60
59
|
mail?: "unknown" | "resend" | undefined;
|
|
61
60
|
cache?: "unknown" | "redis" | undefined;
|
|
62
61
|
storage?: "unknown" | "cloudflare" | undefined;
|
|
62
|
+
cdn?: "unknown" | "cloudflare" | undefined;
|
|
63
63
|
cms?: "unknown" | "contentlayer" | undefined;
|
|
64
64
|
seo?: "unknown" | "next-seo" | undefined;
|
|
65
65
|
motion?: "unknown" | "framer" | undefined;
|
|
@@ -75,7 +75,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
75
75
|
indentStyle?: "space" | "tab" | undefined;
|
|
76
76
|
quoteMark?: "single" | "double" | undefined;
|
|
77
77
|
semicolons?: boolean | undefined;
|
|
78
|
-
trailingComma?: "
|
|
78
|
+
trailingComma?: "all" | "none" | "es5" | undefined;
|
|
79
79
|
bracketSpacing?: boolean | undefined;
|
|
80
80
|
arrowParens?: "always" | "avoid" | undefined;
|
|
81
81
|
tabWidth?: number | undefined;
|
|
@@ -83,7 +83,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
83
83
|
dontRemoveComments?: boolean | undefined;
|
|
84
84
|
shouldAddComments?: boolean | undefined;
|
|
85
85
|
typeOrInterface?: "type" | "interface" | "mixed" | undefined;
|
|
86
|
-
importOrRequire?: "
|
|
86
|
+
importOrRequire?: "import" | "require" | "mixed" | undefined;
|
|
87
87
|
cjsToEsm?: boolean | undefined;
|
|
88
88
|
modernize?: {
|
|
89
89
|
replaceFs?: boolean | undefined;
|
|
@@ -96,7 +96,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
96
96
|
importSymbol?: string | undefined;
|
|
97
97
|
} | undefined;
|
|
98
98
|
monorepo?: {
|
|
99
|
-
type?: "none" | "
|
|
99
|
+
type?: "none" | "turborepo" | "nx" | "pnpm" | "bun" | undefined;
|
|
100
100
|
packages?: string[] | undefined;
|
|
101
101
|
sharedPackages?: string[] | undefined;
|
|
102
102
|
} | undefined;
|
|
@@ -113,7 +113,7 @@ export declare const defineConfigRse: (userConfig?: Partial<RseConfig>) => {
|
|
|
113
113
|
repoBranch?: string | undefined;
|
|
114
114
|
repoPrivacy?: "unknown" | "public" | "private" | undefined;
|
|
115
115
|
projectArchitecture?: "unknown" | "fullstack" | "separated" | undefined;
|
|
116
|
-
projectRuntime?: "
|
|
116
|
+
projectRuntime?: "node" | "bun" | "deno" | undefined;
|
|
117
117
|
skipPromptsUseAutoBehavior?: boolean | undefined;
|
|
118
118
|
deployBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
|
|
119
119
|
depsBehavior?: "prompt" | "autoYes" | "autoNo" | undefined;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import path from "@reliverse/pathkit";
|
|
2
2
|
import fs from "@reliverse/relifso";
|
|
3
3
|
import { Type } from "@sinclair/typebox";
|
|
4
|
-
import {
|
|
5
|
-
cliDomainDocs,
|
|
6
|
-
rseVersion,
|
|
7
|
-
RSE_SCHEMA_DEV,
|
|
8
|
-
RSE_SCHEMA_URL,
|
|
9
|
-
UNKNOWN_VALUE
|
|
10
|
-
} from "./rse-consts.js";
|
|
4
|
+
import { cliDomainDocs, RSE_SCHEMA_DEV, RSE_SCHEMA_URL, UNKNOWN_VALUE } from "./rse-consts.js";
|
|
11
5
|
const unknownLiteral = Type.Literal("unknown");
|
|
12
6
|
const featuresSchema = Type.Object({
|
|
13
7
|
i18n: Type.Optional(Type.Boolean()),
|
|
@@ -427,7 +421,7 @@ export async function generateJsonSchema(outputPath) {
|
|
|
427
421
|
const converted = convertTypeBoxToJsonSchema(rseSchema);
|
|
428
422
|
const schema = {
|
|
429
423
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
430
|
-
title:
|
|
424
|
+
title: "rse configuration schema",
|
|
431
425
|
description: cliDomainDocs,
|
|
432
426
|
type: "object",
|
|
433
427
|
properties: converted.properties,
|