I'm working on an angular application. We based our application on https://github.com/Swiip/generator-gulp-angular and everything is working fine. This angular seed project basically scans all your JS files in a directory and concats them into a single JS file when you go into production.
We're building an admin backend for a billing system. The client now also wants a "public backend" for all their clients. A place where clients and log in and send messages basically. The UI is the same for the public backend, we could re-use the same directives everywhere. The only problem is that the public backend is tiny and the admin backend is huge. I don't think serving the full admin app to a random client is good practice.
How do I go about building two applications from the same code base?