@nextsparkjs/cli 0.1.0-beta.10 → 0.1.0-beta.101
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/nextspark.js +9 -0
- package/dist/{add-plugin-GCPJ4FHE.js → add-plugin-KIJLCOEQ.js} +1 -1
- package/dist/{chunk-ALB2C27N.js → chunk-DXL5CEZD.js} +103 -110
- package/dist/cli.js +1957 -468
- package/package.json +21 -11
- package/templates/env.template +165 -0
- package/dist/add-plugin-I3UJFL7U.js +0 -8
- package/dist/chunk-EE6EJYHE.js +0 -704
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextsparkjs/cli",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.101",
|
|
4
4
|
"description": "NextSpark CLI - Complete development toolkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -10,28 +10,34 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist",
|
|
13
|
-
"bin"
|
|
13
|
+
"bin",
|
|
14
|
+
"templates"
|
|
14
15
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "tsup src/cli.ts --format esm --dts --outDir dist",
|
|
17
|
-
"dev": "tsup src/cli.ts --format esm --watch"
|
|
18
|
-
},
|
|
19
16
|
"dependencies": {
|
|
20
17
|
"@inquirer/prompts": "^7.2.0",
|
|
21
|
-
"@nextsparkjs/core": "
|
|
22
|
-
"commander": "^12.0.0",
|
|
18
|
+
"@nextsparkjs/core": "^0.1.0-beta.75",
|
|
23
19
|
"chalk": "^5.3.0",
|
|
20
|
+
"commander": "^12.0.0",
|
|
21
|
+
"dotenv": "^17.2.2",
|
|
24
22
|
"fs-extra": "^11.2.0",
|
|
25
23
|
"ora": "^8.0.0",
|
|
26
24
|
"tar": "^7.0.0"
|
|
27
25
|
},
|
|
28
26
|
"devDependencies": {
|
|
29
|
-
"@nextsparkjs/core": "workspace:*",
|
|
30
27
|
"@types/fs-extra": "^11.0.4",
|
|
28
|
+
"@types/node": "^20.0.0",
|
|
31
29
|
"@types/tar": "^6.1.0",
|
|
32
30
|
"tsup": "^8.0.0",
|
|
33
31
|
"typescript": "^5.0.0",
|
|
34
|
-
"@
|
|
32
|
+
"@nextsparkjs/core": "0.1.0-beta.79"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@nextsparkjs/ai-workflow": ">=0.1.0-beta.0"
|
|
36
|
+
},
|
|
37
|
+
"peerDependenciesMeta": {
|
|
38
|
+
"@nextsparkjs/ai-workflow": {
|
|
39
|
+
"optional": true
|
|
40
|
+
}
|
|
35
41
|
},
|
|
36
42
|
"keywords": [
|
|
37
43
|
"nextspark",
|
|
@@ -48,5 +54,9 @@
|
|
|
48
54
|
},
|
|
49
55
|
"engines": {
|
|
50
56
|
"node": ">=18.0.0"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "tsup src/cli.ts --format esm --dts --outDir dist",
|
|
60
|
+
"dev": "tsup src/cli.ts --format esm --watch"
|
|
51
61
|
}
|
|
52
|
-
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# =============================================================================
|
|
2
|
+
# NextSpark Environment Configuration
|
|
3
|
+
# Generated by NextSpark Wizard for: {{PROJECT_NAME}}
|
|
4
|
+
# =============================================================================
|
|
5
|
+
|
|
6
|
+
# =============================================================================
|
|
7
|
+
# DATABASE
|
|
8
|
+
# =============================================================================
|
|
9
|
+
DATABASE_URL={{DATABASE_URL}}
|
|
10
|
+
|
|
11
|
+
# =============================================================================
|
|
12
|
+
# AUTHENTICATION (Better Auth)
|
|
13
|
+
# =============================================================================
|
|
14
|
+
BETTER_AUTH_SECRET={{BETTER_AUTH_SECRET}}
|
|
15
|
+
# BETTER_AUTH_URL=http://localhost:3000
|
|
16
|
+
|
|
17
|
+
# =============================================================================
|
|
18
|
+
# APP URL
|
|
19
|
+
# =============================================================================
|
|
20
|
+
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
|
21
|
+
|
|
22
|
+
# =============================================================================
|
|
23
|
+
# APP INFO
|
|
24
|
+
# =============================================================================
|
|
25
|
+
NEXT_PUBLIC_APP_NAME="{{PROJECT_NAME}}"
|
|
26
|
+
|
|
27
|
+
# =============================================================================
|
|
28
|
+
# ACTIVE THEME
|
|
29
|
+
# =============================================================================
|
|
30
|
+
NEXT_PUBLIC_ACTIVE_THEME={{ACTIVE_THEME}}
|
|
31
|
+
|
|
32
|
+
# =============================================================================
|
|
33
|
+
# EMAIL (Resend) - Optional
|
|
34
|
+
# =============================================================================
|
|
35
|
+
RESEND_API_KEY=
|
|
36
|
+
RESEND_FROM_NAME=
|
|
37
|
+
RESEND_FROM_EMAIL=
|
|
38
|
+
|
|
39
|
+
# =============================================================================
|
|
40
|
+
# GOOGLE OAUTH - Optional
|
|
41
|
+
# =============================================================================
|
|
42
|
+
GOOGLE_CLIENT_ID=
|
|
43
|
+
GOOGLE_CLIENT_SECRET=
|
|
44
|
+
# Required if using OAuth providers - encrypts OAuth tokens in database
|
|
45
|
+
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
|
|
46
|
+
# OAUTH_ENCRYPTION_KEY=
|
|
47
|
+
|
|
48
|
+
# =============================================================================
|
|
49
|
+
# STRIPE - Optional
|
|
50
|
+
# =============================================================================
|
|
51
|
+
STRIPE_SECRET_KEY=
|
|
52
|
+
STRIPE_WEBHOOK_SECRET=
|
|
53
|
+
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=
|
|
54
|
+
|
|
55
|
+
# =============================================================================
|
|
56
|
+
# UPSTASH REDIS - Optional (for distributed rate limiting)
|
|
57
|
+
# =============================================================================
|
|
58
|
+
# Get credentials from https://upstash.com
|
|
59
|
+
UPSTASH_REDIS_REST_URL=
|
|
60
|
+
UPSTASH_REDIS_REST_TOKEN=
|
|
61
|
+
|
|
62
|
+
# =============================================================================
|
|
63
|
+
# RATE LIMITING - Optional (development/testing only)
|
|
64
|
+
# =============================================================================
|
|
65
|
+
# Set to 'true' to disable rate limiting (WARNING: Never use in production!)
|
|
66
|
+
# DISABLE_RATE_LIMITING=true
|
|
67
|
+
|
|
68
|
+
# =============================================================================
|
|
69
|
+
# CORS CONFIGURATION (Optional)
|
|
70
|
+
# =============================================================================
|
|
71
|
+
# Additional origins for CORS (comma-separated)
|
|
72
|
+
# Use for runtime additions without code changes
|
|
73
|
+
# Merged with core + theme origins at runtime
|
|
74
|
+
# CORS_ADDITIONAL_ORIGINS=http://localhost:8081,https://mobile.myapp.com
|
|
75
|
+
|
|
76
|
+
# Enable CORS debug logging (shows origin resolution in console)
|
|
77
|
+
# NEXTSPARK_DEBUG_CORS=true
|
|
78
|
+
|
|
79
|
+
# =============================================================================
|
|
80
|
+
# CYPRESS TEST CREDENTIALS
|
|
81
|
+
# =============================================================================
|
|
82
|
+
# Used by Cypress tests for authentication.
|
|
83
|
+
# The CYPRESS_ prefix makes them available as Cypress.env('VARIABLE_NAME')
|
|
84
|
+
#
|
|
85
|
+
# Core system users (pre-installed from core migrations)
|
|
86
|
+
CYPRESS_DEVELOPER_EMAIL=developer@nextspark.dev
|
|
87
|
+
CYPRESS_DEVELOPER_PASSWORD=Pandora1234
|
|
88
|
+
CYPRESS_SUPERADMIN_EMAIL=superadmin@nextspark.dev
|
|
89
|
+
CYPRESS_SUPERADMIN_PASSWORD=Pandora1234
|
|
90
|
+
|
|
91
|
+
# Demo theme users - Uncomment and customize when you create your own test users
|
|
92
|
+
# CYPRESS_TEST_PASSWORD=Test1234
|
|
93
|
+
# CYPRESS_OWNER_EMAIL=owner@example.com
|
|
94
|
+
# CYPRESS_ADMIN_EMAIL=admin@example.com
|
|
95
|
+
# CYPRESS_MEMBER_EMAIL=member@example.com
|
|
96
|
+
|
|
97
|
+
# =============================================================================
|
|
98
|
+
# =============================================================================
|
|
99
|
+
# APP CONFIGURATION
|
|
100
|
+
# =============================================================================
|
|
101
|
+
# =============================================================================
|
|
102
|
+
|
|
103
|
+
# =============================================================================
|
|
104
|
+
# ENVIRONMENT
|
|
105
|
+
# =============================================================================
|
|
106
|
+
NODE_ENV=development
|
|
107
|
+
PORT=3000
|
|
108
|
+
|
|
109
|
+
# =============================================================================
|
|
110
|
+
# VERCEL (Optional - for Vercel deployments)
|
|
111
|
+
# =============================================================================
|
|
112
|
+
VERCEL_TEAM=
|
|
113
|
+
VERCEL_PROJECT=
|
|
114
|
+
|
|
115
|
+
# =============================================================================
|
|
116
|
+
# SUPERADMIN
|
|
117
|
+
# =============================================================================
|
|
118
|
+
# API key for superadmin bypass access
|
|
119
|
+
# Generate with: node -e "console.log('sk_' + require('crypto').randomBytes(32).toString('hex'))"
|
|
120
|
+
SUPERADMIN_API_KEY=
|
|
121
|
+
|
|
122
|
+
# =============================================================================
|
|
123
|
+
# DEBUG SETTINGS
|
|
124
|
+
# =============================================================================
|
|
125
|
+
NEXT_PUBLIC_RQ_DEVTOOLS=false
|
|
126
|
+
NEXT_DISPLAY_DEBUGGER=false
|
|
127
|
+
|
|
128
|
+
# =============================================================================
|
|
129
|
+
# PWA
|
|
130
|
+
# =============================================================================
|
|
131
|
+
NEXT_PUBLIC_PWA_ENABLED=true
|
|
132
|
+
|
|
133
|
+
# =============================================================================
|
|
134
|
+
# SCHEDULED ACTIONS
|
|
135
|
+
# =============================================================================
|
|
136
|
+
# Secret for authenticating cron webhook requests
|
|
137
|
+
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
|
|
138
|
+
CRON_SECRET=
|
|
139
|
+
|
|
140
|
+
# =============================================================================
|
|
141
|
+
# =============================================================================
|
|
142
|
+
# CLAUDE CODE WORKSPACE (Optional - for Claude Code users)
|
|
143
|
+
# =============================================================================
|
|
144
|
+
# =============================================================================
|
|
145
|
+
# These variables are used by Claude Code MCP servers and integrations.
|
|
146
|
+
# Configure based on your preferences.
|
|
147
|
+
|
|
148
|
+
# =============================================================================
|
|
149
|
+
# GITHUB
|
|
150
|
+
# =============================================================================
|
|
151
|
+
GITHUB_TOKEN=
|
|
152
|
+
|
|
153
|
+
# =============================================================================
|
|
154
|
+
# TASK MANAGER (choose one: ClickUp, Jira, or Notion)
|
|
155
|
+
# =============================================================================
|
|
156
|
+
# ClickUp
|
|
157
|
+
CLICKUP_API_KEY=
|
|
158
|
+
|
|
159
|
+
# Jira
|
|
160
|
+
# JIRA_API_TOKEN=
|
|
161
|
+
# JIRA_BASE_URL=
|
|
162
|
+
# JIRA_USER_EMAIL=
|
|
163
|
+
|
|
164
|
+
# Notion
|
|
165
|
+
# NOTION_API_KEY=
|