saebekassebil/teoria — pull request #14 by saebekassebil (2012-09-10 19:43:51+00:00)
Title: Code refactoring - Build system

This is an idea that I've wanted to implement for a long time, but I haven't been sure on how to attack it. This PR refactors the code so that each object has its own file to live in, thus:

- `TeoriaNote` now lives in `src/note.js`
- `TeoriaInterval` now lives in `src/interval.js`
- `TeoriaChord` now lives in `src/chord.js`
- `TeoriaScale` now lives in `src/scale.js`
- And all the lookup tables + sugar methods live (for now) in `src/core.js`

You build the system with

$ jake build

And you lint your changes with

$ jake lint

You can also minify your build with:

$ jake build[minify]

I really like this separation of the code, but since it complicates the use of the framework a bit (You have to build it before you can use it, etc.), I'm not sure that it's the best idea.

I'd love to get some feedback on this - Anyway that this sort of thing should be done? Anyway it certainly **should not**? Anything.

@GregJ and @LukeHorvat since you've been active you might have something to say?