ikramhussainsiyam-create-my-project 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
package/cli.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/usr/bin/env node
|
1
|
+
#!/usr/bin/env node
|
2
2
|
|
3
3
|
import { execSync } from "child_process";
|
4
4
|
import fs from "fs-extra";
|
@@ -38,6 +38,12 @@ async function main() {
|
|
38
38
|
// Copy template files to the new project directory
|
39
39
|
await fs.copy(templatePath, targetPath);
|
40
40
|
|
41
|
+
// Rename gitignore-template to .gitignore in the target directory
|
42
|
+
await fs.rename(
|
43
|
+
path.join(targetPath, "gitignore-template"),
|
44
|
+
path.join(targetPath, ".gitignore")
|
45
|
+
);
|
46
|
+
|
41
47
|
// Update package.json with the project name
|
42
48
|
const packageJsonPath = path.join(targetPath, "package.json");
|
43
49
|
const packageJson = await fs.readJson(packageJsonPath);
|
package/package.json
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Logs
|
2
|
+
logs
|
3
|
+
*.log
|
4
|
+
npm-debug.log*
|
5
|
+
yarn-debug.log*
|
6
|
+
yarn-error.log*
|
7
|
+
pnpm-debug.log*
|
8
|
+
lerna-debug.log*
|
9
|
+
|
10
|
+
node_modules
|
11
|
+
dist
|
12
|
+
dist-ssr
|
13
|
+
*.local
|
14
|
+
|
15
|
+
# Editor directories and files
|
16
|
+
.vscode/*
|
17
|
+
!.vscode/extensions.json
|
18
|
+
.idea
|
19
|
+
.DS_Store
|
20
|
+
*.suo
|
21
|
+
*.ntvs*
|
22
|
+
*.njsproj
|
23
|
+
*.sln
|
24
|
+
*.sw?
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Logs
|
2
|
+
logs
|
3
|
+
*.log
|
4
|
+
npm-debug.log*
|
5
|
+
yarn-debug.log*
|
6
|
+
yarn-error.log*
|
7
|
+
pnpm-debug.log*
|
8
|
+
lerna-debug.log*
|
9
|
+
|
10
|
+
node_modules
|
11
|
+
dist
|
12
|
+
dist-ssr
|
13
|
+
*.local
|
14
|
+
|
15
|
+
# Editor directories and files
|
16
|
+
.vscode/*
|
17
|
+
!.vscode/extensions.json
|
18
|
+
.idea
|
19
|
+
.DS_Store
|
20
|
+
*.suo
|
21
|
+
*.ntvs*
|
22
|
+
*.njsproj
|
23
|
+
*.sln
|
24
|
+
*.sw?
|