jquery / jqueryui.com

jQuery UI web site content
https://jqueryui.com
Other
132 stars 114 forks source link

Retire DownloadBuilder-hijack-way of building-demos #25

Open rxaviers opened 12 years ago

rxaviers commented 12 years ago

To save bytes and time, currently we're hijacking the jquery-ui checkout from download.jqueryui.com to copy demo files when building the demo.

Soon, Download Builder will handle multiple versions and the chance the get garbage (different checkout than expected) from its tmp dir is higher.

We may need to handle it by our own or find a consistent alternative.

scottgonzalez commented 11 years ago

This just bit us again. See #32.

jzaefferer commented 11 years ago

For the build-demos task we should just clone jQuery UI again instead of hijacking DB.

Since DB also has a bunch of git-related tasks, maybe we can build a little helper with we can include as a module in both DB and this repo's grunt file.

jzaefferer commented 11 years ago

Scott actually built a tool around git, though focusing on "a bunch of functions that make writing custom git commands or other git-based scripts much easier": https://github.com/scottgonzalez/node-git-tools

Could have something like Repo.fetch() which would handle cloning or fetching based on whether the repo exists.

jzaefferer commented 11 years ago

We can do a flat clone, since we don't need the full history to generate the demos. Just need the revision we're putting on the site. Use the --depth <depth> option to load only the specified number of revisions.

jzaefferer commented 9 years ago

This still sucks.