Sorry Chris I think my post came across wrong. I said that in number 2 that there should be a way for a developer to create a plugin and compile the files in the correct order without using the editor. I agree, all development should happen outside of the editor.
Have you done much front end dependency loading? What we need to do is pick a solution that can work across both the editor and on a developer kit. Which makes a lot of sense using something node based, whether this be browsify or bower.
Is there any chance you could share some of your loading/grunt processes.
I think we broke the final js files into these:
adapt.js - all main core code
components.js - all components in here
extensions.js - all extensions in here.
However there are other files to factor in. For instance json2.js, which version of jQuery to use, swfObject.js and a few others that are loaded based upon what browser the user is on. This can also be used to provide a smaller library footprint on mobile devices. We have to bare in mind that we need performance as well - so any advice on that too would be great?
So, I have a few questions -
Does browsify solve all of these?
Or are there other work arounds we haven't yet thought of?
Should we be considering Bower?
We also need to load certain CSS files in order - is this possible?
(Not sure about this one but we might need to load templates in certain orders too - mainly partials)
I need to pull together enough information so we can make a decision on moving forward.