Refactored code (Part 3)
Background
Prep work for #368.
I moved the existing code around so that we can simplify src/main.ts and the file structure better matches that in prettier-plugin-ember-hbs-tag.
/* src/main.ts */
export { languages } from './languages.js';
export { options } from './options.js';
export { parsers } from './parsers.js';
export { printers } from './printers.js';
@NullVoxPopuli Can you help with reviewing this PR and #368?
matches that in prettier-plugin-ember-hbs-tag
What's the benefit of doing this though?
Much of the content that code can just be deleted (in a separate pr), and would shrink this pr (yay!)
I do like smaller files tho!
What's the benefit of doing this though?
Currently, the files don't practice a good separation of concerns. As a result, I think the package will feel more magical to contributors than it actually is. This, in return, would make maintaining and extending the package difficult.
I'm a fan of the new structure presented here
Sorry @ijlee2, you'll have to rebase again 🙈
Rebased.