Browse Source

Remove Unit Name

Remove unit name from existing templates.
tags/1.0^0
Chris Wiegman 1 year ago
parent
commit
64611b018e
No known key found for this signature in database GPG Key ID: 449E180845071036
5 changed files with 8 additions and 8 deletions
  1. +3
    -3
      generators/plugin/templates/_README.md
  2. +1
    -1
      generators/plugin/templates/_index.php
  3. +1
    -1
      generators/plugin/templates/_plugin.js
  4. +1
    -1
      generators/plugin/templates/_plugin.scss
  5. +2
    -2
      generators/plugin/templates/_uninstall.php

+ 3
- 3
generators/plugin/templates/_README.md View File

@@ -1,4 +1,4 @@
<%if ( '' !== unitName ) { %><%= unitName %> <% } %><%= pluginName %>
<%= pluginName %>
=============

<%= description %>
@@ -53,9 +53,9 @@ Minified JS and CSS is great in production but it can make development much hard
<% if (true === needsDocker) { %>
##### Developing your plugin locally

Bundled with this plugin is a Docker configuration compatible with our [Ouroboros](https://github.com/UFHealth/ouroboros) Docker hub. Here's how do get it running.
Bundled with this plugin is a Docker configuration compatible with our [Primary Docker](https://github.com/chriswiegman/primary-docker) hub. Here's how do get it running.

1. Clone and bring up [Ouroboros](https://github.com/UFHealth/ouroboros) using the instructions on its page
1. Clone and bring up [Primary Docker](https://github.com/chriswiegman/primary-docker) using the instructions on its page
2. Run `./develop up -d` in this repo
3. Run the setup script using the following `./Docker/bin/setup`
4. Visit the site at [https://<%= textDomain %>.test]


+ 1
- 1
generators/plugin/templates/_index.php View File

@@ -1,6 +1,6 @@
<?php
/**
* Plugin Name: <%if ( '' !== unitName ) { %><%= unitName %> <% } %><%= pluginName %>
* Plugin Name: <%= pluginName %>
* Plugin URI: <%= projectHome %>
* Description: <%= description %>
* Version: 1.0


+ 1
- 1
generators/plugin/templates/_plugin.js View File

@@ -1,5 +1,5 @@
/**
* <%if ( '' !== unitName ) { %><%= unitName %> <% } %><%= pluginName %>
* <%= pluginName %>
* <%= projectHome %>
*
* Copyright (c) <%= new Date().getFullYear() %> <%= authorName %>


+ 1
- 1
generators/plugin/templates/_plugin.scss View File

@@ -1,5 +1,5 @@
/**
* <%if ( '' !== unitName ) { %><%= unitName %> <% } %><%= pluginName %>
* <%= pluginName %>
* <%= projectHome %>
*
* Copyright (c) <%= new Date().getFullYear() %> <%= authorName %>


+ 2
- 2
generators/plugin/templates/_uninstall.php View File

@@ -1,6 +1,6 @@
<?php
/**
* <%if ( '' !== unitName ) { %><%= unitName %> <% } %><%= pluginName %> uninstaller
* <%= pluginName %> uninstaller
*
* Used when clicking "Delete" from inside of WordPress's plugins page.
*
@@ -42,7 +42,7 @@ function perform_uninstall() {
exit_uninstaller();
}

// Uninstall <%if ( '' !== unitName ) { %><%= unitName %> <% } %><%= pluginName %>.
// Uninstall <%= pluginName %>.
clean_data();
}