cliff-wp-plugin-boilerplate
cliff-wp-plugin-boilerplate copied to clipboard
Create a 'renamer' / text replacement generator
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
https://www.npmjs.com/package/replace-in-file
https://symfony.com/doc/current/components/console.html#creating-a-console-application
http://velocity.apache.org/engine/devel/user-guide.html is used by PhpStorm's "File and Code Templates"
https://github.com/mt-support/tribe-ext-extension-template is now generated via https://github.com/moderntribe/tut/tree/main/src/Commands/Extension