create-audora-next 0.1.1 → 0.1.3

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/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
 
3
- import { mkdirSync, cpSync, existsSync } from "fs";
3
+ import { mkdirSync, cpSync, existsSync, renameSync } from "fs";
4
4
  import { join } from "path";
5
5
  import { execSync } from "child_process";
6
6
  import pc from "picocolors";
@@ -47,6 +47,19 @@ cpSync(new URL("./templates/base", import.meta.url), targetDir, {
47
47
  recursive: true,
48
48
  });
49
49
 
50
+ // Rename template files that npm excludes during publish
51
+ const templateFiles = [
52
+ { from: "gitignore.template", to: ".gitignore" },
53
+ { from: "env.example.template", to: ".env.example" },
54
+ ];
55
+
56
+ for (const { from, to } of templateFiles) {
57
+ const filePath = join(targetDir, from);
58
+ if (existsSync(filePath)) {
59
+ renameSync(filePath, join(targetDir, to));
60
+ }
61
+ }
62
+
50
63
  process.chdir(targetDir);
51
64
 
52
65
  // Init git (optional - warn if git not available)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-audora-next",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Create a new Audora Next.js app with one command",
5
5
  "keywords": [
6
6
  "create",
@@ -0,0 +1,2 @@
1
+ # Site URL (used for sitemap, robots.txt, and Open Graph)
2
+ NEXT_PUBLIC_SITE_URL=http://localhost:3000
@@ -0,0 +1,5 @@
1
+ # Environment Variables
2
+ # Copy this file to .env and fill in the values
3
+
4
+ # Site URL (used for SEO and sitemap generation)
5
+ NEXT_PUBLIC_SITE_URL=http://localhost:3000
@@ -0,0 +1,41 @@
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
+
36
+ # vercel
37
+ .vercel
38
+
39
+ # typescript
40
+ *.tsbuildinfo
41
+ 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.