pad.pub0.org/bin/plugins
John McLear 0cc8405e9c Bump minimum required Node.js version to 10.17.0
This makes it possible to use fs.promises.
2021-01-30 17:00:40 -05:00
..
lib Plugin publish workflow: Run `git push` before `npm publish` 2021-01-05 21:59:03 +00:00
README.md checkPlugin: Make `autocommit` imply `autoupdate`, `autoupdate` imply `autofix` 2021-01-11 08:51:04 +00:00
checkPlugin.js Bump minimum required Node.js version to 10.17.0 2021-01-30 17:00:40 -05:00
getCorePlugins.sh checkPlugins: Support adaptive npmpublish.yml (#4509) 2020-11-23 16:34:26 +00:00
reTestAllPlugins.sh Plugin Developer Tools: Plugin check & fix tool 2020-07-26 13:18:02 +01:00
updateAllPluginsScript.sh Plugin Developer Tools: Plugin check & fix tool 2020-07-26 13:18:02 +01:00
updateCorePlugins.sh plugins: Various checkPlugins.js and associated file fixes. (#4439) 2020-11-02 16:13:24 +00:00

README.md

The files in this folder are for Plugin developers.

Get suggestions to improve your Plugin

This code will check your plugin for known usual issues and some suggestions for improvements. No changes will be made to your project.

node bin/plugins/checkPlugin.js $PLUGIN_NAME$

Basic Example:

node bin/plugins/checkPlugin.js ep_webrtc

Autofixing - will autofix any issues it can

node bin/plugins/checkPlugin.js ep_whatever autofix

Autocommitting, push, npm minor patch and npm publish (highly dangerous)

node bin/plugins/checkPlugin.js ep_whatever autocommit

All the plugins

Replace johnmclear with your github username

# Clones
cd node_modules
GHUSER=johnmclear; curl "https://api.github.com/users/$GHUSER/repos?per_page=1000" | grep -o 'git@[^"]*' | grep /ep_ | xargs -L1 git clone
cd ..

# autofixes and autocommits /pushes & npm publishes
for dir in node_modules/ep_*; do
  dir=${dir#node_modules/}
  [ "$dir" != ep_etherpad-lite ] || continue
  node bin/plugins/checkPlugin.js "$dir" autocommit
done

Automating update of ether organization plugins

getCorePlugins.sh
updateCorePlugins.sh