RaveJS / rave

Zero-configuration application bootstrap and development
278 stars 8 forks source link

Very simple build attempt #61

Closed unscriptable closed 10 years ago

unscriptable commented 10 years ago

This would be an attempt at a super simple build -- a proof of concept, really. The term "quick and dirty" is not beyond the lexicon that might be used during this attempt. :) What this POC will prove:

After some discussion with @briancavalier, we decided that it would be easiest to create an ES5 bundle in the first attempt. In other words, create an AMD or browserify bundle. TBH, both browserify and AMD are far from ideal, but would be way easier than attempting an ES6-ish option at this point.

Given my extensive experience with cram.js and AMD -- as well as some recent problems (#52) and my total lack of knowledge of browserify bundles -- I decided to try AMD first. I suspect I'll be much more productive with the stuff I know intimately. If attempts via cram go badly, I'll research our options with browserify asap.

The first commit in this PR is (part 1 of 2) that will allow AMD bundles to be loaded. (This is functionality we may have had to write anyways and is relatively easy to implement in the AMD-specific modules.)

We also decided to try to leverage gulp because of its popularity and its use of streams.

Still to do, but not necessarily in order:

Possible follow-on tasks, probably not in this PR, but here for discussion:

I'll be updating this description from time to time as tasks are clarified, added, or removed. Comments welcome, as usual.

unscriptable commented 10 years ago

Going to perform the rest of these tasks in a rave-build (or a temporary rave-build-cram) repo.