brandonkramer / wordpress-plugin-boilerplate

An organized and object-oriented boilerplate for WordPress plugin development and testing. Includes Composer, Codeception (unit/acceptance testing), PHPCodeSniffer with WordPress Coding Standards to validate your code, TravisCI configuration for automatic testing & continuous integration, Webpack 5 for front-end development incl. BabelJS v7, BrowserSync v2, PostCSS v8, PurgeCSS v3, Autoprefixer, Eslint, Stylelint, SCSS processor, WPPot, and more.
104 stars 30 forks source link

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

Open khromov opened 2 years ago

khromov commented 2 years ago

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. hello@the-dev-company.com):
? 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!
onuqer commented 2 years ago

same issue here

hanny-ph commented 1 year ago

Encountered this issue as well.