Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

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

Open
khromov opened this issue Feb 19, 2022 · 2 comments

Comments

@khromov
Copy link

khromov commented Feb 19, 2022

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
Copy link

onuqer commented Apr 30, 2022

same issue here

@hanny-ph
Copy link

Encountered this issue as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants