I need advice on how to organize the business logic of an app.
I’m using ECMA6 with Babel and it’s fantastic so far except that I know the code is going to grow and I would really love to have one class per file, like: ClassName.es6.js
so the code gets intuitively organized.
When I’ve tried I had 2 problems:
- Jasmine not being able to do ES6 and
- classes referenced from one file can’t be found from another
so the build fails.
So far I’m using one “big” ES6 file but this will be limited.
What would you suggest to do? What options do I have?