@pugpigjs/create-wp-project 0.0.2 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @pugpigjs/create-wp-project
2
2
 
3
+ ## 0.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 05bf830: Adjust default structure and naming conventions
8
+
9
+ ## 0.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - f0af600: Update peer dependencies to latest good version.
14
+
3
15
  ## 0.0.2
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pugpigjs/create-wp-project",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "CLI tool to scaffold WordPress plugins and themes from a template repo.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,10 +20,10 @@
20
20
  "license": "ISC",
21
21
  "dependencies": {
22
22
  "chalk": "^5.0.0",
23
- "commander": "^12.0.0",
23
+ "commander": "^14.0.0",
24
24
  "fs-extra": "^11.0.0",
25
25
  "inquirer": "^12.10.0",
26
- "ora": "^8.0.0",
26
+ "ora": "^9.0.0",
27
27
  "simple-git": "^3.0.0"
28
28
  },
29
29
  "publishConfig": {
@@ -104,10 +104,11 @@ export const prompts = {
104
104
  name: 'description',
105
105
  message: 'Enter project description:',
106
106
  default: (answers) => {
107
- return answers.projectName
107
+ return `Custom extensions for ${answers.projectName
108
108
  .split('_')
109
109
  .map(word => word.charAt(0).toUpperCase() + word.slice(1))
110
110
  .join(' ')
111
+ }`
111
112
  }
112
113
  }
113
114
  }
@@ -29,6 +29,7 @@ function toPascalCase(str) {
29
29
  * - TPL_NAMESPACE_LOWER / tpl_namespace_lower - Lowercase namespace (e.g., "acme")
30
30
  * - TPL_PROJECT_NAME / tpl_project_name - Project name in snake_case (e.g., "my_custom_plugin")
31
31
  * - TPL_PROJECT_NAME_PASCAL / tpl_project_name_pascal - Project name in PascalCase (e.g., "MyPlugin")
32
+ * - TPL_PROJECT_NAME_TITLE / tpl_project_name_title - Project name in Title Case (e.g., "My Plugin")
32
33
  * - TPL_PROJECT_NAME_SLUG / tpl_project_name_slug - Project name in kebab-case (e.g., "my-plugin")
33
34
  * - TPL_PROJECT_NAME_FLAT / tpl_project_name_flat - Project name with no separators (e.g., "myplugin")
34
35
  * - TPL_FULL_PROJECT_NAME / tpl_full_project_name - Full project name (e.g., "acme_my_custom_plugin")
@@ -117,6 +118,10 @@ export function getPlaceholderValues(namespace, projectName, description) {
117
118
  NAMESPACE_LOWER: namespace.toLowerCase(),
118
119
  PROJECT_NAME: projectName,
119
120
  PROJECT_NAME_PASCAL: toPascalCase(projectName),
121
+ PROJECT_NAME_TITLE: projectName
122
+ .split('_')
123
+ .map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
124
+ .join(' '),
120
125
  PROJECT_NAME_SLUG: projectName.replace(/_/g, '-'),
121
126
  PROJECT_NAME_FLAT: projectName.replace(/_/g, ''),
122
127
  FULL_PROJECT_NAME: fullProjectName,