wagerfield/parallax — pull request #96 by jenius (2014-09-16 21:43:39+00:00)
Title: Wrap scripts with UMD wrapper

Ok, so here's the first draft of my conversion to making this a UMD compatible script. Mostly changes here to the gulp pipeline. I've tested this with browserify, and in the browser attaching directly to window and it works just great. That being said, tests would also be a helpful thing to verify that it's all set.

This makes a number of other smaller changes as well to prepare the package for distribution through npm, like adding a npmignore and changing the name and main pointer in the package.json file.

I'm not 100% sure that the jquery version will work perfectly as I haven't tested it extensively, and this unfortunately drops zepto compatibility, although the easy workaround is to alias jQuery to Zepto and it will work fine.

I know it looks like there are a lot of changes here, but most if it is just un-nesting the function wrapper, which is now provided by gulp-wrap-umd.

Happy to keep working through this is you are willing to work with me. If not, I'll just use my fork for now.