create-matwad-app 1.0.2 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-matwad-app",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CLI to scaffold a full-stack app with Express, Knex, Vite, React, Tailwind, and Shadcn UI.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -67,6 +67,18 @@ export async function run() {
67
67
  console.log(`\n${blue(bold("Setting up Server..."))}`);
68
68
  await fse.copy(serverTemplate, serverDir);
69
69
 
70
+ // Rename _gitignore to .gitignore
71
+ const gitignorePath = path.join(serverDir, "_gitignore");
72
+ if (fse.existsSync(gitignorePath)) {
73
+ await fse.move(gitignorePath, path.join(serverDir, ".gitignore"));
74
+ }
75
+
76
+ // Rename _env.local to .env.local
77
+ const envPath = path.join(serverDir, "_env.local");
78
+ if (fse.existsSync(envPath)) {
79
+ await fse.move(envPath, path.join(serverDir, ".env.local"));
80
+ }
81
+
70
82
  // Update server package.json name
71
83
  const serverPkgPath = path.join(serverDir, "package.json");
72
84
  const serverPkg = await fse.readJson(serverPkgPath);
@@ -0,0 +1,2 @@
1
+ SUPABASE_DB_URL=your_supabase_connection_string_here
2
+ PORT=3000
@@ -0,0 +1,20 @@
1
+ # Dependencies
2
+ node_modules
3
+ .pnp
4
+ .pnp.js
5
+
6
+ # Environment variables
7
+ .env
8
+ .env.local
9
+ .env.development.local
10
+ .env.test.local
11
+ .env.production.local
12
+
13
+ # Logs
14
+ npm-debug.log*
15
+ yarn-debug.log*
16
+ yarn-error.log*
17
+
18
+ # OS
19
+ .DS_Store
20
+ Thumbs.db