draw icon indicating copy to clipboard operation
draw copied to clipboard

Code refactoring

Open bytesnz opened this issue 10 years ago • 1 comments

The textbox stuff could a quite a bit of mess to draw.js. I was thinking it would be a good idea for all the tools to be contained within their own files. To do this we would need to employ a compiler, such as cjsc or browserify, and while we are doing that could employ tool such as grunt to manage everything (run sanity checks, tests, minification etc). Does this sound like a good idea and do you have a preference for such a thing? I use gulp, browserify, less, eslint (and also jasmine and karma for testing.

bytesnz avatar Dec 08 '15 10:12 bytesnz

I see a lot of projects go down this route and requiring all these additional tools raises the barrier of entry..

While I'm +1 modularization I'm -1 increasing complexity so if we go this route it should be still super simple to modify the software without understanding additional underlying modules/application/build processes etc.

JohnMcLear avatar Dec 10 '15 01:12 JohnMcLear