Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES6 refactor #114

Open
7 of 16 tasks
purrplingcat opened this issue Sep 21, 2017 · 0 comments
Open
7 of 16 tasks

ES6 refactor #114

purrplingcat opened this issue Sep 21, 2017 · 0 comments

Comments

@purrplingcat
Copy link
Owner

purrplingcat commented Sep 21, 2017

Refactor floating code to OOP by JS ES6. Refator following:

  • Core
  • PluginRegistry
  • Separate logEvent() to own class and refactor
  • Plugin API
    • Plugins must have function init() as mandatory
    • init() has no madatory parameters
  • Remove stats from core and:
    • commandHandled counter in Commander class as read-only property
    • Reconnect counter in Core class as read-only property
  • Remove deprecated methods and properties
  • Separate built-in commands to own js files
  • Refactor logger
    • Write derive() function for logger derivation
  • Access all classes by purrplingbot.js instead of instance of core
    • Instance of core placed in modules.exports.INSTANCE. This property may not exists if no instance created.
  • Move global constants to separated file constants.js
purrplingcat added a commit that referenced this issue Sep 21, 2017
purrplingcat pushed a commit that referenced this issue Sep 22, 2017
purrplingcat pushed a commit that referenced this issue Sep 22, 2017
purrplingcat pushed a commit that referenced this issue Sep 22, 2017
purrplingcat pushed a commit that referenced this issue Sep 22, 2017
purrplingcat pushed a commit that referenced this issue Sep 26, 2017
Refs #114 - Moved global constants to constants.js
@purrplingcat purrplingcat changed the title ES6 OOP refactor ES6 refactor May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant