nextworks 0.1.0-alpha.1 → 0.1.0-alpha.11
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/README.md +76 -2
- package/dist/cli_manifests/auth_manifest.json +7 -1
- package/dist/cli_manifests/blocks_manifest.json +7 -6
- package/dist/cli_manifests/data_manifest.json +4 -2
- package/dist/cli_manifests/forms_manifest.json +6 -3
- package/dist/commands/blocks.d.ts +1 -0
- package/dist/commands/blocks.d.ts.map +1 -1
- package/dist/commands/blocks.js +77 -10
- package/dist/commands/blocks.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/kits/auth-core/{README.md → .nextworks/docs/AUTH_CORE_README.md} +11 -0
- package/dist/kits/auth-core/.nextworks/docs/AUTH_QUICKSTART.md +244 -0
- package/dist/kits/auth-core/LICENSE +21 -0
- package/dist/kits/auth-core/app/(protected)/admin/posts/page.tsx +29 -0
- package/dist/kits/auth-core/app/(protected)/admin/users/page.tsx +29 -0
- package/dist/kits/auth-core/app/api/users/[id]/route.ts +127 -0
- package/dist/kits/auth-core/components/ui/button.tsx +84 -17
- package/dist/kits/auth-core/components/ui/input.tsx +5 -3
- package/dist/kits/auth-core/components/ui/label.tsx +10 -4
- package/dist/kits/auth-core/lib/prisma.ts +10 -0
- package/dist/kits/blocks/.nextworks/docs/BLOCKS_QUICKSTART.md +193 -0
- package/dist/kits/blocks/{README.md → .nextworks/docs/BLOCKS_README.md} +12 -0
- package/dist/kits/blocks/.nextworks/docs/THEME_GUIDE.md +223 -0
- package/dist/kits/blocks/LICENSE +21 -0
- package/dist/kits/data/.nextworks/docs/DATA_QUICKSTART.md +112 -0
- package/dist/kits/data/{README.md → .nextworks/docs/DATA_README.md} +13 -0
- package/dist/kits/data/LICENSE +21 -0
- package/dist/kits/data/lib/prisma.ts +10 -0
- package/dist/kits/forms/.nextworks/docs/FORMS_QUICKSTART.md +85 -0
- package/dist/kits/forms/{README.md → .nextworks/docs/FORMS_README.md} +12 -0
- package/dist/kits/forms/LICENSE +21 -0
- package/dist/utils/file-operations.d.ts.map +1 -1
- package/dist/utils/file-operations.js +135 -4
- package/dist/utils/file-operations.js.map +1 -1
- package/package.json +4 -1
- package/dist/.gitkeep +0 -0
- package/dist/kits/blocks/components/ui/button_bck.tsx +0 -93
- package/dist/kits/blocks/lib/themes_old.ts +0 -37
- package/dist/kits/blocks/notes/THEMING_CONVERSION_SUMMARY.md +0 -14
package/README.md
CHANGED
|
@@ -8,6 +8,22 @@ Nextworks is a CLI that installs **modular Next.js building blocks** into your a
|
|
|
8
8
|
- **Data** – Example CRUD for Users + Posts with admin UI, wired to Auth + Prisma.
|
|
9
9
|
|
|
10
10
|
> **Status:** early‑access alpha. Expect rough edges and breaking changes between alpha releases.
|
|
11
|
+
>
|
|
12
|
+
> In this alpha, the most reliable setup is to install **Blocks** first using:
|
|
13
|
+
>
|
|
14
|
+
> ```bash
|
|
15
|
+
> npx nextworks add blocks --sections --templates
|
|
16
|
+
> ```
|
|
17
|
+
>
|
|
18
|
+
> and then add **Auth Core**, **Forms**, and **Data** on top. Partial setups (e.g. Auth/Data without Blocks) may require manual tweaks and are not yet fully supported.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Feedback / Contact
|
|
23
|
+
|
|
24
|
+
Nextworks is early‑access alpha and I’m actively looking for feedback from early testers. If you run into issues, have questions, or want to suggest improvements or pro‑level features, I’m happy to help and would really appreciate hearing from you:
|
|
25
|
+
|
|
26
|
+
- Email: nextjsworks@gmail.com
|
|
11
27
|
|
|
12
28
|
---
|
|
13
29
|
|
|
@@ -43,13 +59,29 @@ From your app root:
|
|
|
43
59
|
|
|
44
60
|
### 1) Install Blocks (UI kit)
|
|
45
61
|
|
|
62
|
+
> **Turbopack / Next 16 note (fonts + AppProviders)**
|
|
63
|
+
>
|
|
64
|
+
> As of the current alpha, `@nextworks/blocks-core/server` intentionally **does not** import `next/font/*`.
|
|
65
|
+
> Fonts are instead configured directly in your app’s `app/layout.tsx` (the CLI patches this for you).
|
|
66
|
+
> This avoids Turbopack dev issues related to internal Next font modules.
|
|
67
|
+
>
|
|
68
|
+
> If you ever see a font-related Turbopack error after upgrades or manual edits, re-run:
|
|
69
|
+
>
|
|
70
|
+
> ```bash
|
|
71
|
+
> npx nextworks add blocks --sections --templates
|
|
72
|
+
> ```
|
|
73
|
+
>
|
|
74
|
+
> to re-apply the layout patch, and ensure `app/layout.tsx` contains a valid
|
|
75
|
+
> `import { ... } from "next/font/google";` plus the corresponding `const geistSans = ...` etc.
|
|
76
|
+
|
|
46
77
|
```bash
|
|
47
|
-
npx nextworks add blocks
|
|
78
|
+
npx nextworks add blocks --sections --templates
|
|
48
79
|
```
|
|
49
80
|
|
|
50
81
|
This copies:
|
|
51
82
|
|
|
52
|
-
- `components/ui/*`
|
|
83
|
+
- `components/ui/*` (core UI primitives)
|
|
84
|
+
- `components/sections/*` (reusable sections)
|
|
53
85
|
- Page templates under `app/templates/*`
|
|
54
86
|
- Theme helpers and `app/globals.css` (if not already present)
|
|
55
87
|
|
|
@@ -99,6 +131,20 @@ Start your dev server:
|
|
|
99
131
|
npm run dev
|
|
100
132
|
```
|
|
101
133
|
|
|
134
|
+
> **Windows + Prisma + Next 16 (Turbopack) note**
|
|
135
|
+
>
|
|
136
|
+
> If you are on **Windows** and have installed the **Auth Core** or **Data** kits (which use Prisma under the hood) on **Next 16+**, the Next dev server may need permission to create symlinks for the Prisma client. On Windows, this can cause errors like:
|
|
137
|
+
>
|
|
138
|
+
> `create symlink to ../../../../node_modules/@prisma/client`
|
|
139
|
+
>
|
|
140
|
+
> `Caused by: A required privilege is not held by the client. (os error 1314)`
|
|
141
|
+
>
|
|
142
|
+
> If you see this (often surfaced as a 500 on `/api/auth/session` or a NextAuth `CLIENT_FETCH_ERROR`), do one of the following:
|
|
143
|
+
> - **Recommended**: Enable **Developer Mode** in Windows (Settings → For developers → Developer mode). This allows symlinks in normal terminals.
|
|
144
|
+
> - Or: Run your dev server from an **elevated PowerShell/terminal** ("Run as administrator").
|
|
145
|
+
>
|
|
146
|
+
> After doing one of these, restart `npm run dev` and reload your app.
|
|
147
|
+
|
|
102
148
|
Visit:
|
|
103
149
|
|
|
104
150
|
- `/auth/signup`
|
|
@@ -137,6 +183,23 @@ Then visit:
|
|
|
137
183
|
|
|
138
184
|
---
|
|
139
185
|
|
|
186
|
+
## Advanced Blocks installs
|
|
187
|
+
|
|
188
|
+
For a full UI kit including core primitives, sections, and templates, use:
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
npx nextworks add blocks --sections --templates
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
If you want finer control:
|
|
195
|
+
|
|
196
|
+
- `npx nextworks add blocks --ui-only` – install core UI primitives only (no sections/templates).
|
|
197
|
+
- `npx nextworks add blocks --sections` – install core + sections only.
|
|
198
|
+
- `npx nextworks add blocks --templates` – install core + templates only.
|
|
199
|
+
- `npx nextworks add blocks --sections --templates` – install core + sections + templates.
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
140
203
|
## Copy‑paste quickstart for your app README
|
|
141
204
|
|
|
142
205
|
You can add a short “Nextworks setup” section to your app README:
|
|
@@ -181,6 +244,17 @@ You can add a short “Nextworks setup” section to your app README:
|
|
|
181
244
|
|
|
182
245
|
---
|
|
183
246
|
|
|
247
|
+
## License
|
|
248
|
+
|
|
249
|
+
The code in this CLI and the generated files is licensed under the MIT License (see `LICENSE`).
|
|
250
|
+
|
|
251
|
+
The placeholder images in the templates are sourced from Pexels and are
|
|
252
|
+
subject to the [Pexels License](https://www.pexels.com/license/).
|
|
253
|
+
They are included for demonstration purposes only and are **not** covered by
|
|
254
|
+
the MIT License.
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
184
258
|
## Troubleshooting
|
|
185
259
|
|
|
186
260
|
- **Prisma errors or missing migrations**
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"name": "auth",
|
|
3
3
|
"description": "NextAuth + Prisma credentials signup/login, optional GitHub OAuth, session helpers and auth UI",
|
|
4
4
|
"files": [
|
|
5
|
+
"LICENSE",
|
|
5
6
|
"components/auth/login-form.tsx",
|
|
6
7
|
"components/auth/signup-form.tsx",
|
|
7
8
|
"components/auth/forgot-password-form.tsx",
|
|
@@ -14,6 +15,8 @@
|
|
|
14
15
|
"components/auth/minimal-logout-button.tsx",
|
|
15
16
|
"app/(protected)/settings/profile/page.tsx",
|
|
16
17
|
"app/(protected)/settings/profile/profile-form.tsx",
|
|
18
|
+
"app/(protected)/admin/posts/page.tsx",
|
|
19
|
+
"app/(protected)/admin/users/page.tsx",
|
|
17
20
|
"components/ui/input.tsx",
|
|
18
21
|
"components/ui/label.tsx",
|
|
19
22
|
"components/ui/button.tsx",
|
|
@@ -32,6 +35,7 @@
|
|
|
32
35
|
"app/api/auth/forgot-password/route.ts",
|
|
33
36
|
"app/api/auth/reset-password/route.ts",
|
|
34
37
|
"app/api/auth/send-verify-email/route.ts",
|
|
38
|
+
"app/api/users/[id]/route.ts",
|
|
35
39
|
"app/api/signup/route.ts",
|
|
36
40
|
"lib/auth.ts",
|
|
37
41
|
"lib/auth-helpers.ts",
|
|
@@ -46,7 +50,9 @@
|
|
|
46
50
|
"lib/forms/map-errors.ts",
|
|
47
51
|
"scripts/seed-demo.mjs",
|
|
48
52
|
"scripts/promote-admin.mjs",
|
|
49
|
-
"scripts/populate-tokenhash.mjs"
|
|
53
|
+
"scripts/populate-tokenhash.mjs",
|
|
54
|
+
".nextworks/docs/AUTH_CORE_README.md",
|
|
55
|
+
".nextworks/docs/AUTH_QUICKSTART.md"
|
|
50
56
|
],
|
|
51
57
|
"apiRoutes": [
|
|
52
58
|
"app/api/auth/[...nextauth]/route.ts",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"core": {
|
|
6
6
|
"description": "Core UI primitives, theme providers, globals, and next.config baseline",
|
|
7
7
|
"files": [
|
|
8
|
+
"LICENSE",
|
|
8
9
|
"components/ui/alert-dialog.tsx",
|
|
9
10
|
"components/ui/brand-node.tsx",
|
|
10
11
|
"components/ui/button.tsx",
|
|
@@ -31,7 +32,10 @@
|
|
|
31
32
|
"lib/themes.ts",
|
|
32
33
|
"lib/utils.ts",
|
|
33
34
|
"app/globals.css",
|
|
34
|
-
"next.config.ts"
|
|
35
|
+
"next.config.ts",
|
|
36
|
+
".nextworks/docs/THEME_GUIDE.md",
|
|
37
|
+
".nextworks/docs/BLOCKS_README.md",
|
|
38
|
+
".nextworks/docs/BLOCKS_QUICKSTART.md"
|
|
35
39
|
]
|
|
36
40
|
},
|
|
37
41
|
"sections": {
|
|
@@ -154,8 +158,7 @@
|
|
|
154
158
|
"public/placeholders/saas_dashboard/analytics.png",
|
|
155
159
|
"public/placeholders/saas_dashboard/chat.png",
|
|
156
160
|
"public/placeholders/saas_dashboard/projectBoard.png",
|
|
157
|
-
"
|
|
158
|
-
"notes/THEMING_CONVERSION_SUMMARY.md"
|
|
161
|
+
".nextworks/docs/THEME_GUIDE.md"
|
|
159
162
|
]
|
|
160
163
|
}
|
|
161
164
|
},
|
|
@@ -172,9 +175,7 @@
|
|
|
172
175
|
"public/placeholders/product_launch/hero.png",
|
|
173
176
|
"public/placeholders/saas_dashboard/analytics.png",
|
|
174
177
|
"public/placeholders/saas_dashboard/chat.png",
|
|
175
|
-
"public/placeholders/saas_dashboard/projectBoard.png"
|
|
176
|
-
"notes/THEME_GUIDE.md",
|
|
177
|
-
"notes/THEMING_CONVERSION_SUMMARY.md"
|
|
178
|
+
"public/placeholders/saas_dashboard/projectBoard.png"
|
|
178
179
|
],
|
|
179
180
|
"apiRoutes": [],
|
|
180
181
|
"cliKitPath": "cli/kits/blocks",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"name": "data",
|
|
3
3
|
"description": "Example Posts + Users CRUD with API routes, admin panels, Prisma schema and seed scripts",
|
|
4
4
|
"files": [
|
|
5
|
+
"LICENSE",
|
|
5
6
|
"app/api/posts/route.ts",
|
|
6
7
|
"app/api/posts/[id]/route.ts",
|
|
7
8
|
"app/api/users/route.ts",
|
|
@@ -19,8 +20,9 @@
|
|
|
19
20
|
"app/examples/demo/seed-demo-button.tsx",
|
|
20
21
|
"lib/prisma.ts",
|
|
21
22
|
"lib/server/result.ts",
|
|
22
|
-
|
|
23
|
-
"
|
|
23
|
+
"scripts/seed-demo.mjs",
|
|
24
|
+
".nextworks/docs/DATA_README.md",
|
|
25
|
+
".nextworks/docs/DATA_QUICKSTART.md"
|
|
24
26
|
],
|
|
25
27
|
"apiRoutes": [
|
|
26
28
|
"/api/posts",
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"name": "forms",
|
|
3
3
|
"description": "React Hook Form + zod patterns, form primitives, Select/Checkbox/Switch and wizard example",
|
|
4
4
|
"files": [
|
|
5
|
+
"LICENSE",
|
|
5
6
|
"components/ui/form/context.ts",
|
|
6
7
|
"components/ui/form/form.tsx",
|
|
7
8
|
"components/ui/form/form-field.tsx",
|
|
@@ -29,7 +30,9 @@
|
|
|
29
30
|
"app/examples/forms/wizard/page.tsx",
|
|
30
31
|
"app/examples/forms/server-action/form-client.tsx",
|
|
31
32
|
"app/examples/forms/server-action/page.tsx",
|
|
32
|
-
"app/api/wizard/route.ts"
|
|
33
|
+
"app/api/wizard/route.ts",
|
|
34
|
+
".nextworks/docs/FORMS_README.md",
|
|
35
|
+
".nextworks/docs/FORMS_QUICKSTART.md"
|
|
33
36
|
],
|
|
34
37
|
"apiRoutes": [],
|
|
35
38
|
"optionalExamples": {
|
|
@@ -47,8 +50,8 @@
|
|
|
47
50
|
"app/api/wizard/route.ts",
|
|
48
51
|
"components/examples/wizard-client.tsx"
|
|
49
52
|
],
|
|
50
|
-
"requires": ["data", "auth"],
|
|
51
|
-
"notes": "Wizard demo requires the data and auth kits (Prisma + NextAuth). Run: npx nextworks add data && npx nextworks add auth"
|
|
53
|
+
"requires": ["data", "auth-core"],
|
|
54
|
+
"notes": "Wizard demo requires the data and auth-core kits (Prisma + NextAuth). Run: npx nextworks add data && npx nextworks add auth-core"
|
|
52
55
|
}
|
|
53
56
|
},
|
|
54
57
|
"prisma": [],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/commands/blocks.ts"],"names":[],"mappings":"AAyBA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/commands/blocks.ts"],"names":[],"mappings":"AAyBA,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,SAAS,CAAC,OAAO,GAAE,gBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2Q7E"}
|
package/dist/commands/blocks.js
CHANGED
|
@@ -16,18 +16,85 @@ async function addBlocks(options = {}) {
|
|
|
16
16
|
const manifest = (await (0, file_operations_1.readJsonFile)(manifestPath));
|
|
17
17
|
// Decide which groups to install.
|
|
18
18
|
// Core is always included to satisfy the contract that sections/templates rely on core.
|
|
19
|
+
// Behavior:
|
|
20
|
+
// - No flags: install core + sections + templates by default.
|
|
21
|
+
// - --sections: install core + sections only.
|
|
22
|
+
// - --templates: install core + templates only.
|
|
23
|
+
// - --sections --templates: core + sections + templates (same as default).
|
|
24
|
+
// - --ui-only: install core only (bare UI primitives, no sections/templates).
|
|
19
25
|
const explicitGroups = [];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (options.
|
|
25
|
-
|
|
26
|
+
const anyGroupFlag = typeof options.sections === "boolean" ||
|
|
27
|
+
typeof options.templates === "boolean" ||
|
|
28
|
+
typeof options.gallery === "boolean" ||
|
|
29
|
+
typeof options.uiOnly === "boolean";
|
|
30
|
+
if (options.uiOnly) {
|
|
31
|
+
// uiOnly overrides other flags if set
|
|
32
|
+
const groupsToInstall = manifest.groups
|
|
33
|
+
? ["core"].filter((g) => g in manifest.groups)
|
|
34
|
+
: [];
|
|
35
|
+
const files = groupsToInstall.length > 0 && manifest.groups
|
|
36
|
+
? groupsToInstall.flatMap((groupName) => {
|
|
37
|
+
const group = manifest.groups?.[groupName];
|
|
38
|
+
return group?.files ?? [];
|
|
39
|
+
})
|
|
40
|
+
: manifest.files || [];
|
|
41
|
+
const filesToCopy = [];
|
|
42
|
+
const missingFiles = [];
|
|
43
|
+
for (const file of files) {
|
|
44
|
+
const kitSource = path_1.default.join(kitDir, file);
|
|
45
|
+
if (await (0, file_operations_1.fileExists)(kitSource)) {
|
|
46
|
+
filesToCopy.push(file);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
const projectSource = path_1.default.join(process.cwd(), file);
|
|
50
|
+
if (await (0, file_operations_1.fileExists)(projectSource)) {
|
|
51
|
+
console.log(`ℹ️ Skipping ${file} (already exists in project)`);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
missingFiles.push(file);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (filesToCopy.length > 0) {
|
|
59
|
+
await (0, file_operations_1.copyFiles)(kitDir, process.cwd(), filesToCopy);
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
console.log("⚠️ No files to copy from the blocks kit (all files missing or already present)");
|
|
63
|
+
}
|
|
64
|
+
// Update package.json and track install as usual
|
|
65
|
+
const depsPath = path_1.default.join(kitDir, "package-deps.json");
|
|
66
|
+
let deps = {};
|
|
67
|
+
try {
|
|
68
|
+
deps = await (0, file_operations_1.readJsonFile)(depsPath);
|
|
69
|
+
await (0, file_operations_1.updatePackageJson)(deps);
|
|
70
|
+
}
|
|
71
|
+
catch (err) {
|
|
72
|
+
console.log("⚠️ No package-deps.json found for blocks or failed to read it");
|
|
73
|
+
}
|
|
74
|
+
await (0, installation_tracker_1.addInstalledKit)("blocks", Object.keys(deps.dependencies || {}), Object.keys(deps.devDependencies || {}), filesToCopy);
|
|
75
|
+
console.log("✓ blocks core UI primitives installed successfully (ui-only mode)!");
|
|
76
|
+
if (missingFiles.length > 0) {
|
|
77
|
+
console.log("\n⚠️ The following files referenced by the blocks manifest were not found in the kit and were not copied:");
|
|
78
|
+
missingFiles.forEach((f) => console.log(` • ${f}`));
|
|
79
|
+
console.log("You may need to copy these files manually (for example placeholder assets under public/placeholders) or reconcile the kit files.");
|
|
80
|
+
}
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
if (anyGroupFlag) {
|
|
84
|
+
if (options.sections)
|
|
85
|
+
explicitGroups.push("sections");
|
|
86
|
+
if (options.templates)
|
|
87
|
+
explicitGroups.push("templates");
|
|
88
|
+
if (options.gallery)
|
|
89
|
+
explicitGroups.push("gallery");
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
// No flags passed: include sections and templates by default so templates
|
|
93
|
+
// always have their section dependencies available.
|
|
94
|
+
explicitGroups.push("sections", "templates");
|
|
95
|
+
}
|
|
26
96
|
const groupsToInstall = manifest.groups
|
|
27
|
-
? [
|
|
28
|
-
"core",
|
|
29
|
-
...(explicitGroups.length ? explicitGroups : ["templates"]),
|
|
30
|
-
].filter((g) => g in manifest.groups)
|
|
97
|
+
? ["core", ...explicitGroups].filter((g) => g in manifest.groups)
|
|
31
98
|
: [];
|
|
32
99
|
const files = groupsToInstall.length > 0 && manifest.groups
|
|
33
100
|
? groupsToInstall.flatMap((groupName) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.js","sourceRoot":"","sources":["../../src/commands/blocks.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"blocks.js","sourceRoot":"","sources":["../../src/comm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,CAAC,CAAC;QAC1D,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CACT,mGAAmG,CACpG,CAAC;YACF,OAAO,CAAC,GAAG,CACT,wFAAwF,CACzF,CAAC;YACF,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;QAC1D,CAAC;QAED,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,OAAO,CAAC,GAAG,CACT,2GAA2G,CAC5G,CAAC;YACF,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;YACrD,OAAO,CAAC,GAAG,CACT,kIAAkI,CACnI,CAAC;QACJ,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;QAC9C,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,8 +10,6 @@ const commander_1 = require("commander");
|
|
|
10
10
|
const auth_core_1 = require("./commands/auth-core");
|
|
11
11
|
const blocks_1 = require("./commands/blocks");
|
|
12
12
|
const forms_1 = __importDefault(require("./commands/forms"));
|
|
13
|
-
// NOTE: auth-forms, admin-users, and admin-posts are planned but not yet implemented as real kits.
|
|
14
|
-
// We temporarily remove them from the public CLI surface to avoid advertising non-existent kits.
|
|
15
13
|
const data_1 = __importDefault(require("./commands/data"));
|
|
16
14
|
const remove_auth_core_1 = require("./commands/remove-auth-core");
|
|
17
15
|
const remove_blocks_1 = require("./commands/remove-blocks");
|
|
@@ -27,6 +25,7 @@ program
|
|
|
27
25
|
.option("--sections", "Include standalone sections (Hero, CTA, Pricing, etc.)")
|
|
28
26
|
.option("--templates", "Include full page templates (Product Launch, SaaS Dashboard, Digital Agency, Gallery)")
|
|
29
27
|
.option("--gallery", "Include gallery/demo template and assets")
|
|
28
|
+
.option("--ui-only", "Install core UI primitives only (no sections/templates)")
|
|
30
29
|
.action(async (kit, options) => {
|
|
31
30
|
try {
|
|
32
31
|
switch (kit) {
|
|
@@ -44,6 +43,7 @@ program
|
|
|
44
43
|
sections: options.sections,
|
|
45
44
|
templates: options.templates,
|
|
46
45
|
gallery: options.gallery,
|
|
46
|
+
uiOnly: options.uiOnly,
|
|
47
47
|
});
|
|
48
48
|
break;
|
|
49
49
|
default:
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA,4CAA4C;AAC5C,+BAA+B;;;;;AAE/B,yCAAoC;AACpC,oDAAmD;AACnD,8CAA8C;AAC9C,6DAAwC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA,4CAA4C;AAC5C,+BAA+B;;;;;AAE/B,yCAAoC;AACpC,oDAAmD;AACnD,8CAA8C;AAC9C,6DAAwC;AAExC,2DAAsC;AACtC,kEAA6D;AAC7D,4DAAwD;AACxD,uEAAgE;AAEhE,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,WAAW,CAAC;KACjB,WAAW,CAAC,yDAAyD,CAAC;KACtE,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,OAAO;KACJ,OAAO,CAAC,WAAW,CAAC;KACpB,WAAW,CAAC,mCAAmC,CAAC;KAChD,MAAM,CACL,YAAY,EACZ,wDAAwD,CACzD;KACA,MAAM,CACL,aAAa,EACb,uFAAuF,CACxF;KACA,MAAM,CAAC,WAAW,EAAE,0CAA0C,CAAC;KAC/D,MAAM,CACL,WAAW,EACX,yDAAyD,CAC1D;KACA,MAAM,CACL,KAAK,EACH,GAAW,EACX,OAKC,EACD,EAAE;IACF,IAAI,CAAC;QACH,QAAQ,GAAG,EAAE,CAAC;YACZ,KAAK,WA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the files that the `nextworks` CLI copies into a target Nex
|
|
|
6
6
|
npx nextworks add auth-core
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
+
> **Alpha note**
|
|
10
|
+
>
|
|
11
|
+
> In this early alpha, the Auth Core kit is tested and supported on top of a **Blocks** install that includes sections and templates. For the smoothest experience, run:
|
|
12
|
+
>
|
|
13
|
+
> ```bash
|
|
14
|
+
> npx nextworks add blocks --sections --templates
|
|
15
|
+
> npx nextworks add auth-core
|
|
16
|
+
> ```
|
|
17
|
+
>
|
|
18
|
+
> before wiring up Prisma and env variables. Using Auth Core without Blocks may work but can require manual tweaks.
|
|
19
|
+
|
|
9
20
|
What the kit includes
|
|
10
21
|
|
|
11
22
|
- NextAuth configuration and handler: lib/auth.ts
|