@thorprovider/create-thor-app 3.0.0 → 3.0.2
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/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/default/docs/README.md +6 -0
- package/templates/default/docs/components.md +6 -0
- package/templates/default/docs/dependencies.md +6 -0
- package/templates/default/docs/patterns.md +6 -0
- package/templates/default/docs/project-structure.md +6 -0
- package/templates/default/docs/rules.md +6 -0
- package/templates/default/lib/regions-config.ts +1 -1
- package/templates/default/package.json +7 -6
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Thor Commerce App — Getting Started"
|
|
3
|
+
purpose: "Entry-point documentation for generated Thor Commerce storefronts, explaining capabilities and quick start"
|
|
4
|
+
lastReviewed: "2026-04-25"
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# [App Name] — Thor Commerce App
|
|
2
8
|
|
|
3
9
|
Next.js 16 storefront with headless commerce backend. Pre-configured with `@thorprovider/components` UI library and commerce adapters.
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Available @thorprovider/components"
|
|
3
|
+
purpose: "Complete catalog of UI components available from @thorprovider/components with props and usage examples"
|
|
4
|
+
lastReviewed: "2026-04-25"
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# Available @thorprovider/components
|
|
2
8
|
|
|
3
9
|
All components import from `@thorprovider/components`. They are pure React (no Next.js), use semantic CSS tokens, and accept data + callbacks via props.
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Patterns (Code Templates)"
|
|
3
|
+
purpose: "Canonical code templates for common patterns like server pages, client components, and commerce data fetching"
|
|
4
|
+
lastReviewed: "2026-04-25"
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# Patterns (Code Templates)
|
|
2
8
|
|
|
3
9
|
## 1. Server Page (Data Fetch)
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Rules"
|
|
3
|
+
purpose: "Non-negotiable constraints that protect backend swappability, dark mode, and framework portability"
|
|
4
|
+
lastReviewed: "2026-04-25"
|
|
5
|
+
---
|
|
6
|
+
|
|
1
7
|
# Rules
|
|
2
8
|
|
|
3
9
|
These rules protect the app's ability to: swap backends without code changes, work in dark mode, survive backend downtime, and stay framework-portable.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* ⚠️ FALLBACK CONFIG: No regions found in database!
|
|
8
8
|
* This is a minimal configuration using English only.
|
|
9
9
|
* Please ensure your backend has regions configured.
|
|
10
|
-
* Generated: 2026-04-
|
|
10
|
+
* Generated: 2026-04-25T16:54:05.783Z
|
|
11
11
|
*
|
|
12
12
|
* To regenerate:
|
|
13
13
|
* - Run: yarn generate:regions (from the package directory)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thorprovider/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Thor Commerce core infrastructure template. Used as base for V0-generated starters.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "PACKAGE_DIR=packages/core tsx ../../scripts/generate-regions-config.ts",
|
|
@@ -13,15 +13,16 @@
|
|
|
13
13
|
"generate:agent-index": "node ../../scripts/generate-core-agents-index.cjs"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@thorprovider/adapters": "^
|
|
17
|
-
"@thorprovider/components": "^
|
|
18
|
-
"@thorprovider/providers": "^
|
|
19
|
-
"@thorprovider/types": "^
|
|
16
|
+
"@thorprovider/adapters": "^4.0.0",
|
|
17
|
+
"@thorprovider/components": "^2.0.0",
|
|
18
|
+
"@thorprovider/providers": "^2.0.0",
|
|
19
|
+
"@thorprovider/types": "^3.0.0",
|
|
20
20
|
"clsx": "^2.1.1",
|
|
21
21
|
"next": "16.0.10",
|
|
22
22
|
"react": "19.2.0",
|
|
23
23
|
"react-dom": "19.2.0",
|
|
24
|
-
"tailwind-merge": "^3.3.1"
|
|
24
|
+
"tailwind-merge": "^3.3.1",
|
|
25
|
+
"zod": "^3.25.0"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@tailwindcss/postcss": "^4.1.9",
|