wordpress-plugin-boilerplate icon indicating copy to clipboard operation
wordpress-plugin-boilerplate copied to clipboard

Configured plugin values not substituted in template - "{{The Plugin Name}}"

Open khromov opened this issue 4 years ago • 2 comments

Just tried running npx wp-strap plugin to initialize a plugin, went through the setup steps and filled in all the details, no errors were shown.

After completing, the placeholder values haven't been replaced with the data I entered, so my plugin main file looks like this:

<?php
/**
 * {{The Plugin Name}}
 *
 * @package   {{the-plugin-name}}
 * @author    {{author_name}} <{{author_email}}>
 * @copyright {{author_copyright}}
 * @license   {{author_license}}
 * @link      {{author_url}}
 *
 * Plugin Name:     {{The Plugin Name}}
 * Plugin URI:      {{plugin_url}}
 * Description:     {{plugin_description}}
 * Version:         {{version}}
 * Author:          {{author_name}}
 * Author URI:      {{author_url}}
 * Text Domain:     the-plugin-name-text-domain
 * Domain Path:     /languages
 * Requires PHP:    7.1
 * Requires WP:     5.5.0
 * Namespace:       ThePluginName
 */

Log:

 __        ______      ____  _
 \ \      / /  _ \    / ___|| |_ _ __ __ _ _ __
  \ \ /\ / /| |_) |___\___ \| __| '__/ _` | '_ \
   \ V  V / |  __/_____|__) | |_| | | (_| | |_) |
    \_/\_/  |_|       |____/ \__|_|  \__,_| .__/
                                          |_|
Create a new WordPress project
? Please enter your project name (e.g. The Plugin Name): My Cool Plugin
? The plugin description:
? The plugin version (default: 1.0.0): 1.0.0
? The plugin license (default: MIT): MIT
? The plugin author's name (e.g. The Dev Company):
? The plugin author's e-mail address (e.g. [email protected]):
? The author url without https:// (e.g. the-dev-company.com):
? Use WebPack for front-end (SCSS/JS) tooling (Y/n) no
? Use PHP CodeSniffer with WP Coding Standards to validate the code for WordPress (Y/n) yes
? Use Codeception for functional, integration & acceptance tests (Y/n) yes
? Use Travis CI for automatic testing & continuous integration (Y/n) yes

Summary:
- projectName: My Cool Plugin
- description:
- pluginVersion: 1.0.0
- license: MIT
- author:
- authorEmail:
- url:
- webpack: no
- codesniffer: yes
- codeception: yes
- travisCi: yes
- vendor:
- package: my-cool-plugin
- namespace: MyCoolPlugin
- prefix: MY_COOL_PLUGIN
- lowerCasePrefix: my_cool_plugin
? Looks good? Yes


✔ 1. Operator is cloning plugin repository
✔ 2. Operator is replacing plugin data
✔ 3. Operator is installing Composer dependencies
✔ 4. Operator is cleaning up
----------------
✔ Project is created

The plugin data, namespace, prefixes has been changed according to your input.
If you use Codeception for testing then you need to configure your local testing environment in .env.testing
If you use webpack then edit the BrowserSync settings in webpack.config.js if you want to make use of it.

Please read the documentation https://github.com/wp-strap/wordpress-plugin-boilerplate if you run into any issues or if you have any questions.

You can activate the plugin in WordPress and work on it straight away. Good luck!

khromov avatar Feb 19 '22 00:02 khromov

same issue here

onuqer avatar Apr 30 '22 12:04 onuqer

Encountered this issue as well.

hanny-ph avatar Oct 20 '22 23:10 hanny-ph