zerostart-cli 0.0.26 → 0.0.27

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.
Files changed (2) hide show
  1. package/out/cli.js +19 -2
  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.26');
86
+ .version('0.0.27');
87
87
  program
88
88
  .command('deploy-vercel')
89
89
  .description('Deploy the current project to Vercel')
@@ -487,7 +487,24 @@ 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
- // Deployment Integration
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();
504
+ }
505
+ return; // Skip deployment for non-web languages
506
+ }
507
+ // Deployment Integration (Only for Web)
491
508
  const { deploymentTarget } = await inquirer_1.default.prompt([
492
509
  {
493
510
  type: 'list',
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "zerostart": "./out/cli.js"
6
6
  },
7
7
  "description": "Create and deploy a complete project with one command.",
8
- "version": "0.0.26",
8
+ "version": "0.0.27",
9
9
  "engines": {
10
10
  "vscode": "^1.85.0"
11
11
  },