Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Export a single "Alda" object? #1

Open
daveyarwood opened this issue Sep 14, 2015 · 2 comments
Open

Export a single "Alda" object? #1

daveyarwood opened this issue Sep 14, 2015 · 2 comments

Comments

@daveyarwood
Copy link
Member

It might be nice if we export a single object that contains all the exported functions, so that this:

alda_cljs.parser.parse("guitar: c e g")

would become:

Alda.parse("guitar: c e g")

(I'm open to other suggestions here.)

We could do this by patching the window object.

@crisptrutski
Copy link
Member

We might extend reach a bit (service workers, ES6 projects) by using some kind of UMD-like wrapper instead of just assuming window is available, OK to mutate, and only one version of alda should be loadable.

@crisptrutski
Copy link
Member

Or just give out an ES6 module, and let people shim-however-they-want into their project

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants