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

Reorganize JavaScript module structure #21

Open
sheesania opened this issue Feb 22, 2021 · 0 comments
Open

Reorganize JavaScript module structure #21

sheesania opened this issue Feb 22, 2021 · 0 comments

Comments

@sheesania
Copy link
Contributor

sheesania commented Feb 22, 2021

Currently, Centrallix's JavaScript is structured rather like C code - lots of functions in the global namespace, with module prefixes on function names. This system should be updated to be more clean, standard, and modern.

One suggested structure is outlined here - essentially, moving Centrallix functionality into a structured global variable $CX.

Alternatively, could it be possible to use ES6 modules + imports instead (with standard JS objects, functions, classes, etc)? The main issue with this is that supporting older / less standard browsers would require setting up Babel/Webpack/some other transpilation and/or build toolchain (see #22).

@sheesania sheesania added this to Refactoring projects in Alison backlog Apr 7, 2021
@sheesania sheesania moved this from Refactoring projects to Low priority in Alison backlog Apr 7, 2021
@sheesania sheesania moved this from Low priority to Refactoring in Alison backlog Apr 7, 2021
gbeeley added a commit that referenced this issue Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Alison backlog
Refactoring
Development

No branches or pull requests

1 participant