launchbase 1.1.5 ā 1.1.7
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/bin/launchbase.js +5 -7
- package/package.json +1 -1
package/bin/launchbase.js
CHANGED
|
@@ -7,7 +7,7 @@ const crypto = require('crypto');
|
|
|
7
7
|
const fs = require('fs-extra');
|
|
8
8
|
const { execSync, spawn } = require('child_process');
|
|
9
9
|
|
|
10
|
-
const VERSION = '1.1.
|
|
10
|
+
const VERSION = '1.1.7';
|
|
11
11
|
const program = new Command();
|
|
12
12
|
|
|
13
13
|
function findAvailablePort(startPort = 5432, maxAttempts = 100) {
|
|
@@ -357,15 +357,13 @@ program
|
|
|
357
357
|
.command('new')
|
|
358
358
|
.description('š Create new project and start development (one command experience)')
|
|
359
359
|
.argument('<appName>', 'Project name')
|
|
360
|
-
.option('--template', '
|
|
360
|
+
.option('--no-template', 'Skip frontend React template')
|
|
361
361
|
.option('--sdk', 'Include TypeScript SDK')
|
|
362
362
|
.option('--no-docker', 'Skip Docker/database setup')
|
|
363
363
|
.option('--no-cicd', 'Skip CI/CD workflow')
|
|
364
364
|
.action(async (appName, options, command) => {
|
|
365
365
|
console.log('\nš LaunchBase CLI v' + VERSION + '\n');
|
|
366
366
|
console.log('š Creating project:', appName);
|
|
367
|
-
console.log('š DEBUG options:', JSON.stringify(options));
|
|
368
|
-
console.log('š DEBUG template flag:', options.template);
|
|
369
367
|
|
|
370
368
|
// Find available ports first
|
|
371
369
|
console.log('š Finding available ports...');
|
|
@@ -384,7 +382,7 @@ program
|
|
|
384
382
|
|
|
385
383
|
// Copy template files with filtering
|
|
386
384
|
console.log('š Copying template files...');
|
|
387
|
-
console.log(` Include frontend: ${options.template ? '
|
|
385
|
+
console.log(` Include frontend: ${options.template === false ? 'no' : 'yes'}`);
|
|
388
386
|
|
|
389
387
|
await fs.copy(templateDir, targetDir, {
|
|
390
388
|
filter: (src) => {
|
|
@@ -396,8 +394,8 @@ program
|
|
|
396
394
|
return false;
|
|
397
395
|
}
|
|
398
396
|
|
|
399
|
-
// Skip frontend if
|
|
400
|
-
if ((relativePath.startsWith('frontend/') || relativePath === 'frontend') &&
|
|
397
|
+
// Skip frontend if --no-template flag is used
|
|
398
|
+
if ((relativePath.startsWith('frontend/') || relativePath === 'frontend') && options.template === false) {
|
|
401
399
|
return false;
|
|
402
400
|
}
|
|
403
401
|
|
package/package.json
CHANGED