create-zhx-monorepo 0.1.2 → 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/README.md +8 -5
- package/bin/index.js +7 -0
- package/package.json +1 -1
- package/templates/monorepo-starter/gitignore +43 -0
package/README.md
CHANGED
|
@@ -6,13 +6,15 @@ A CLI package to quickly generate a **Monorepo Starter** monorepo for full-stack
|
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
|
+
You can use this CLI in two ways:
|
|
10
|
+
|
|
9
11
|
```bash
|
|
10
|
-
#
|
|
11
|
-
pnpm
|
|
12
|
+
# Using pnpm create
|
|
13
|
+
pnpm create zhx-monorepo my-new-project
|
|
14
|
+
|
|
15
|
+
# Using pnpm dlx
|
|
16
|
+
pnpm dlx create-zhx-monorepo my-new-project
|
|
12
17
|
|
|
13
|
-
# Create a new project
|
|
14
|
-
pnpm create-zhx-monorepo my-new-project
|
|
15
|
-
```
|
|
16
18
|
|
|
17
19
|
This will generate a ready-to-use monorepo under `my-new-project` with:
|
|
18
20
|
|
|
@@ -32,3 +34,4 @@ This will generate a ready-to-use monorepo under `my-new-project` with:
|
|
|
32
34
|
---
|
|
33
35
|
|
|
34
36
|
Made with ❤️ by **JZ Digital Labs**
|
|
37
|
+
```
|
package/bin/index.js
CHANGED
|
@@ -63,6 +63,13 @@ async function main() {
|
|
|
63
63
|
execSync(`git remote add origin ${gitRemote}`, { stdio: "ignore" });
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
const gitignoreSrc = path.join(projectPath, "gitignore");
|
|
67
|
+
const gitignoreDest = path.join(projectPath, ".gitignore");
|
|
68
|
+
|
|
69
|
+
if (fs.existsSync(gitignoreSrc)) {
|
|
70
|
+
fs.renameSync(gitignoreSrc, gitignoreDest);
|
|
71
|
+
}
|
|
72
|
+
|
|
66
73
|
console.log(green("✅ Project ready!"));
|
|
67
74
|
console.log();
|
|
68
75
|
console.log("Next steps:");
|
package/package.json
CHANGED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
2
|
+
|
|
3
|
+
# Dependencies
|
|
4
|
+
node_modules
|
|
5
|
+
.pnp
|
|
6
|
+
.pnp.js
|
|
7
|
+
|
|
8
|
+
# Local env files
|
|
9
|
+
.env
|
|
10
|
+
.env.local
|
|
11
|
+
.env.development.local
|
|
12
|
+
.env.test.local
|
|
13
|
+
.env.production.local
|
|
14
|
+
|
|
15
|
+
# Testing
|
|
16
|
+
coverage
|
|
17
|
+
|
|
18
|
+
# Turbo
|
|
19
|
+
.turbo
|
|
20
|
+
|
|
21
|
+
# Vercel
|
|
22
|
+
.vercel
|
|
23
|
+
|
|
24
|
+
# Build Outputs
|
|
25
|
+
.next/
|
|
26
|
+
out/
|
|
27
|
+
build
|
|
28
|
+
dist
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# Debug
|
|
32
|
+
npm-debug.log*
|
|
33
|
+
logs
|
|
34
|
+
|
|
35
|
+
# Misc
|
|
36
|
+
.DS_Store
|
|
37
|
+
*.pem
|
|
38
|
+
|
|
39
|
+
# Prisma
|
|
40
|
+
/generated/prisma
|
|
41
|
+
|
|
42
|
+
# others
|
|
43
|
+
.history
|