@codabytez/create-next-template 0.1.3 → 0.1.4
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 +5 -0
- package/package.json +1 -1
- package/templates/base/gitignore +78 -0
package/dist/index.js
CHANGED
|
@@ -42,6 +42,11 @@ async function copyTemplate(templateName, destPath) {
|
|
|
42
42
|
const templatePath = import_path.default.join(TEMPLATES_DIR, templateName);
|
|
43
43
|
if (!await import_fs_extra.default.pathExists(templatePath)) return;
|
|
44
44
|
await import_fs_extra.default.copy(templatePath, destPath, { overwrite: true });
|
|
45
|
+
const bare = import_path.default.join(destPath, "gitignore");
|
|
46
|
+
const dot = import_path.default.join(destPath, ".gitignore");
|
|
47
|
+
if (await import_fs_extra.default.pathExists(bare)) {
|
|
48
|
+
await import_fs_extra.default.move(bare, dot, { overwrite: true });
|
|
49
|
+
}
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
// src/helpers/env.ts
|
package/package.json
CHANGED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# ===========================
|
|
2
|
+
# Dependencies
|
|
3
|
+
# ===========================
|
|
4
|
+
node_modules/
|
|
5
|
+
.pnp
|
|
6
|
+
.pnp.js
|
|
7
|
+
.yarn/install-state.gz
|
|
8
|
+
|
|
9
|
+
# ===========================
|
|
10
|
+
# Next.js
|
|
11
|
+
# ===========================
|
|
12
|
+
.next/
|
|
13
|
+
out/
|
|
14
|
+
build/
|
|
15
|
+
|
|
16
|
+
# ===========================
|
|
17
|
+
# Environment variables
|
|
18
|
+
# ===========================
|
|
19
|
+
.env
|
|
20
|
+
.env.local
|
|
21
|
+
.env.development.local
|
|
22
|
+
.env.test.local
|
|
23
|
+
.env.production.local
|
|
24
|
+
|
|
25
|
+
# ===========================
|
|
26
|
+
# Package manager artifacts
|
|
27
|
+
# ===========================
|
|
28
|
+
npm-debug.log*
|
|
29
|
+
yarn-debug.log*
|
|
30
|
+
yarn-error.log*
|
|
31
|
+
pnpm-debug.log*
|
|
32
|
+
.pnpm-store/
|
|
33
|
+
|
|
34
|
+
# ===========================
|
|
35
|
+
# OS artifacts
|
|
36
|
+
# ===========================
|
|
37
|
+
.DS_Store
|
|
38
|
+
.DS_Store?
|
|
39
|
+
._*
|
|
40
|
+
.Spotlight-V100
|
|
41
|
+
.Trashes
|
|
42
|
+
Thumbs.db
|
|
43
|
+
ehthumbs.db
|
|
44
|
+
Desktop.ini
|
|
45
|
+
|
|
46
|
+
# ===========================
|
|
47
|
+
# IDE / Editor
|
|
48
|
+
# ===========================
|
|
49
|
+
.vscode/
|
|
50
|
+
.idea/
|
|
51
|
+
*.suo
|
|
52
|
+
*.ntvs*
|
|
53
|
+
*.njsproj
|
|
54
|
+
*.sln
|
|
55
|
+
*.sw?
|
|
56
|
+
*.iml
|
|
57
|
+
.history/
|
|
58
|
+
|
|
59
|
+
# ===========================
|
|
60
|
+
# TypeScript
|
|
61
|
+
# ===========================
|
|
62
|
+
*.tsbuildinfo
|
|
63
|
+
next-env.d.ts
|
|
64
|
+
|
|
65
|
+
# ===========================
|
|
66
|
+
# Testing
|
|
67
|
+
# ===========================
|
|
68
|
+
coverage/
|
|
69
|
+
.nyc_output/
|
|
70
|
+
playwright-report/
|
|
71
|
+
test-results/
|
|
72
|
+
|
|
73
|
+
# ===========================
|
|
74
|
+
# Misc
|
|
75
|
+
# ===========================
|
|
76
|
+
*.pem
|
|
77
|
+
.vercel
|
|
78
|
+
*.local
|