etherpad-lite/src/bin/plugins
Richard Hansen 9b87007278 lint: Bump ESLint dependencies 2022-05-02 21:16:24 -04:00
..
lib ci: Bump actions/checkout to v3 2022-03-01 17:17:16 -05:00
README.md checkPlugin: Change `autocommit` to not push 2021-12-11 02:01:35 -05:00
checkPlugin.js lint: Bump ESLint dependencies 2022-05-02 21:16:24 -04:00
getCorePlugins.sh getCorePlugins.sh: Various improvements 2021-12-11 02:01:35 -05:00
listOfficialPlugins getCorePlugins.sh: Various improvements 2021-12-11 02:01:35 -05:00
reTestAllPlugins.sh checkPlugin: Change `autocommit` to not push 2021-12-11 02:01:35 -05:00
stalePlugins.js lint: Re-run `eslint --fix` 2021-05-12 11:26:35 +02:00
updateAllPluginsScript.sh checkPlugin: Change `autocommit` to not push 2021-12-11 02:01:35 -05:00
updateCorePlugins.sh checkPlugin: Change `autocommit` to not push 2021-12-11 02:01:35 -05: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 src/bin/plugins/checkPlugin.js $PLUGIN_NAME$

Basic Example:

node src/bin/plugins/checkPlugin.js ep_webrtc

Autofixing - will autofix any issues it can

node src/bin/plugins/checkPlugin.js ep_whatever autofix

Autocommitting - fix issues and commit

node src/bin/plugins/checkPlugin.js ep_whatever autocommit

Autopush - fix issues, commit, push, and publish (highly dangerous)

node src/bin/plugins/checkPlugin.js ep_whatever autopush

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 src/bin/plugins/checkPlugin.js "$dir" autocommit
done

Automating update of ether organization plugins

getCorePlugins.sh
updateCorePlugins.sh