Skip to content

Commit

Permalink
improve template repo download logic
Browse files Browse the repository at this point in the history
  • Loading branch information
blefnk committed Feb 1, 2025
1 parent 5f8adb8 commit 7faa669
Show file tree
Hide file tree
Showing 33 changed files with 1,131 additions and 727 deletions.
30 changes: 14 additions & 16 deletions .reliverse
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,24 @@
"projectName": "@reliverse/cli",
"projectAuthor": "blefnk",
"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.",
"projectVersion": "1.4.47",
"projectVersion": "1.4.60",
"projectLicense": "MIT",
"projectRepository": "unknown/@reliverse/cli",
"projectState": "creating",
"projectRepository": "https://github.com/reliverse/cli",
"projectDomain": "https://docs.reliverse.org",
"projectDeployService": "vercel",
"projectCategory": "unknown",
"projectSubcategory": "unknown",
"projectTemplate": "unknown",
"projectArchitecture": "unknown",
"repoPrivacy": "unknown",
"projectGitService": "github",
"projectDeployService": "vercel",
"repoBranch": "main",

// Primary tech stack/framework
"projectFramework": "npm-jsr",
"projectPackageManager": "bun",
"projectRuntime": "nodejs",
"projectRuntime": "bun",
"preferredLibraries": {
"stateManagement": "zustand",
"formManagement": "react-hook-form",
Expand All @@ -41,7 +42,7 @@
"sharedPackages": []
},

// Dependencies to exclude from checks
// List dependencies to exclude from checks
"ignoreDependencies": [],

// Custom rules for Reliverse AI
Expand Down Expand Up @@ -96,32 +97,29 @@
}
},

// `Clone an existing repo` menu
// Settings for cloning an existing repo
"multipleRepoCloneMode": false,
"customUserFocusedRepos": [],
"customDevsFocusedRepos": [],
"hideRepoSuggestions": false,
"customReposOnNewProject": false,

// Set to false to disable opening
// the browser while env composing
// Set to false to disable opening the browser during env composing
"envComposerOpenBrowser": true,

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

// Specific prompts behavior
// prompt | autoYes | autoNo
// Prompt behavior for deployment
// Options: prompt | autoYes | autoNo
"deployBehavior": "prompt",
"depsBehavior": "prompt",
"gitBehavior": "prompt",
"i18nBehavior": "prompt",
"scriptsBehavior": "prompt",

// What CLI should do with existing GitHub repo
// Applicable for the new project creation only
// prompt | autoYes | autoYesSkipCommit | autoNo
// Behavior for existing GitHub repos during project creation
// Options: prompt | autoYes | autoYesSkipCommit | autoNo
"existingRepoBehavior": "prompt"
}
11 changes: 2 additions & 9 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineBuildConfig } from "unbuild";
import pubConfig from "./pub.config.js";

export default defineBuildConfig({
declaration: false,
declaration: true,
clean: false,
entries: [
{
Expand All @@ -12,20 +12,13 @@ export default defineBuildConfig({
format: "esm",
input: "src",
ext: "js",
// pattern: [
// "**/*.ts",
// "**/*.tsx",
// "!**/*.d.ts",
// "!**/*.test.ts",
// "!**/__tests__/**",
// ],
},
],
rollup: {
emitCJS: false,
esbuild: {
minify: pubConfig.shouldMinify,
target: "es2023",
minify: pubConfig.shouldMinify,
exclude: ["**/*.test.ts", "**/__tests__/**"],
},
},
Expand Down
152 changes: 123 additions & 29 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cspell.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.4.55",
"version": "1.4.60",
"language": "en",
"ignorePaths": [
"**/*.lock",
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@reliverse/cli",
"author": "reliverse",
"version": "1.4.53",
"version": "1.4.60",
"type": "module",
"license": "MIT",
"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.",
Expand Down Expand Up @@ -42,13 +42,14 @@
"@rollup/plugin-replace": "^6.0.2",
"@rollup/pluginutils": "^5.1.4",
"@sinclair/typebox": "^0.34.15",
"@types/minimist": "^1.2.5",
"@types/mute-stream": "^0.0.4",
"@vercel/sdk": "^1.3.1",
"@vitejs/plugin-react": "^4.3.4",
"ai": "^4.1.16",
"async-listen": "^3.0.1",
"better-sqlite3": "^11.8.1",
"bun-types": "^1.2.1",
"bun-types": "^1.2.2",
"c12": "^2.0.1",
"citty": "^0.1.6",
"cli-spinners": "^3.2.0",
Expand All @@ -70,6 +71,7 @@
"jiti": "^2.4.2",
"magic-regexp": "^0.8.0",
"magic-string": "^0.30.17",
"minimist": "^1.2.8",
"mkdist": "^2.2.0",
"mlly": "^1.7.4",
"mute-stream": "^2.0.0",
Expand All @@ -89,7 +91,7 @@
"random-words": "^2.0.1",
"react-router": "^7.1.5",
"react-router-dom": "^7.1.5",
"rollup": "^4.32.1",
"rollup": "^4.34.0",
"rollup-plugin-dts": "^6.1.1",
"scule": "^1.3.0",
"semver": "^7.7.0",
Expand Down Expand Up @@ -124,7 +126,7 @@
"@trpc/react-query": "^11.0.0-rc.730",
"@trpc/server": "^11.0.0-rc.730",
"@types/better-sqlite3": "^7.6.12",
"@types/bun": "^1.2.1",
"@types/bun": "^1.2.2",
"@types/cross-spawn": "^6.0.6",
"@types/eslint__js": "^8.42.3",
"@types/fs-extra": "^11.0.4",
Expand Down Expand Up @@ -156,7 +158,7 @@
"react": "^19.0.0",
"react-dom": "^19.0.0",
"superjson": "^2.2.2",
"tailwindcss": "^4.0.2",
"tailwindcss": "^4.0.3",
"tsx": "^4.19.2",
"type-fest": "^4.33.0",
"typescript": "^5.7.3",
Expand Down
10 changes: 5 additions & 5 deletions pub.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export type PublishConfig = {
/**
* The bundler to use for building the JSR-optimized package.
*/
builderJsR: "bun" | "copy" | "mkdist" | "rollup" | "untyped";
builderJsr: "bun" | "copy" | "mkdist" | "rollup" | "untyped";

/**
* If `true`, minify the build output.
Expand Down Expand Up @@ -111,8 +111,8 @@ const pubConfig: PublishConfig = {
disableBump: false,

// Behavior toggles
pausePublish: true,
verbose: true,
pausePublish: false,
verbose: false,
dryRun: false,

// Output directories
Expand All @@ -122,13 +122,13 @@ const pubConfig: PublishConfig = {

// Build configuration
builderNpm: "mkdist",
builderJsR: "copy",
builderJsr: "copy",
shouldMinify: true,
splitting: false,
sourcemap: "linked",
publicPath: "/",
target: "node",
format: "esm",
publicPath: "/",
};

export default pubConfig;
Loading

0 comments on commit 7faa669

Please sign in to comment.