create-varity-app 2.0.0-beta.6 → 2.0.0-beta.7
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/create.js +4 -5
- package/dist/index.js +0 -0
- package/package.json +7 -7
- package/template/README.md +5 -6
package/dist/create.js
CHANGED
|
@@ -7,11 +7,10 @@ import ora from "ora";
|
|
|
7
7
|
import { getInstallCommand } from "./utils.js";
|
|
8
8
|
const __filename = fileURLToPath(import.meta.url);
|
|
9
9
|
const __dirname = path.dirname(__filename);
|
|
10
|
-
const VARITY_PACKAGE_VERSION = "^2.0.0-beta.1";
|
|
11
10
|
const WORKSPACE_DEPS = {
|
|
12
|
-
"@varity-labs/sdk":
|
|
13
|
-
"@varity-labs/types":
|
|
14
|
-
"@varity-labs/ui-kit":
|
|
11
|
+
"@varity-labs/sdk": "2.0.0-beta.4",
|
|
12
|
+
"@varity-labs/types": "2.0.0-beta.4",
|
|
13
|
+
"@varity-labs/ui-kit": "2.0.0-beta.7",
|
|
15
14
|
};
|
|
16
15
|
const EXCLUDED_FILES = new Set([
|
|
17
16
|
".env.local",
|
|
@@ -33,7 +32,7 @@ function rewritePackageJson(content, projectName) {
|
|
|
33
32
|
for (const [name, version] of Object.entries(deps)) {
|
|
34
33
|
if (typeof version === "string" &&
|
|
35
34
|
version.startsWith("workspace:")) {
|
|
36
|
-
deps[name] = WORKSPACE_DEPS[name] ||
|
|
35
|
+
deps[name] = WORKSPACE_DEPS[name] || "2.0.0-beta.4";
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
38
|
}
|
package/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-varity-app",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.7",
|
|
4
4
|
"description": "Create production-ready apps with auth, database, and payments built in",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,11 +38,6 @@
|
|
|
38
38
|
"LICENSE"
|
|
39
39
|
],
|
|
40
40
|
"type": "module",
|
|
41
|
-
"scripts": {
|
|
42
|
-
"prebuild": "node scripts/copy-template.mjs",
|
|
43
|
-
"build": "tsc",
|
|
44
|
-
"clean": "rm -rf dist template"
|
|
45
|
-
},
|
|
46
41
|
"dependencies": {
|
|
47
42
|
"chalk": "^5.3.0",
|
|
48
43
|
"commander": "^12.1.0",
|
|
@@ -57,5 +52,10 @@
|
|
|
57
52
|
"@types/prompts": "^2.4.9",
|
|
58
53
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
59
54
|
"typescript": "^5.5.0"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"prebuild": "node scripts/copy-template.mjs",
|
|
58
|
+
"build": "tsc",
|
|
59
|
+
"clean": "rm -rf dist template"
|
|
60
60
|
}
|
|
61
|
-
}
|
|
61
|
+
}
|
package/template/README.md
CHANGED
|
@@ -60,7 +60,7 @@ Switch your entire app's color scheme by editing `src/app/globals.css`:
|
|
|
60
60
|
This template works immediately with **zero setup**:
|
|
61
61
|
|
|
62
62
|
### Instant Auth
|
|
63
|
-
- ✅ Email login (
|
|
63
|
+
- ✅ Email login (built-in)
|
|
64
64
|
- ✅ Google/Apple social login
|
|
65
65
|
- ✅ Dev credentials built-in
|
|
66
66
|
- ❌ No env vars needed
|
|
@@ -75,9 +75,9 @@ This template works immediately with **zero setup**:
|
|
|
75
75
|
```bash
|
|
76
76
|
npm run deploy
|
|
77
77
|
```
|
|
78
|
-
- ✅ Deploys to
|
|
78
|
+
- ✅ Deploys to production
|
|
79
79
|
- ✅ Auto-fetches credentials
|
|
80
|
-
- ❌ No
|
|
80
|
+
- ❌ No extra accounts needed
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
@@ -103,7 +103,7 @@ This template uses `workspace:^` protocol for Varity packages:
|
|
|
103
103
|
- ✅ `output: 'export'` in next.config.js
|
|
104
104
|
- ✅ All pages pre-rendered to static HTML
|
|
105
105
|
- ✅ No server-side dependencies
|
|
106
|
-
- ✅
|
|
106
|
+
- ✅ CDN deployable
|
|
107
107
|
|
|
108
108
|
### Type Safety
|
|
109
109
|
- ✅ TypeScript strict mode enabled
|
|
@@ -215,8 +215,7 @@ The database collection is created automatically on first use — no migrations
|
|
|
215
215
|
|
|
216
216
|
| Variable | Required | Notes |
|
|
217
217
|
|----------|----------|-------|
|
|
218
|
-
| `
|
|
219
|
-
| `NEXT_PUBLIC_THIRDWEB_CLIENT_ID` | No | Infrastructure (auto-configured) |
|
|
218
|
+
| `NEXT_PUBLIC_VARITY_AUTH_ID` | No | Auth provider (auto-configured) |
|
|
220
219
|
| `NEXT_PUBLIC_VARITY_APP_TOKEN` | No | Database token (auto-configured) |
|
|
221
220
|
| `NEXT_PUBLIC_VARITY_APP_ID` | No | App ID (auto-configured) |
|
|
222
221
|
|