create-next-imagicma 0.0.3 → 0.0.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/bin/create-next-imagicma.mjs +8 -0
- package/package.json +1 -1
- package/template/gitignore +46 -0
|
@@ -297,6 +297,14 @@ async function main() {
|
|
|
297
297
|
force: true,
|
|
298
298
|
errorOnExist: false,
|
|
299
299
|
});
|
|
300
|
+
// npm publish 会默认排除 .gitignore,模板中以 gitignore 发布,此处还原为 .gitignore
|
|
301
|
+
const gitignoreSrc = path.join(targetDir, "gitignore");
|
|
302
|
+
try {
|
|
303
|
+
await fs.access(gitignoreSrc);
|
|
304
|
+
await fs.rename(gitignoreSrc, path.join(targetDir, ".gitignore"));
|
|
305
|
+
} catch {
|
|
306
|
+
// 无 gitignore 则跳过(如本地开发时仍保留 .gitignore 的情况)
|
|
307
|
+
}
|
|
300
308
|
await updatePackageName(targetDir, port);
|
|
301
309
|
await updateProcessComposePort(targetDir, port);
|
|
302
310
|
await updateDefaultTheme(targetDir, theme);
|
package/package.json
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
# npm
|
|
34
|
+
.npmrc
|
|
35
|
+
.npm-cache/
|
|
36
|
+
|
|
37
|
+
# env files (can opt-in for committing if needed)
|
|
38
|
+
.env*
|
|
39
|
+
!.env.example
|
|
40
|
+
|
|
41
|
+
# vercel
|
|
42
|
+
.vercel
|
|
43
|
+
|
|
44
|
+
# typescript
|
|
45
|
+
*.tsbuildinfo
|
|
46
|
+
next-env.d.ts
|