@nextsparkjs/cli 0.1.0-beta.68 → 0.1.0-beta.69

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 CHANGED
File without changes
package/dist/cli.js CHANGED
@@ -2341,8 +2341,8 @@ async function copyProjectFiles() {
2341
2341
  const itemsToCopy = [
2342
2342
  { src: "app", dest: "app", force: true },
2343
2343
  { src: "public", dest: "public", force: true },
2344
- { src: "middleware.ts", dest: "middleware.ts", force: true },
2345
- // Required for EntityPermissionLayout
2344
+ { src: "proxy.ts", dest: "proxy.ts", force: true },
2345
+ // Next.js 16+ proxy (formerly middleware.ts)
2346
2346
  { src: "next.config.mjs", dest: "next.config.mjs", force: true },
2347
2347
  { src: "tsconfig.json", dest: "tsconfig.json", force: true },
2348
2348
  { src: "postcss.config.mjs", dest: "postcss.config.mjs", force: true },
@@ -3870,8 +3870,14 @@ import chalk16 from "chalk";
3870
3870
  import ora10 from "ora";
3871
3871
  var EXCLUDED_TEMPLATE_PATTERNS = ["(templates)"];
3872
3872
  var ROOT_TEMPLATE_FILES = [
3873
- "middleware.ts"
3874
- // Required for EntityPermissionLayout permission validation
3873
+ "proxy.ts",
3874
+ // Next.js 16+ proxy (formerly middleware.ts) - required for auth/permission validation
3875
+ "next.config.mjs",
3876
+ // Required for webpack aliases, transpilePackages, security headers
3877
+ "tsconfig.json",
3878
+ // Required for proper path aliases and test file exclusions
3879
+ "i18n.ts"
3880
+ // Required for next-intl configuration
3875
3881
  ];
3876
3882
  var MAX_VERBOSE_FILES = 10;
3877
3883
  var MAX_SUMMARY_FILES = 5;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/cli",
3
- "version": "0.1.0-beta.68",
3
+ "version": "0.1.0-beta.69",
4
4
  "description": "NextSpark CLI - Complete development toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -10,8 +10,13 @@
10
10
  "types": "./dist/index.d.ts",
11
11
  "files": [
12
12
  "dist",
13
- "bin"
13
+ "bin",
14
+ "templates"
14
15
  ],
16
+ "scripts": {
17
+ "build": "tsup src/cli.ts --format esm --dts --outDir dist",
18
+ "dev": "tsup src/cli.ts --format esm --watch"
19
+ },
15
20
  "dependencies": {
16
21
  "@inquirer/prompts": "^7.2.0",
17
22
  "@nextsparkjs/core": "^0.1.0-beta.54",
@@ -23,12 +28,12 @@
23
28
  "tar": "^7.0.0"
24
29
  },
25
30
  "devDependencies": {
31
+ "@nextsparkjs/core": "workspace:*",
26
32
  "@types/fs-extra": "^11.0.4",
27
33
  "@types/node": "^20.0.0",
28
34
  "@types/tar": "^6.1.0",
29
35
  "tsup": "^8.0.0",
30
- "typescript": "^5.0.0",
31
- "@nextsparkjs/core": "0.1.0-beta.57"
36
+ "typescript": "^5.0.0"
32
37
  },
33
38
  "keywords": [
34
39
  "nextspark",
@@ -45,9 +50,5 @@
45
50
  },
46
51
  "engines": {
47
52
  "node": ">=18.0.0"
48
- },
49
- "scripts": {
50
- "build": "tsup src/cli.ts --format esm --dts --outDir dist",
51
- "dev": "tsup src/cli.ts --format esm --watch"
52
53
  }
53
- }
54
+ }
@@ -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=