netcore-blueprint 0.0.68 → 0.0.69

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.
@@ -0,0 +1,17 @@
1
+ # Build and output directories
2
+ bin/
3
+ obj/
4
+ _nugetLib/
5
+
6
+ # Visual Studio and VS Code settings
7
+ .vs/
8
+ .vscode/
9
+
10
+ # Debug logs
11
+ debug.log
12
+
13
+ # Ignore all .cache files
14
+ *.cache
15
+
16
+ # Ignore all AssemblyInfo.cs files
17
+ **/AssemblyInfo.cs
package/bin/create-app.js CHANGED
@@ -18,11 +18,21 @@ if (fs.existsSync(destinationPath)) {
18
18
  process.exit(1);
19
19
  }
20
20
 
21
- copyDirectory(templatePath, destinationPath);
21
+ try {
22
+ // 1️⃣ Copy template
23
+ copyDirectory(templatePath, destinationPath);
22
24
 
23
- console.log(`🎉 Project "${projectName}" created successfully!`);
25
+ // 2️⃣ Rename gitignore -> .gitignore
26
+ const gitignoreTemplatePath = path.join(destinationPath, 'gitignore');
27
+ const finalGitignorePath = path.join(destinationPath, '.gitignore');
24
28
 
25
- try {
29
+ if (fs.existsSync(gitignoreTemplatePath)) {
30
+ fs.renameSync(gitignoreTemplatePath, finalGitignorePath);
31
+ }
32
+
33
+ console.log(`🎉 Project "${projectName}" created successfully!`);
34
+
35
+ // 3️⃣ Initialize git
26
36
  process.chdir(destinationPath);
27
37
  execSync('git init', { stdio: 'inherit' });
28
38
  execSync('git add .', { stdio: 'inherit' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "netcore-blueprint",
3
- "version": "0.0.68",
3
+ "version": "0.0.69",
4
4
  "description": "A custom project blueprint",
5
5
  "main": "create.js",
6
6
  "bin": {