zerostart-cli 0.0.26 → 0.0.28
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/out/cli.js +21 -2
- package/package.json +1 -1
package/out/cli.js
CHANGED
|
@@ -83,7 +83,7 @@ function showGitHubTokenHelp() {
|
|
|
83
83
|
program
|
|
84
84
|
.name('zerostart')
|
|
85
85
|
.description('Create and deploy a complete project with one command')
|
|
86
|
-
.version('0.0.
|
|
86
|
+
.version('0.0.28');
|
|
87
87
|
program
|
|
88
88
|
.command('deploy-vercel')
|
|
89
89
|
.description('Deploy the current project to Vercel')
|
|
@@ -487,7 +487,26 @@ program
|
|
|
487
487
|
console.log(chalk_1.default.gray(' - ') + chalk_1.default.cyan(`cd ${name}`));
|
|
488
488
|
console.log(chalk_1.default.gray(' - ') + chalk_1.default.cyan('code .') + chalk_1.default.gray(' (or your favorite editor)'));
|
|
489
489
|
console.log();
|
|
490
|
-
//
|
|
490
|
+
// Conditional logic based on language
|
|
491
|
+
const isWebLanguage = [types_1.ProjectLanguage.React, types_1.ProjectLanguage.HTMLCSS].includes(config.language);
|
|
492
|
+
if (!isWebLanguage) {
|
|
493
|
+
const gdbLinks = {
|
|
494
|
+
[types_1.ProjectLanguage.Python]: 'https://www.onlinegdb.com/online_python_compiler',
|
|
495
|
+
[types_1.ProjectLanguage.Java]: 'https://www.onlinegdb.com/online_java_compiler',
|
|
496
|
+
[types_1.ProjectLanguage.CPP]: 'https://www.onlinegdb.com/online_c++_compiler',
|
|
497
|
+
[types_1.ProjectLanguage.NodeJS]: 'https://www.onlinegdb.com/online_node.js_compiler'
|
|
498
|
+
};
|
|
499
|
+
const link = gdbLinks[config.language];
|
|
500
|
+
if (link) {
|
|
501
|
+
console.log(chalk_1.default.bold.yellow(' Practice Online:'));
|
|
502
|
+
console.log(chalk_1.default.gray(' - ') + chalk_1.default.cyan(link));
|
|
503
|
+
console.log(chalk_1.default.gray(' (Opening in your browser...)'));
|
|
504
|
+
console.log();
|
|
505
|
+
openUrl(link);
|
|
506
|
+
}
|
|
507
|
+
return; // Skip deployment for non-web languages
|
|
508
|
+
}
|
|
509
|
+
// Deployment Integration (Only for Web)
|
|
491
510
|
const { deploymentTarget } = await inquirer_1.default.prompt([
|
|
492
511
|
{
|
|
493
512
|
type: 'list',
|