xonomy
xonomy copied to clipboard
Rewrite as module using modern ESNext or Typescript
trafficstars
Xonomy is a good library, but still written using an old-fashioned single file pattern. This is a really big concern, in terms of:
- readability
- maintainability
- testability
- and even, with modern build tools like rollup.js or Parcel, backward compatibility & file size.
This is why a complete rewrite of Xonomy is, IMHO, a priority.
This rewrite could be done either in ESNext or in Typescript. The mail exchange I had with @michmech , the repo owner, was in favor of a Typescript transscripting.
The lib's design would be reworked to convert each Xonomy instance as a class instance, sharing a strict minimal configuration with others, to address issues like #35, thus allowing multiple Xonomy instance per page.
I'll work on a PR ASAP.
Any progress on this @GerkinDev ?