As we're moving away from having any global js objects (this includes $ and jQuery) we need to start thinking how GUDstap fits into that.
On the one hand we don't want to create merge issues with upstream, and on the other hand we don't want globals. The solution would be to wrap our components during the build step. I see two different ways this can be done:
As we're moving away from having any global js objects (this includes
$
andjQuery
) we need to start thinking how GUDstap fits into that.On the one hand we don't want to create merge issues with upstream, and on the other hand we don't want globals. The solution would be to wrap our components during the build step. I see two different ways this can be done:
gudstrap.js
to be AMD (or even better UMD) compliant.My vote is for the second solution as it looks to be the least intrusive.