Replace text
Does the plugin have any requirements?
A list of features.
Any hooks exposed?
// Load recaptcha script.
add_filter('gravityforms-timber/options', function ($options) {
$options['recaptcha'] = true;
});
Install dependencies
composer install
npm install
Run the tests
npm run test
Build assets
# Minified assets which are to be committed to git
npm run production
# Development assets while developing the plugin
npm run dev
# Watch for changes and re-compile while developing the plugin
npm run watch
Bump versions
# Bump patch release
robo version:bump
# Bump minor release
robo version:bump --stage=minor
# Bump major release
robo version:bump --stage=major
Setup new plugin
robo rename
Rebuild POT files (after this, copy to each language as languages/text-replacements-<langcode>.po
and translate it)
npm run lang:pot
Compile MO files (requires msgfmt which is available with brew install gettext && brew link gettext --force
)
npm run lang:mo
Or run all of these with:
npm run lang