Here's a quick guide on building a custom zepto from comfort of your command line.
Either install Zepto to your project with Bower:
$ bower install zepto
Or clone it from Git:
$ git clone https://github.com/madrobby/zepto.git
cd into the Zepto's dir:
$ cd zepto/
Then, (from the Zepto dir) get the tools needed for the custom build process:
$ npm install
Finally the actual build process:
$ MODULES="zepto event ajax form ie" ./make dist
This will make a Zepto with the chosen modules in it, in this case: zepto, event, ajax, form, and ie. The newly created file can found from the
Below are the available modules. At least the defaults should be installed in order for Zepto to work.
|zepto||✔||Core module; contains most methods|
|event||✔||Event handling via |
|ajax||✔||XMLHttpRequest and JSONP functionality|
|form||✔||Serialize & submit web forms|
|ie||✔||Add support for Internet Explorer 10+ on desktop and Windows Phone 8.|
|assets||Experimental support for cleaning up iOS memory after removing image elements from the DOM.|
|data||A full-blown |
|selector||ExperimentaljQuery CSS support for functionality such as |
|touch||Fires tap– and swipe–related events on touch devices. This works with both `touch` (iOS, Android) and `pointer` events (Windows Phone).|
|gesture||Fires pinch gesture events on touch devices|
There's also a one page app to do to the build for you.
Comments would go here, but the commenting system isn’t ready yet, sorry. Tweet me @hiljaa if you want to make a correction etc.