create-skateboard-app 1.0.3 → 1.0.5
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/.claude/settings.local.json +2 -1
- package/CHANGELOG.md +12 -0
- package/README.md +18 -0
- package/bin/cli.js +2 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -34,6 +34,7 @@ npx create-skateboard-app my-app
|
|
|
34
34
|
- 📱 Mobile responsive
|
|
35
35
|
- 🛣️ React Router
|
|
36
36
|
- 📦 Modern JavaScript
|
|
37
|
+
- 🗃️ Database selection (SQLite, PostgreSQL, MongoDB)
|
|
37
38
|
|
|
38
39
|
## Features Included
|
|
39
40
|
|
|
@@ -45,6 +46,9 @@ npx create-skateboard-app my-app
|
|
|
45
46
|
- Protected routes
|
|
46
47
|
- Mobile tab bar
|
|
47
48
|
- Customizable constants
|
|
49
|
+
- Interactive setup with app customization
|
|
50
|
+
- Color and icon selection
|
|
51
|
+
- Database configuration
|
|
48
52
|
|
|
49
53
|
## Requirements
|
|
50
54
|
|
|
@@ -52,6 +56,20 @@ npx create-skateboard-app my-app
|
|
|
52
56
|
- npm or yarn
|
|
53
57
|
- git, curl, or npx (for template download)
|
|
54
58
|
|
|
59
|
+
## Configuration
|
|
60
|
+
|
|
61
|
+
After creating your app:
|
|
62
|
+
|
|
63
|
+
1. Copy the environment template:
|
|
64
|
+
```bash
|
|
65
|
+
cp backend/.env.example backend/.env
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
2. Update `backend/.env` with your credentials:
|
|
69
|
+
- Database connection string (if using PostgreSQL/MongoDB)
|
|
70
|
+
- Stripe API keys
|
|
71
|
+
- Other environment-specific variables
|
|
72
|
+
|
|
55
73
|
## Contributing
|
|
56
74
|
|
|
57
75
|
Contributions are welcome! Please check out the [Skateboard repository](https://github.com/stevederico/skateboard) for more information.
|
package/bin/cli.js
CHANGED
|
@@ -250,7 +250,7 @@ async function collectProjectConfig(projectName) {
|
|
|
250
250
|
|
|
251
251
|
// Installation preferences
|
|
252
252
|
const installDeps = true; // Always install dependencies
|
|
253
|
-
const initGit =
|
|
253
|
+
const initGit = true; // Always initialize git repository
|
|
254
254
|
|
|
255
255
|
return {
|
|
256
256
|
companyName,
|
|
@@ -436,13 +436,6 @@ async function main() {
|
|
|
436
436
|
// Success message
|
|
437
437
|
log(`\n${colors.bold}${colors.green}🎉 Success! Created ${config.appName}${colors.reset}\n`);
|
|
438
438
|
|
|
439
|
-
log(`\n${colors.cyan}Your app is configured with:${colors.reset}`);
|
|
440
|
-
log(` 📱 App: ${config.appName}`);
|
|
441
|
-
log(` 💬 Tagline: ${config.tagline}`);
|
|
442
|
-
log(` 🎨 Color: ${config.appColor}`);
|
|
443
|
-
log(` 🎯 Icon: ${config.appIcon}`);
|
|
444
|
-
log(` 🗃️ Database: ${config.database.value}`);
|
|
445
|
-
|
|
446
439
|
// Database-specific instructions (only if connection string not provided)
|
|
447
440
|
if (config.database.value === 'postgresql' && !config.connectionString) {
|
|
448
441
|
log(`\n${colors.yellow}📝 PostgreSQL Setup:${colors.reset}`);
|
|
@@ -464,7 +457,7 @@ async function main() {
|
|
|
464
457
|
log(`\n${colors.bold}Get started with:${colors.reset}`, 'yellow');
|
|
465
458
|
log(`\n ${colors.cyan}cd ${projectName}${colors.reset}`);
|
|
466
459
|
log(` ${colors.cyan}npm run start${colors.reset}`);
|
|
467
|
-
log(`\n${colors.yellow}Happy
|
|
460
|
+
log(`\n${colors.yellow}Happy skating! 🛹${colors.reset}\n`);
|
|
468
461
|
|
|
469
462
|
} catch (err) {
|
|
470
463
|
error(`Failed to create project: ${err.message}`);
|