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 CHANGED
@@ -1,4 +1,13 @@
1
1
 
2
+ 1.0.8
3
+
4
+ Fix pages template
5
+ Read template constants
6
+
7
+ 1.0.7
8
+
9
+ Add Stripe guide
10
+
2
11
  1.0.6
3
12
 
4
13
  Update config format
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
- const pages = [
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(` Get your keys from: ${colors.blue}https://dashboard.stripe.com/apikeys${colors.reset}`);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-skateboard-app",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Create a new Skateboard app with React, TailwindCSS, and more",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -1,12 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(git add:*)",
5
- "Bash(git commit:*)",
6
- "Bash(git push:*)",
7
- "Bash(git tag:*)"
8
- ],
9
- "deny": [],
10
- "ask": []
11
- }
12
- }