Skip to content

Commit 7faa669

Browse files
committed
improve template repo download logic
1 parent 5f8adb8 commit 7faa669

33 files changed

+1131
-727
lines changed

.reliverse

+14-16
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,24 @@
88
"projectName": "@reliverse/cli",
99
"projectAuthor": "blefnk",
1010
"projectDescription": "This superapp CLI tool can help you easily create new web projects, manage existing projects, and automatically make advanced codebase modifications, with more features coming soon.",
11-
"projectVersion": "1.4.47",
11+
"projectVersion": "1.4.60",
1212
"projectLicense": "MIT",
13-
"projectRepository": "unknown/@reliverse/cli",
1413
"projectState": "creating",
14+
"projectRepository": "https://github.com/reliverse/cli",
1515
"projectDomain": "https://docs.reliverse.org",
16-
"projectDeployService": "vercel",
1716
"projectCategory": "unknown",
1817
"projectSubcategory": "unknown",
1918
"projectTemplate": "unknown",
2019
"projectArchitecture": "unknown",
2120
"repoPrivacy": "unknown",
21+
"projectGitService": "github",
22+
"projectDeployService": "vercel",
2223
"repoBranch": "main",
2324

2425
// Primary tech stack/framework
2526
"projectFramework": "npm-jsr",
2627
"projectPackageManager": "bun",
27-
"projectRuntime": "nodejs",
28+
"projectRuntime": "bun",
2829
"preferredLibraries": {
2930
"stateManagement": "zustand",
3031
"formManagement": "react-hook-form",
@@ -41,7 +42,7 @@
4142
"sharedPackages": []
4243
},
4344

44-
// Dependencies to exclude from checks
45+
// List dependencies to exclude from checks
4546
"ignoreDependencies": [],
4647

4748
// Custom rules for Reliverse AI
@@ -96,32 +97,29 @@
9697
}
9798
},
9899

99-
// `Clone an existing repo` menu
100+
// Settings for cloning an existing repo
100101
"multipleRepoCloneMode": false,
101102
"customUserFocusedRepos": [],
102103
"customDevsFocusedRepos": [],
103104
"hideRepoSuggestions": false,
104105
"customReposOnNewProject": false,
105106

106-
// Set to false to disable opening
107-
// the browser while env composing
107+
// Set to false to disable opening the browser during env composing
108108
"envComposerOpenBrowser": true,
109109

110-
// Do you want to enable auto-answering for prompts?
111-
// Set this field to true to skip manual confirmations.
112-
// Configure also unknown values and prompts behavior.
110+
// Enable auto-answering for prompts to skip manual confirmations.
111+
// Make sure you have unknown values configured above.
113112
"skipPromptsUseAutoBehavior": false,
114113

115-
// Specific prompts behavior
116-
// prompt | autoYes | autoNo
114+
// Prompt behavior for deployment
115+
// Options: prompt | autoYes | autoNo
117116
"deployBehavior": "prompt",
118117
"depsBehavior": "prompt",
119118
"gitBehavior": "prompt",
120119
"i18nBehavior": "prompt",
121120
"scriptsBehavior": "prompt",
122121

123-
// What CLI should do with existing GitHub repo
124-
// Applicable for the new project creation only
125-
// prompt | autoYes | autoYesSkipCommit | autoNo
122+
// Behavior for existing GitHub repos during project creation
123+
// Options: prompt | autoYes | autoYesSkipCommit | autoNo
126124
"existingRepoBehavior": "prompt"
127125
}

build.config.ts

+2-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { defineBuildConfig } from "unbuild";
33
import pubConfig from "./pub.config.js";
44

