checkPlugin: Revise README.md

image-example
Richard Hansen 2021-01-10 19:16:58 -05:00 committed by John McLear
parent adb38d0d61
commit 27df9df47f
1 changed files with 11 additions and 10 deletions

View File

@ -2,28 +2,33 @@ The files in this folder are for Plugin developers.
# Get suggestions to improve your Plugin # 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. 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$ node bin/plugins/checkPlugin.js $PLUGIN_NAME$
``` ```
# Basic Example: # Basic Example:
``` ```
node bin/plugins/checkPlugin.js ep_webrtc node bin/plugins/checkPlugin.js ep_webrtc
``` ```
## Autofixing - will autofix any issues it can ## Autofixing - will autofix any issues it can
``` ```
node bin/plugins/checkPlugin.js ep_whatever autofix node bin/plugins/checkPlugin.js ep_whatever autofix
``` ```
## Autocommitting, push, npm minor patch and npm publish (highly dangerous) ## Autocommitting, push, npm minor patch and npm publish (highly dangerous)
``` ```
node bin/plugins/checkPlugin.js ep_whatever autofix autocommit node bin/plugins/checkPlugin.js ep_whatever autofix autocommit
``` ```
# All the plugins # All the plugins
Replace johnmclear with your github username Replace johnmclear with your github username
``` ```
@ -33,19 +38,15 @@ GHUSER=johnmclear; curl "https://api.github.com/users/$GHUSER/repos?per_page=100
cd .. cd ..
# autofixes and autocommits /pushes & npm publishes # autofixes and autocommits /pushes & npm publishes
for dir in `ls node_modules`; for dir in node_modules/ep_*; do
do dir=${dir#node_modules/}
# echo $0 [ "$dir" != ep_etherpad-lite ] || continue
if [[ $dir == *"ep_"* ]]; then node bin/plugins/checkPlugin.js "$dir" autofix autocommit
if [[ $dir != "ep_etherpad-lite" ]]; then
node bin/plugins/checkPlugin.js $dir autofix autocommit
fi
fi
# echo $dir
done done
``` ```
# Automating update of ether organization plugins # Automating update of ether organization plugins
``` ```
getCorePlugins.sh getCorePlugins.sh
updateCorePlugins.sh updateCorePlugins.sh