create-z3 0.0.42 → 0.0.44

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 CHANGED
@@ -69,8 +69,19 @@ async function copyTemplate(framework, targetPath) {
69
69
  }
70
70
  await fs2.copy(templatePath, targetPath, {
71
71
  overwrite: false,
72
- errorOnExist: false
72
+ errorOnExist: false,
73
+ filter: (src) => {
74
+ return !src.endsWith("_gitignore");
75
+ }
73
76
  });
77
+ const sourceGitignore = join(templatePath, "_gitignore");
78
+ const targetGitignore = join(targetPath, ".gitignore");
79
+ if (await fs2.pathExists(sourceGitignore)) {
80
+ await fs2.copy(sourceGitignore, targetGitignore, {
81
+ overwrite: false,
82
+ errorOnExist: false
83
+ });
84
+ }
74
85
  }
75
86
 
76
87
  // src/utils/messages.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-z3",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "type": "module",
5
5
  "description": "CLI for scaffolding Z3 Stack applications (TanStack/Next.js + Convex + Better Auth)",
6
6
  "bin": {
@@ -0,0 +1,16 @@
1
+ # Since the ".env" file is gitignored, you can use the ".env.example" file to
2
+ # build a new ".env" file when you clone the repo. Keep this file up-to-date
3
+ # when you add new variables to `.env`.
4
+
5
+ # This file will be committed to version control, so make sure not to have any
6
+ # secrets in it. If you are cloning this repo, create a copy of this file named
7
+ # ".env" and populate it with your secrets.
8
+
9
+ # When adding additional environment variables, the schema in "/src/env.js"
10
+ # should be updated accordingly.
11
+
12
+ NEXT_PUBLIC_CONVEX_URL=""
13
+ NEXT_PUBLIC_CONVEX_SITE_URL=""
14
+
15
+ NEXT_PUBLIC_SITE_URL=""
16
+ BETTER_AUTH_SECRET=""
@@ -0,0 +1,45 @@
1
+ # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2
+
3
+ # dependencies
4
+ /node_modules
5
+ /.pnp
6
+ .pnp.*
7
+ .yarn/*
8
+ !.yarn/patches
9
+ !.yarn/plugins
10
+ !.yarn/releases
11
+ !.yarn/versions
12
+
13
+ # testing
14
+ /coverage
15
+
16
+ # next.js
17
+ /.next/
18
+ /out/
19
+
20
+ # production
21
+ /build
22
+
23
+ # misc
24
+ .DS_Store
25
+ *.pem
26
+
27
+ # debug
28
+ npm-debug.log*
29
+ yarn-debug.log*
30
+ yarn-error.log*
31
+ .pnpm-debug.log*
32
+
33
+ # env files (can opt-in for committing if needed)
34
+ .env
35
+ .env.local
36
+ .env.development.local
37
+ .env.test.local
38
+ .env.production.local
39
+
40
+ # vercel
41
+ .vercel
42
+
43
+ # typescript
44
+ *.tsbuildinfo
45
+ next-env.d.ts
@@ -0,0 +1,6 @@
1
+ /// <reference types="next" />
2
+ /// <reference types="next/image-types/global" />
3
+ import "./.next/types/routes.d.ts";
4
+
5
+ // NOTE: This file should not be edited
6
+ // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
@@ -0,0 +1,13 @@
1
+ node_modules
2
+ .DS_Store
3
+ dist
4
+ dist-ssr
5
+ *.local
6
+ count.txt
7
+ .env
8
+ .nitro
9
+ .tanstack
10
+ .wrangler
11
+ .output
12
+ .vinxi
13
+ todos.json