55
export default defineBuildConfig({
6-
declaration: false,
6+
declaration: true,
77
clean: false,
88
entries: [
99
{
@@ -12,20 +12,13 @@ export default defineBuildConfig({
1212
format: "esm",
1313
input: "src",
1414
ext: "js",
15-
// pattern: [
16-
// "**/*.ts",
17-
// "**/*.tsx",
18-
// "!**/*.d.ts",
19-
// "!**/*.test.ts",
20-
// "!**/__tests__/**",
21-
// ],
2215
},
2316
],
2417
rollup: {
2518
emitCJS: false,
2619
esbuild: {
27-
minify: pubConfig.shouldMinify,
2820
target: "es2023",
21+
minify: pubConfig.shouldMinify,
2922
exclude: ["**/*.test.ts", "**/__tests__/**"],
3023
},
3124
},

bun.lock

+123-29
Large diffs are not rendered by default.

cspell.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.4.55",
2+
"version": "1.4.60",
33
"language": "en",
44
"ignorePaths": [
55
"**/*.lock",

package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@reliverse/cli",
33
"author": "reliverse",
4-
"version": "1.4.53",
4+
"version": "1.4.60",
55
"type": "module",
66
"license": "MIT",
77
"description": "This superapp CLI tool can help you easily create new web projects, manage existing projects, and automatically make advanced codebase modifications, with more features coming soon.",
@@ -42,13 +42,14 @@
4242
"@rollup/plugin-replace": "^6.0.2",
4343
"@rollup/pluginutils": "^5.1.4",
4444
"@sinclair/typebox": "^0.34.15",
45+
"@types/minimist": "^1.2.5",
4546
"@types/mute-stream": "^0.0.4",
4647
"@vercel/sdk": "^1.3.1",
4748
"@vitejs/plugin-react": "^4.3.4",
4849
"ai": "^4.1.16",
4950
"async-listen": "^3.0.1",
5051
"better-sqlite3": "^11.8.1",
51-
"bun-types": "^1.2.1",
52+
"bun-types": "^1.2.2",
5253
"c12": "^2.0.1",
5354
"citty": "^0.1.6",
5455
"cli-spinners": "^3.2.0",
@@ -70,6 +71,7 @@
7071
"jiti": "^2.4.2",
7172
"magic-regexp": "^0.8.0",
7273
"magic-string": "^0.30.17",
74+
"minimist": "^1.2.8",
7375
"mkdist": "^2.2.0",
7476
"mlly": "^1.7.4",
7577
"mute-stream": "^2.0.0",
@@ -89,7 +91,7 @@
8991
"random-words": "^2.0.1",
9092
"react-router": "^7.1.5",
9193
"react-router-dom": "^7.1.5",
92-
"rollup": "^4.32.1",
94+
"rollup": "^4.34.0",
9395
"rollup-plugin-dts": "^6.1.1",
9496
"scule": "^1.3.0",
9597
"semver": "^7.7.0",
@@ -124,7 +126,7 @@
124126
"@trpc/react-query": "^11.0.0-rc.730",
125127
"@trpc/server": "^11.0.0-rc.730",
126128
"@types/better-sqlite3": "^7.6.12",
127-
"@types/bun": "^1.2.1",
129+
"@types/bun": "^1.2.2",
128130
"@types/cross-spawn": "^6.0.6",
129131
"@types/eslint__js": "^8.42.3",
130132
"@types/fs-extra": "^11.0.4",
@@ -156,7 +158,7 @@
156158
"react": "^19.0.0",
157159
"react-dom": "^19.0.0",
158160
"superjson": "^2.2.2",
159-
"tailwindcss": "^4.0.2",
161+
"tailwindcss": "^4.0.3",
160162
"tsx": "^4.19.2",
161163
"type-fest": "^4.33.0",
162164
"typescript": "^5.7.3",

pub.config.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type PublishConfig = {
5858
/**
5959
* The bundler to use for building the JSR-optimized package.
6060
*/
61-
builderJsR: "bun" | "copy" | "mkdist" | "rollup" | "untyped";
61+
builderJsr: "bun" | "copy" | "mkdist" | "rollup" | "untyped";
6262

6363
/**
6464
* If `true`, minify the build output.
@@ -111,8 +111,8 @@ const pubConfig: PublishConfig = {
111111
disableBump: false,
112112

113113
// Behavior toggles
114-
pausePublish: true,
115-
verbose: true,
114+
pausePublish: false,
115+
verbose: false,
116116
dryRun: false,
117117

118118
// Output directories
@@ -122,13 +122,13 @@ const pubConfig: PublishConfig = {
122122

123123
// Build configuration
124124
builderNpm: "mkdist",
125-
builderJsR: "copy",
125+
builderJsr: "copy",
126126
shouldMinify: true,
127127
splitting: false,
128128
sourcemap: "linked",
129+
publicPath: "/",
129130
target: "node",
130131
format: "esm",
131-
publicPath: "/",
132132
};
133133

134134
export default pubConfig;

0 commit comments

Comments
 (0)