create-nextblock 0.2.23 → 0.2.25

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-nextblock",
3
- "version": "0.2.23",
3
+ "version": "0.2.25",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -36,16 +36,16 @@ const UI_PROXY_MODULES = [
36
36
  'ui',
37
37
  ];
38
38
 
39
- const IGNORED_SEGMENTS = new Set([
40
- 'node_modules',
41
- '.git',
42
- '.next',
43
- 'dist',
44
- 'tmp',
45
- 'coverage',
46
- 'backup',
47
- 'backups',
48
- ]);
39
+ const IGNORED_SEGMENTS = new Set([
40
+ 'node_modules',
41
+ '.git',
42
+ '.next',
43
+ 'dist',
44
+ 'tmp',
45
+ 'coverage',
46
+ 'backup',
47
+ 'backups',
48
+ ]);
49
49
 
50
50
  async function ensureTemplateSync() {
51
51
  const sourceExists = await fs.pathExists(SOURCE_DIR);
@@ -79,9 +79,10 @@ async function ensureTemplateSync() {
79
79
  },
80
80
  });
81
81
 
82
- await ensureEnvExample();
83
- await ensureGlobalStyles();
84
- await ensureClientTranslations();
82
+ await ensureEnvExample();
83
+ await ensureTemplateGitignore();
84
+ await ensureGlobalStyles();
85
+ await ensureClientTranslations();
85
86
  await sanitizeBlockEditorImports();
86
87
  await sanitizeUiImports();
87
88
  await ensureUiProxies();
@@ -91,7 +92,7 @@ async function ensureTemplateSync() {
91
92
  console.log(chalk.green('Template sync complete.'));
92
93
  }
93
94
 
94
- async function ensureEnvExample() {
95
+ async function ensureEnvExample() {
95
96
  const envTargets = [
96
97
  resolve(REPO_ROOT, '.env.example'),
97
98
  resolve(REPO_ROOT, '.env.exemple'),
@@ -117,8 +118,42 @@ NEXT_PUBLIC_URL=http://localhost:3000
117
118
  `;
118
119
 
119
120
  await fs.writeFile(destination, placeholder);
120
- }
121
-
121
+ }
122
+
123
+ async function ensureTemplateGitignore() {
124
+ const destination = resolve(TARGET_DIR, '.gitignore');
125
+ const content = `.DS_Store
126
+ node_modules
127
+ dist
128
+ .next
129
+ out
130
+ build
131
+ coverage
132
+ *.log
133
+ logs
134
+ npm-debug.log*
135
+ yarn-debug.log*
136
+ yarn-error.log*
137
+ pnpm-debug.log*
138
+
139
+ .env
140
+ .env.*
141
+ .env.local
142
+ .env.development.local
143
+ .env.production.local
144
+ .env.test.local
145
+
146
+ .vscode
147
+ .idea
148
+ .swp
149
+ *.sw?
150
+
151
+ supabase/.temp
152
+ supabase/.branches
153
+ `;
154
+ await fs.outputFile(destination, content);
155
+ }
156
+
122
157
  async function ensureGlobalStyles() {
123
158
  const destination = resolve(TARGET_DIR, 'app/globals.css');
124
159
 
@@ -1,24 +0,0 @@
1
- NEXT_PUBLIC_URL=
2
- # Vercel / Supabase
3
- SUPABASE_PROJECT_ID=
4
- POSTGRES_URL=
5
- NEXT_PUBLIC_SUPABASE_URL=
6
- NEXT_PUBLIC_SUPABASE_ANON_KEY=
7
- SUPABASE_SERVICE_ROLE_KEY=
8
-
9
- # Cloudflare
10
- NEXT_PUBLIC_R2_BASE_URL=
11
- R2_ACCESS_KEY_ID=
12
- R2_SECRET_ACCESS_KEY=
13
- R2_BUCKET_NAME=
14
- R2_ACCOUNT_ID=
15
-
16
- REVALIDATE_SECRET_TOKEN=
17
-
18
- # Email SMTP Configuration
19
- SMTP_HOST=
20
- SMTP_PORT=
21
- SMTP_USER=
22
- SMTP_PASS=
23
- SMTP_FROM_EMAIL=
24
- SMTP_FROM_NAME=