25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.2 KiB

4 년 전
  1. The files in this folder are for Plugin developers.
  2. # Get suggestions to improve your Plugin
  3. This code will check your plugin for known usual issues and some suggestions for improvements. No changes will be made to your project.
  4. ```
  5. node bin/plugins/checkPlugin.js $PLUGIN_NAME$
  6. ```
  7. # Basic Example:
  8. ```
  9. node bin/plugins/checkPlugin.js ep_webrtc
  10. ```
  11. ## Autofixing - will autofix any issues it can
  12. ```
  13. node bin/plugins/checkPlugins.js ep_whatever autofix
  14. ```
  15. ## Autocommitting, push, npm minor patch and npm publish (highly dangerous)
  16. ```
  17. node bin/plugins/checkPlugins.js ep_whatever autofix autocommit
  18. ```
  19. # All the plugins
  20. Replace johnmclear with your github username
  21. ```
  22. # Clones
  23. cd node_modules
  24. GHUSER=johnmclear; curl "https://api.github.com/users/$GHUSER/repos?per_page=1000" | grep -o 'git@[^"]*' | grep /ep_ | xargs -L1 git clone
  25. cd ..
  26. # autofixes and autocommits /pushes & npm publishes
  27. for dir in `ls node_modules`;
  28. do
  29. # echo $0
  30. if [[ $dir == *"ep_"* ]]; then
  31. if [[ $dir != "ep_etherpad-lite" ]]; then
  32. node bin/plugins/checkPlugin.js $dir autofix autocommit
  33. fi
  34. fi
  35. # echo $dir
  36. done
  37. ```
  38. # Automating update of ether organization plugins
  39. ```
  40. getCorePlugins.sh
  41. updateCorePlugins.sh
  42. ```