notes from the jQueryTO 2013 conference
obara.justin at gmail.com
Mon Mar 4 12:38:08 EST 2013
Build and Dependency Management Stack
Grunt lets you automate tasks like jsLint, jsHint, minification, concatenation, obfuscation, test run/deployement etc.
Grunt also lets you dynamically keep track (watch) changes to the codebase and run specific tasks when they happens (re-linting for example)
You can point it at git repos (e.g. bower packages, local repos, github and etc.)
You can specify versions to pull down. For example a specific tag from a git repo
RequireJS utilizes an asynchronous module definition (AMD) for defining modules such that module and their dependencies can be asynchronously loaded.
Lets you create clear declarations of dependencies and avoid the use of globals
Allows for swapping modules easily for unit testing as well as map modules to different paths depending on the context
Encapsulates the module definitions
Makes a clear and easy dependency references
Automated CSS Documentation Generators
DSS (in development): https://github.com/darcyclarke/DSS
Sites and API Documentation
jQuery has moved to using a combination of Wordpress and github for their sites
The content is all contained in github as html, markdown, or xml.
Updates are managed through git with pull requests
The sites are setup with wordpress using a custom "distro" jquery-wp-content
Pulls in all necessary plugins and etc. so all their various sites work the same
Grunt is used to pull content from github and pushes it to the wordpress site
All automated through github with webhooks
Staging site updates on every commit
Production site updates when a "release" tag is added
All this means that they rarely, if ever, need to use the wordpress admin panels.
$.deferred - http://api.jquery.com/jQuery.Deferred/
.promise - http://api.jquery.com/promise/
$.when - http://api.jquery.com/jQuery.when/
Scheduled for jQuery UI 1.13
This will replace the current mouse interaction library and provides an api for defining any interaction. Meaning that touch will now be supported. Additionaly you can create your own. A demo was given using the the upcoming browser support fo the gamepad api. They used an xbox 360 controller to interact with elements on screen: drag, resize, and etc.
Other Cool Stuff
Hardware Device API
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fluid-work