Change the compatibility of UUI frontend structure

Since the variety of frontend developers' technology stack, the former frontend structure can not satisfy the need of React and Vue developers, who are actually the main part of frontend developers nowadays. For this reason, UUI team decide to change the compatibility of the current Angular structure to allow React and Vue developers to join the project easily.

Technology proposal

Since the original codes scale is super huge, the best way to import the compatibility is to keep the original one and add some flexible configuration. The advantage of this plan is that on one hand the new developers can just to some dump changes to make the new codes run, on the other hand, the original codes will be easily to maintain and nothing will change. This is the easiest way for developers to accept and develop all kinds of modules with no doubt. 

So we plan to change the packing configuration as well as the project structure. And the Router is something that needed to be specially focused on because all the new modules are just part of the one SPA, we have to make sure that all the router system works under the same standard. 

Specific changes

1. Re-configure package.json

2. Change the project structure 

3. Configure the routers

Change result 



Others