Skip to content

Instantly share code, notes, and snippets.

View rxaviers's full-sized avatar

Rafael Xavier de Souza rxaviers

View GitHub Profile
@rxaviers
rxaviers / gist:5142694
Last active December 14, 2015 20:19
jQueryUI Grunt/Download Builder

Stay in jQueryUI Grunt

  • default: "lint csslint htmllint qunit"
  • sizer: "concat:ui min:dist/jquery-ui.min.js compare_size:all"
  • sizer_all: "concat:ui min compare_size"
  • build: "concat min cssmin copy:dist_units_images"

Move to DownloadBuilder

  • release: "clean build copy:dist copy:dist_min copy:dist_min_images copy:dist_css_min md5:dist zip:dist"
Mar 13 07:24:13 nc02 download.jqueryui.com[28643]: { core: 'on', widget: 'on', mouse: 'on', position: 'on', draggable: 'on', droppable: 'on', resizable: 'on', selectable: 'on', sortable: 'on', accordion: 'on', autocomplete: 'on', button: 'on', datepicker: 'on', dialog: 'on', menu: 'on', progressbar: 'on', slider: 'on', spinner: 'on', tabs: 'on', tooltip: 'on', effect: 'on', 'effect-blind': 'on', 'effect-bounce': 'on', 'effect-clip': 'on', 'effect-drop': 'on', 'effect-explode': 'on', 'effect-fade': 'on', 'effect-fold': 'on', 'effect-highlight': 'on', 'effect-pulsate': 'on', 'effect-scale': 'on', 'effect-shake': 'on', 'effect-slide': 'on', 'effect-transfer': 'on', 'theme-folder-name': 'smoothness', scope: '' }
Mar 13 01:48:58 nc02 download.jqueryui.com[30196]: User request exception: TypeError: Cannot call method 'components' of undefined at Object.Builder (/var/www/download.jqueryui.com/lib/builder.js:51:27) at /var/www/download.jqu
diff --git a/download.js b/download.js
index c20b0a7..c4027db 100644
--- a/download.js
+++ b/download.js
@@ -71,7 +71,7 @@ Frontend.prototype = {
});
},
- create: function( fields, response, callback ) {
+ create: function( fields, request, response, callback ) {
Mar 14 03:05:39 nc02 download.jqueryui.com[9838]: User request exception: Error:
convert: unrecognized color `0000000' @ warning/color.c/GetColorCompliance/946.
at Socket.<anonymous>
(/var/www/download.jqueryui.com/lib/themeroller.image.js:68:15) at
Socket.EventEmitter.emit (events.js:93:17) at Pipe.onread (net.js:418:51)
Mar 14 03:05:39 nc02 download.jqueryui.com[9838]: Caught exception: TypeError:
Cannot call method 'forEach' of undefined at Object.Image.get [as callback]
(/var/www/download.jqueryui.com/lib/themeroller.image.js:277:14) at
async.queue.q.process
diff --git a/grunt.js b/grunt.js
index d599496..18fd2c6 100644
--- a/grunt.js
+++ b/grunt.js
@@ -209,9 +209,7 @@ grunt.initConfig({
"dist/jquery-ui.js": "jquery-ui.js",
"dist/jquery-ui.min.js": "jquery-ui.min.js",
"dist/i18n/jquery-ui-i18n.js": "i18n/jquery-ui-i18n.js",
- "dist/i18n/jquery-ui-i18n.min.js": "i18n/jquery-ui-i18n.min.js",
- "dist/jquery-ui.css": "themes/base/jquery-ui.css",
--- pre/jquery-ui-1.10.2pre-cdn/MANIFEST 2013-03-14 15:34:36.248577126 -0300
+++ post/jquery-ui-1.10.2pre-cdn/MANIFEST 2013-03-14 15:31:49.808577048 -0300
@@ -71,218 +71,218 @@
themes/ui-darkness/images/ui-icons_a83300_256x240.png b77eaad0a9c1dae9f2bc94da5a96324b
themes/ui-darkness/images/ui-icons_4b8e0b_256x240.png 1928b2e808773f2982206d1b413f45b4
themes/ui-darkness/images/ui-icons_cccccc_256x240.png 5114be7185d1050c331ecd89c2868159
-themes/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png 49a00d926e4fce1457716f0403267803
-themes/ui-darkness/images/ui-bg_inset-soft_25_000000_1x100.png 52054b21c3fc90560652c4bf136d691a
-themes/ui-darkness/images/ui-bg_flat_30_cccccc_40x100.png 9b8795d1ea7435b0b3350d87ded0abed
+themes/ui-darkness/images/ui-bg_gloss-wave_25_333333_500x100.png 5f57683f5c54032abd0dab7d1b2bc1cf
Running "check-modules" task
>> Error: npm ERR! extraneous: zipstream@0.2.1 /var/www/download.jqueryui.com/node_modules/zipstream
>> npm ERR! extraneous: zipstream-ctalkington@0.3.3 /var/www/download.jqueryui.com/node_modules/zipstream-ctalkington
>> npm ERR! not ok code 0
Warning: Task "check-modules" failed. Use --force to continue.
Aborted due to warnings.
Exit Code: 3
npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer grunt-contrib-concat@0.1.3 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-csslint@0.1.0 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-cssmin@0.4.2 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-uglify@0.1.1 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-jshint@0.1.1 wants grunt@~0.4.0
npm ERR! peerinvalid Peer grunt-contrib-qunit@0.2.0 wants grunt@~0.4.0
npm ERR! extraneous: grunt-contrib-concat@0.1.3 /userdata/Documents/www/download.jqueryui.com/tmp/jquery-ui/node_modules/grunt-contrib-concat
@rxaviers
rxaviers / gist:5253603
Last active December 15, 2015 11:29
jQueryUI 1.10.2 download vs pre-release differences

The pre-release package is very similar to the development-bundle dir of the downloaded package, except the below. Follow a comparison between the (a) pre-release files and (b) the development-bundle of a downloaded package, along with my inline comments:

--- release	2013-03-27 08:40:21.911804564 -0300
+++ download	2013-03-27 08:19:11.221804772 -0300
@@ -7,6 +7,74 @@
 ./Gruntfile.js
 ./ui.position.jquery.json
 ./themes
commit fd8a2c71e95057ce425f9b5abb429d0c9085a5ee
Author: Rafael Xavier de Souza <rxaviers@gmail.com>
Date: Tue Apr 2 17:18:29 2013 -0300
If effect core is selected, include addClass, animate, hide, removeClass, show, switchClass, toggle, and toggleClass demos
diff --git a/lib/builder.js b/lib/builder.js
index f11a9c8..49a9b46 100644
--- a/lib/builder.js
+++ b/lib/builder.js