etherpad-lite/src/bin/plugins
Richard Hansen 6198e92706 tests: Pass `--legacy-peer-deps` flag to work around npm v7 bug
This flag is unknown to npm v6, but npm v6 silently ignores unknown
flags.
2021-02-22 03:36:12 -05:00
..
lib tests: Pass `--legacy-peer-deps` flag to work around npm v7 bug 2021-02-22 03:36:12 -05:00
README.md restructure: Prefix `bin/` and `tests/` with `src/` 2021-02-05 21:52:08 +00:00
checkPlugin.js checkPlugins: remove lib/travis.yml and add github badges if they aren't present (#4731) 2021-02-09 09:41:41 +00:00
getCorePlugins.sh restructure: move bin/ and tests/ to src/ 2021-02-04 17:15:08 -05:00
reTestAllPlugins.sh restructure: Prefix `bin/` and `tests/` with `src/` 2021-02-05 21:52:08 +00:00
updateAllPluginsScript.sh restructure: Prefix `bin/` and `tests/` with `src/` 2021-02-05 21:52:08 +00:00
updateCorePlugins.sh restructure: Prefix `bin/` and `tests/` with `src/` 2021-02-05 21:52:08 +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 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, push, npm minor patch and npm publish (highly dangerous)

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

Automating update of ether organization plugins

getCorePlugins.sh
updateCorePlugins.sh