cliffordp / cliff-wp-plugin-boilerplate

Cliff's WordPress plugin boilerplate
GNU General Public License v3.0
73 stars 25 forks source link

Create a 'renamer' / text replacement generator #73

Open cliffordp opened 4 years ago

cliffordp commented 4 years ago

Like this one: https://github.com/BracketSpace/Notification-Extension-Boilerplate/blob/master/rename.sh

The idea is that there would be a 'texts' JSON/YAML/etc file (ideally a format that allows comments). You set it and, when you run the 'texts' command, it does its replacements.

Ideally, it could run the replacement command over and over, not just the initial time, in case there was a typo or such... might require keeping start/end boundaries (like curly braces) to find them again and again to be replaced... but then that would require the build command to remove such boundaries/placeholders... Maybe the placeholders stay permanently there but then the build command does the string replacements. I think I like that idea the best 🤔

Related to #64

cliffordp commented 4 years ago

https://www.npmjs.com/package/replace-in-file

cliffordp commented 4 years ago

https://symfony.com/doc/current/components/console.html#creating-a-console-application

cliffordp commented 4 years ago

http://velocity.apache.org/engine/devel/user-guide.html is used by PhpStorm's "File and Code Templates"

cliffordp commented 3 years ago

https://github.com/mt-support/tribe-ext-extension-template is now generated via https://github.com/moderntribe/tut/tree/main/src/Commands/Extension