init-blueprint 0.0.10 → 0.0.13

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.
@@ -1,10 +1,10 @@
1
1
  {
2
- "name": "blueprint",
2
+ "name": "__APP_NAME__",
3
3
  "version": "0.0.0",
4
4
  "description": "A custom project blueprint",
5
5
  "main": "create.js",
6
6
  "bin": {
7
- "blueprint": "./create.js"
7
+ "__APP_NAME__": "./create.js"
8
8
  },
9
9
  "scripts": {
10
10
  "test": "echo \"Error: no test specified\" && exit 1"
package/create.js CHANGED
@@ -43,14 +43,13 @@ fs.mkdirSync(destinationPath, { recursive: true });
43
43
  // Copy and rename all files
44
44
  fs.readdirSync(templatePath).forEach(item => {
45
45
  const srcPath = path.join(templatePath, item);
46
- let destPath = path.join(destinationPath, item.replace(/Blueprint/g, projectName));
46
+ let destPath = path.join(destinationPath, item.replace(/__APP_NAME__/g, projectName));
47
47
 
48
48
  if (item === "gitignore") {
49
49
  destPath = path.join(destinationPath, ".gitignore"); // Rename gitignore
50
50
  }
51
51
 
52
52
  console.log(`✅ Copying and renaming ${item}...`);
53
- copyAndRenameFiles(srcPath, destPath, "Blueprint", projectName);
54
53
  });
55
54
 
56
55
  console.log(`🎉 Project "${projectName}" created successfully at ${destinationPath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "init-blueprint",
3
- "version": "0.0.10",
3
+ "version": "0.0.13",
4
4
  "description": "A custom project blueprint",
5
5
  "main": "create.js",
6
6
  "bin": {