2020-11-02 17:13:24 +01:00
|
|
|
The files in this folder are for Plugin developers.
|
|
|
|
|
|
|
|
# Get suggestions to improve your Plugin
|
|
|
|
|
2021-01-11 01:16:58 +01:00
|
|
|
This code will check your plugin for known usual issues and some suggestions for
|
|
|
|
improvements. No changes will be made to your project.
|
2020-11-02 17:13:24 +01:00
|
|
|
|
|
|
|
```
|
2021-02-05 00:43:27 +01:00
|
|
|
node src/bin/plugins/checkPlugin.js $PLUGIN_NAME$
|
2020-11-02 17:13:24 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
# Basic Example:
|
2021-01-11 01:16:58 +01:00
|
|
|
|
2020-11-02 17:13:24 +01:00
|
|
|
```
|
2021-02-05 00:43:27 +01:00
|
|
|
node src/bin/plugins/checkPlugin.js ep_webrtc
|
2020-11-02 17:13:24 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Autofixing - will autofix any issues it can
|
2021-01-11 01:16:58 +01:00
|
|
|
|
2020-11-02 17:13:24 +01:00
|
|
|
```
|
2021-02-05 00:43:27 +01:00
|
|
|
node src/bin/plugins/checkPlugin.js ep_whatever autofix
|
2020-11-02 17:13:24 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Autocommitting, push, npm minor patch and npm publish (highly dangerous)
|
2021-01-11 01:16:58 +01:00
|
|
|
|
2020-11-02 17:13:24 +01:00
|
|
|
```
|
2021-02-05 00:43:27 +01:00
|
|
|
node src/bin/plugins/checkPlugin.js ep_whatever autocommit
|
2020-11-02 17:13:24 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
# All the plugins
|
2021-01-11 01:16:58 +01:00
|
|
|
|
2020-11-02 17:13:24 +01:00
|
|
|
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
|
2021-01-11 01:16:58 +01:00
|
|
|
for dir in node_modules/ep_*; do
|
|
|
|
dir=${dir#node_modules/}
|
|
|
|
[ "$dir" != ep_etherpad-lite ] || continue
|
2021-02-05 00:43:27 +01:00
|
|
|
node src/bin/plugins/checkPlugin.js "$dir" autocommit
|
2020-11-02 17:13:24 +01:00
|
|
|
done
|
|
|
|
```
|
|
|
|
|
|
|
|
# Automating update of ether organization plugins
|
2021-01-11 01:16:58 +01:00
|
|
|
|
2020-11-02 17:13:24 +01:00
|
|
|
```
|
|
|
|
getCorePlugins.sh
|
|
|
|
updateCorePlugins.sh
|
|
|
|
```
|