Dailin 415ba84223 | 4 years ago | ||
---|---|---|---|
.. | |||
lib | 删除 | 4 years ago | |
README.md | 4 years ago | ||
checkPlugin.js | 4 years ago | ||
getCorePlugins.sh | 4 years ago | ||
reTestAllPlugins.sh | 4 years ago | ||
updateAllPluginsScript.sh | 4 years ago | ||
updateCorePlugins.sh | 4 years ago |
The files in this folder are for Plugin developers.
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 ep_webrtc
node bin/plugins/checkPlugins.js ep_whatever autofix
node bin/plugins/checkPlugins.js ep_whatever autofix autocommit
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 `ls node_modules`;
do
# echo $0
if [[ $dir == *"ep_"* ]]; then
if [[ $dir != "ep_etherpad-lite" ]]; then
node bin/plugins/checkPlugin.js $dir autofix autocommit
fi
fi
# echo $dir
done
getCorePlugins.sh
updateCorePlugins.sh