create-skateboard-app 1.0.6 → 1.0.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/CHANGELOG.md +9 -0
- package/bin/cli.js +16 -2
- package/package.json +1 -1
- package/.claude/settings.local.json +0 -12
package/CHANGELOG.md
CHANGED
package/bin/cli.js
CHANGED
|
@@ -243,10 +243,24 @@ async function collectProjectConfig(projectName) {
|
|
|
243
243
|
const backendURL = 'https://api.example.com';
|
|
244
244
|
const devBackendURL = 'http://localhost:8000';
|
|
245
245
|
const companyName = 'Your Company';
|
|
246
|
-
|
|
246
|
+
|
|
247
|
+
// Read pages from the downloaded template's constants.json
|
|
248
|
+
let pages = [
|
|
247
249
|
{ title: 'Home', url: 'home', icon: 'house' },
|
|
248
250
|
{ title: 'Other', url: 'other', icon: 'inbox' }
|
|
249
251
|
];
|
|
252
|
+
|
|
253
|
+
try {
|
|
254
|
+
const templateConstantsPath = join(projectName, 'src', 'constants.json');
|
|
255
|
+
if (existsSync(templateConstantsPath)) {
|
|
256
|
+
const templateConstants = JSON.parse(readFileSync(templateConstantsPath, 'utf8'));
|
|
257
|
+
if (templateConstants.pages && Array.isArray(templateConstants.pages)) {
|
|
258
|
+
pages = templateConstants.pages;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
} catch (err) {
|
|
262
|
+
// Use fallback pages if reading fails
|
|
263
|
+
}
|
|
250
264
|
|
|
251
265
|
// Installation preferences
|
|
252
266
|
const installDeps = true; // Always install dependencies
|
|
@@ -472,7 +486,7 @@ async function main() {
|
|
|
472
486
|
log(` Update the ${colors.cyan}backend/.env${colors.reset} file with:`);
|
|
473
487
|
log(` ${colors.green}STRIPE_KEY=sk_test_your_stripe_secret_key_here${colors.reset}`);
|
|
474
488
|
log(` ${colors.green}STRIPE_ENDPOINT_SECRET=whsec_your_webhook_endpoint_secret_here${colors.reset}`);
|
|
475
|
-
log(`
|
|
489
|
+
log(` Step by Step Guide: ${colors.blue}https://github.com/stevederico/skateboard#-stripe-setup${colors.reset}`);
|
|
476
490
|
|
|
477
491
|
log(`\n${colors.bold}Get started with:${colors.reset}`, 'yellow');
|
|
478
492
|
log(`\n ${colors.cyan}cd ${projectName}${colors.reset}`);
|
package/package.json
CHANGED