-
Notifications
You must be signed in to change notification settings - Fork 73
Fix 207: Simplify jQuery UI 1.11 package #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
app/src/download.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use .toggle( boolean ) here, to avoid the duplicate selectors on the lines below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code only runs when the radio buttons are clicked, but it also needs to run on page load. For example, selecting 1.11, then customizing a theme, then coming back, 1.11 is selected but the input is still shown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Fixing...
|
I've tested this a bit with |
|
Yeah, we should probably keep that. It's really useful for quick testing and serves as a simple starting point for users. |
|
Alright. @rxaviers can you bring that back (the code is still there, anyway) and fix the other issue? I'll do another test run then, including building packages for release script and jqueryui.com. |
|
Another thing I just thought of is whether we should include |
|
We'll include structure + theme + concat. |
|
Fixed. Ready for a new review. |
|
To check that 1.11.0-beta.2 will list selectmenu, I update My test download for jquery-ui-1.11.0-beta.1.custom didn't include the Looking at the banners, the js and css files are looking good. Would be a lot easier to test that properly with the demo file. I also logged #216 while testing this, which seems even more useful with the separate structure css files. |
|
I completely forgot to add index.html back 😳, sorry. Here it is now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed the above paragraph to better describe what we currently do:
@@ -154,7 +50,7 @@
<h1>Welcome to jQuery UI!</h1>
<div class="ui-widget">
- <p>This page demonstrates the widgets you downloaded using the theme you selected in the download builder. We've included and linked to minified versions of <a href="js/{{jqueryCore}}">jQuery</a>, your personalized copy of <a href="js/jquery-ui-{{ui.version}}.custom.min.js">jQuery UI (js/jquery-ui-{{ui.version}}.custom.min.js)</a>, and <a href="css/{{theme}}/jquery-ui-{{ui.version}}.custom.min.css">css/{{theme}}/jquery-ui-{{ui.version}}.custom.min.css</a> which imports the entire jQuery UI CSS Framework. You can choose to link a subset of the CSS Framework depending on your needs. </p>
+ <p>This page demonstrates the widgets you downloaded using the theme you selected in the download builder. We've included and linked to a version of <a href="jquery.js">jQuery (jquery.js)</a>, your personalized <a href="jquery-ui.js">jQuery UI (jquery-ui.js)</a>, and the entire <a href="jquery-ui.css">jQuery UI CSS Framework (jquery-ui.css)</a>.</p>
<p>You've downloaded components and a theme that are compatible with jQuery 1.6+. Please make sure you are using jQuery 1.6+ in your production environment.</p>
</div>
Interesting. Mine did included it just fine. A couple of differences I used: |
|
I tried again with The only thing missing is a selectmenu demo in index.html. Everything else looks good. |
|
I've fixed the missing demo. Could leave that commit as-is or squash it into something else. Will do some more testing with jqueryui.com and the release script... |
|
Found an unrelated issue, reported in #218. |
|
My local installation of I also tried to test this as part of the release script. In my standalone script, building the CDN package just stopped without any error. It took a while to try the same with the regular script, but that failed with the same issue, whatever it actually is. @rxaviers can you try to debug this? Go to your var shell = require( "shelljs" );
var Release = {
exec: shell.exec,
abort: function( msg ) {
console.error( msg );
process.exit( 1 );
},
define: function( definitions ) {
for ( var key in definitions ) {
Release[ key ] = definitions[ key ];
}
},
newVersion: "1.11.0-beta2"
};
var script = require("./release");
script( Release );
Release.generateArtifacts(function() {
console.log( "Done generating artifacts", arguments );
});Link DB ( When I tried to track this down I found that it gets until here: https://github.com/jquery/download.jqueryui.com/blob/fix-207-simplify-package/lib/themes-packer.js#L64
|
|
@jzaefferer thanks for extensively testing this branch and for finding (and adding) the missing selectmenu demo. As for the release script, it won't be able to use the simpler builder to build non-simpler CDN packages. We need discuss how we want CDN packages to be. Is it going to reflect our simpler download package changes? |
|
@jzaefferer, d3a75eb reverts the pieces of builder 1.11 that can't go away, because it's used by ThemePacker (used by cdn package). Now, release script should work just fine. |
|
I've created a separate ticket #219, so we create unit tests for ThemePacker. |
|
Updated description to include the .structure, .theme, and index.html files. |
|
Tested this again, with the local server, release script and deployment to local jqueryui.com. My local site isn't working that well (I can't test WordPress |
|
All squashed |
|
Looks good. |
Closes #207.
Produces the following jQuery UI 1.11 download package: