create-nextblock 0.2.75 → 0.2.76
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/bin/create-nextblock.js
CHANGED
|
@@ -778,6 +778,12 @@ async function ensureGitignore(projectDir) {
|
|
|
778
778
|
|
|
779
779
|
let content = '';
|
|
780
780
|
|
|
781
|
+
if (await fs.pathExists(resolve(projectDir, 'gitignore'))) {
|
|
782
|
+
await fs.move(resolve(projectDir, 'gitignore'), gitignorePath, {
|
|
783
|
+
overwrite: true,
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
|
|
781
787
|
if (await fs.pathExists(gitignorePath)) {
|
|
782
788
|
content = await fs.readFile(gitignorePath, 'utf8');
|
|
783
789
|
} else if (await fs.pathExists(npmIgnorePath)) {
|
package/package.json
CHANGED
package/scripts/sync-template.js
CHANGED
|
@@ -128,7 +128,7 @@ NEXT_PUBLIC_URL=http://localhost:3000
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
async function ensureTemplateGitignore() {
|
|
131
|
-
const destination = resolve(TARGET_DIR, '
|
|
131
|
+
const destination = resolve(TARGET_DIR, 'gitignore'); // Rename to gitignore
|
|
132
132
|
const content = `.DS_Store
|
|
133
133
|
node_modules
|
|
134
134
|
dist
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.DS_Store
|
|
2
|
+
node_modules
|
|
3
|
+
dist
|
|
4
|
+
.next
|
|
5
|
+
out
|
|
6
|
+
build
|
|
7
|
+
coverage
|
|
8
|
+
*.log
|
|
9
|
+
logs
|
|
10
|
+
npm-debug.log*
|
|
11
|
+
yarn-debug.log*
|
|
12
|
+
yarn-error.log*
|
|
13
|
+
pnpm-debug.log*
|
|
14
|
+
|
|
15
|
+
.env
|
|
16
|
+
.env.*
|
|
17
|
+
.env.local
|
|
18
|
+
.env.development.local
|
|
19
|
+
.env.production.local
|
|
20
|
+
.env.test.local
|
|
21
|
+
|
|
22
|
+
.vscode
|
|
23
|
+
.idea
|
|
24
|
+
.swp
|
|
25
|
+
*.sw?
|
|
26
|
+
|
|
27
|
+
supabase/.temp
|
|
28
|
+
supabase/.branches
|