Skip to content

Instantly share code, notes, and snippets.

@FND
Created September 19, 2013 06:19
Show Gist options
  • Save FND/6619680 to your computer and use it in GitHub Desktop.
Save FND/6619680 to your computer and use it in GitHub Desktop.
auto-downloading jQuery UI as dependency - because I prefer Make over Bower
# initial configuration:
# 1. compose desired selection at http://jqueryui.com/download/
# 2. download
# 3. use developer tools to inspect the HTTP request, then use "Copy a cURL"
# 4. extract the `--data` parameter to fill in below
# 5. when committing, note the components as well as the theme being used
.PHONY: dependencies
jquery_ui_version = 1.10.3
jquery_ui_theme = "ui-lightness"
dependencies:
mkdir -p extlib
# jQuery UI
curl http://download.jqueryui.com/download \
--data "version=$(jquery_ui_version)&core=on&widget=on&position=on&autocomplete=on&menu=on&theme=ffDefault%3DTrebuchet%2520MS%252CTahoma%252CVerdana%252CArial%252Csans-serif%26fwDefault%3Dbold%26fsDefault%3D1.1em%26cornerRadius%3D4px%26bgColorHeader%3Df6a828%26bgTextureHeader%3Dgloss_wave%26bgImgOpacityHeader%3D35%26borderColorHeader%3De78f08%26fcHeader%3Dffffff%26iconColorHeader%3Dffffff%26bgColorContent%3Deeeeee%26bgTextureContent%3Dhighlight_soft%26bgImgOpacityContent%3D100%26borderColorContent%3Ddddddd%26fcContent%3D333333%26iconColorContent%3D222222%26bgColorDefault%3Df6f6f6%26bgTextureDefault%3Dglass%26bgImgOpacityDefault%3D100%26borderColorDefault%3Dcccccc%26fcDefault%3D1c94c4%26iconColorDefault%3Def8c08%26bgColorHover%3Dfdf5ce%26bgTextureHover%3Dglass%26bgImgOpacityHover%3D100%26borderColorHover%3Dfbcb09%26fcHover%3Dc77405%26iconColorHover%3Def8c08%26bgColorActive%3Dffffff%26bgTextureActive%3Dglass%26bgImgOpacityActive%3D65%26borderColorActive%3Dfbd850%26fcActive%3Deb8f00%26iconColorActive%3Def8c08%26bgColorHighlight%3Dffe45c%26bgTextureHighlight%3Dhighlight_soft%26bgImgOpacityHighlight%3D75%26borderColorHighlight%3Dfed22f%26fcHighlight%3D363636%26iconColorHighlight%3D228ef1%26bgColorError%3Db81900%26bgTextureError%3Ddiagonals_thick%26bgImgOpacityError%3D18%26borderColorError%3Dcd0a0a%26fcError%3Dffffff%26iconColorError%3Dffd27a%26bgColorOverlay%3D666666%26bgTextureOverlay%3Ddiagonals_thick%26bgImgOpacityOverlay%3D20%26opacityOverlay%3D50%26bgColorShadow%3D000000%26bgTextureShadow%3Dflat%26bgImgOpacityShadow%3D10%26opacityShadow%3D20%26thicknessShadow%3D5px%26offsetTopShadow%3D-5px%26offsetLeftShadow%3D-5px%26cornerRadiusShadow%3D5px&theme-folder-name=ui-lightness&scope=" \
> jquery-ui.zip
unzip jquery-ui.zip
mv jquery-ui-$(jquery_ui_version).custom/js/jquery-ui-$(jquery_ui_version).custom.min.js extlib/jquery-ui.js
mv jquery-ui-$(jquery_ui_version).custom/css/$(jquery_ui_theme)/jquery-ui-$(jquery_ui_version).custom.min.css extlib/jquery-ui.css
mv jquery-ui-$(jquery_ui_version).custom/css/$(jquery_ui_theme)/images extlib/
rm -r jquery-ui.zip jquery-ui-$(jquery_ui_version).custom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment