A set of scripts that can be placed within the root of a plugin to offer rails-style console (thanks to wpshell), i18n stuff and more
cd path/to/wp/plugin/or/theme
git clone https://github.com/Caseproof/wp-scripts script
echo 'script/' >> .gitignore
cp ./script/wp-script-config.sample.php ./script/wp-script-config.php
vim ./script/wp-script-config.php
./script/console
coolio@booyah:~/bevisshanks.com/wp-content/plugins/memberpress-importer$ ./script/console
[email protected]:memberpress-importer > echo get_option('home');
http://bevisshanks.com
[email protected]:memberpress-importer >
And
./script/check_syntax
No syntax errors detected in ./MpimpImporterFactory.php
No syntax errors detected in ./MpimpBaseImporter.php
No syntax errors detected in ./mothership-config.php
No syntax errors detected in ./importers/MpimpTransactionsImporter.php
And
./script/mki18n
find . -regex "^\.\/[^/]*\.php" -exec /usr/bin/env php ./script/i18n/add-textdomain.php -i 'memberpress' {} \;
find . -regex "^\.\/app.*\.php" -exec /usr/bin/env php ./script/i18n/add-textdomain.php -i 'memberpress' {} \;
/usr/bin/env php ./script/i18n/makepot.php wp-plugin . ./i18n/memberpress.pot
And (if you have a mothership project associated with this git repo)
./script/deploy 1.1.1b7