cliff-wp-plugin-boilerplate icon indicating copy to clipboard operation
cliff-wp-plugin-boilerplate copied to clipboard

Create a 'renamer' / text replacement generator

Open cliffordp opened this issue 4 years ago • 4 comments

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 avatar Mar 06 '20 21:03 cliffordp

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

cliffordp avatar Mar 08 '20 03:03 cliffordp

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

cliffordp avatar Mar 12 '20 02:03 cliffordp

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

cliffordp avatar Mar 27 '20 18:03 cliffordp

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

cliffordp avatar Nov 25 '20 21:11 cliffordp