rapidkit 0.12.7 → 0.12.8
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/dist/index.js
CHANGED
|
@@ -615,7 +615,7 @@ Please re-run your command.
|
|
|
615
615
|
python3 -m pip install rapidkit
|
|
616
616
|
python -m pip install rapidkit
|
|
617
617
|
pip install rapidkit
|
|
618
|
-
`));}process.exit(E.status??1);}}catch{}let n=process.platform==="win32",r=n?[l.join(e,"rapidkit.cmd"),l.join(e,"rapidkit"),l.join(e,".rapidkit","rapidkit.cmd"),l.join(e,".rapidkit","rapidkit")]:[l.join(e,"rapidkit"),l.join(e,".rapidkit","rapidkit")],a=n?l.join(e,"rapidkit.cmd"):l.join(e,"rapidkit");for(let k of r)if(await f.pathExists(k)){a=k;break}let c=await f.pathExists(a),s=await f.pathExists(i);if(!c||!s)return false;let m=process.argv.slice(2),h=m[0];if(!h||!W.includes(h))return false;d.debug(`Delegating to local CLI: ./rapidkit ${m.join(" ")}`);let y=spawn(a,m,{stdio:"inherit",cwd:e});return y.on("close",k=>{process.exit(k??0);}),y.on("error",k=>{d.error(`Failed to run local rapidkit: ${k.message}`),process.exit(1);}),true}var j=null,K=false,F=new Command;F.name("rapidkit").description("Create RapidKit workspaces and projects").version(S());F.argument("[name]","Name of the workspace or project directory").option("-t, --template <template>","Create project with template (fastapi, nestjs) instead of workspace").option("-y, --yes","Skip prompts and use defaults").option("--skip-git","Skip git initialization").option("--skip-install","Skip installing dependencies").option("--debug","Enable debug logging").option("--dry-run","Show what would be created without creating it").option("--no-update-check","Skip checking for updates").action(async(e,t)=>{try{t.debug&&(d.setDebug(!0),d.debug("Debug mode enabled"));let i=await J();d.debug("User config loaded",i),t.updateCheck!==!1&&await H(),console.log(o.blue.bold(`
|
|
618
|
+
`));}process.exit(E.status??1);}}catch{}let n=process.platform==="win32",r=n?[l.join(e,"rapidkit.cmd"),l.join(e,"rapidkit"),l.join(e,".rapidkit","rapidkit.cmd"),l.join(e,".rapidkit","rapidkit")]:[l.join(e,"rapidkit"),l.join(e,".rapidkit","rapidkit")],a=n?l.join(e,"rapidkit.cmd"):l.join(e,"rapidkit");for(let k of r)if(await f.pathExists(k)){a=k;break}let c=await f.pathExists(a),s=await f.pathExists(i);if(!c||!s)return false;let m=process.argv.slice(2),h=m[0];if(!h||!W.includes(h))return false;d.debug(`Delegating to local CLI: ./rapidkit ${m.join(" ")}`);let y=spawn(a,m,{stdio:"inherit",cwd:e,shell:n});return y.on("close",k=>{process.exit(k??0);}),y.on("error",k=>{d.error(`Failed to run local rapidkit: ${k.message}`),process.exit(1);}),true}var j=null,K=false,F=new Command;F.name("rapidkit").description("Create RapidKit workspaces and projects").version(S());F.argument("[name]","Name of the workspace or project directory").option("-t, --template <template>","Create project with template (fastapi, nestjs) instead of workspace").option("-y, --yes","Skip prompts and use defaults").option("--skip-git","Skip git initialization").option("--skip-install","Skip installing dependencies").option("--debug","Enable debug logging").option("--dry-run","Show what would be created without creating it").option("--no-update-check","Skip checking for updates").action(async(e,t)=>{try{t.debug&&(d.setDebug(!0),d.debug("Debug mode enabled"));let i=await J();d.debug("User config loaded",i),t.updateCheck!==!1&&await H(),console.log(o.blue.bold(`
|
|
619
619
|
\u{1F680} Welcome to RapidKit!
|
|
620
620
|
`)),e||(be(),process.exit(0));try{M(e);}catch(c){throw c instanceof P&&(d.error(`
|
|
621
621
|
\u274C ${c.message}`),c.details&&d.warn(`\u{1F4A1} ${c.details}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -41,8 +41,31 @@ if %ERRORLEVEL% EQU 0 (
|
|
|
41
41
|
goto :run
|
|
42
42
|
)
|
|
43
43
|
|
|
44
|
-
echo
|
|
45
|
-
echo
|
|
44
|
+
echo.
|
|
45
|
+
echo ============================================================
|
|
46
|
+
echo Python not found!
|
|
47
|
+
echo ============================================================
|
|
48
|
+
echo.
|
|
49
|
+
echo RapidKit FastAPI projects require Python 3.11 or newer.
|
|
50
|
+
echo.
|
|
51
|
+
echo Install Python using one of these methods:
|
|
52
|
+
echo.
|
|
53
|
+
echo 1. Microsoft Store (recommended):
|
|
54
|
+
echo https://apps.microsoft.com/detail/9NRWMJP3717K
|
|
55
|
+
echo.
|
|
56
|
+
echo 2. Official installer:
|
|
57
|
+
echo https://www.python.org/downloads/
|
|
58
|
+
echo (Check "Add Python to PATH" during installation)
|
|
59
|
+
echo.
|
|
60
|
+
echo 3. Using winget:
|
|
61
|
+
echo winget install Python.Python.3.12
|
|
62
|
+
echo.
|
|
63
|
+
echo 4. Using chocolatey:
|
|
64
|
+
echo choco install python
|
|
65
|
+
echo.
|
|
66
|
+
echo After installing, restart your terminal and try again.
|
|
67
|
+
echo ============================================================
|
|
68
|
+
echo.
|
|
46
69
|
exit /b 127
|
|
47
70
|
|
|
48
71
|
:run
|