I took some time during research day to evaluate uw-frame as a maven project. Many times we have said "why is this a maven project, it is just static content". I took that good point, and ran with it. What if frame was just static content.
- I created https://github.com/timlevett/static-frame which is just
uw-frame
, without all the maven fluff. - I then registered this app with bower under
tim-uw-static-frame
and taggedv1.0.0
. - After that I took uw-frame and created this branch https://github.com/timlevett/uw-frame/tree/tim-static-test which basically removes all the static content, and adds in some copy-resources in the pom.xml so that the static content is pulled in.
- To work on the frame static content you can just run
http-server
(documented here: https://github.com/timlevett/static-frame/blob/master/README.md). http-server is a node project that just runs a http server with the given directory as root. - This opens doors to other developers, like WAMS and the like to dev stuff that isn't Java based. They can just pull in the bower component as we did.
- We could start writing node express.js based frame apps (like all the cool kids)
Complexity increases. In order to make a change happen and see it reflected in angularjs-portal you would need to:
- make change in static-frame, commit and tag static-frame (there may be a way to get snapshots or something, not sure)
- do a
mvn install
on uw-frame with the new static-frame component - do a
mvn clean package
on angularjs-portal
So what do you all think?
@smargovsky - totally possible to remove maven from builds, maybe, i'm not sure. Still all very new. We would have to figure that out. Especially if someone desired MyUW-infrastructure to host a
node.js
frame app. I mean, until we figured that out, it would need to be a war. And I'm saying this now, we are not running an IIS server, sorry .net peeps :P.