-
Notifications
You must be signed in to change notification settings - Fork 73
All: Adapt to latest structural changes in 1.12 #274
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| language: node_js | ||
| node_js: | ||
| - "0.12" | ||
| before_script: | ||
| - sudo apt-get install xsltproc | ||
| - npm install -g grunt-cli | ||
| - grunt prepare |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -208,11 +208,23 @@ | |
| if ( !thisName || !thisDependencies ) { | ||
| return; | ||
| } | ||
| thisDependencies = thisDependencies.split( "," ); | ||
|
|
||
| // Adjust path prefixes to match names | ||
| var path = thisName.match( /^(.+)\// ); | ||
| thisDependencies = thisDependencies.split( "," ).map(function( dependency ) { | ||
| if ( !path ) { | ||
| return dependency; | ||
| } | ||
| if ( /\.\.\//.test( dependency ) ) { | ||
| return dependency.replace( /^.+\//, "" ); | ||
| } | ||
| return path[ 1 ] + "/" + dependency; | ||
| }); | ||
|
|
||
| dependencies[ thisName ] = $(); | ||
| $.each( thisDependencies, function() { | ||
| var dependecy = this, | ||
| dependecyElem = $( "[name=" + this + "]" ); | ||
| dependecyElem = $( ".components-area input[type=checkbox][name='" + this + "']" ); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This ended up selecting the version radio input, instead of the "version" module (which we don't show). |
||
| dependencies[ thisName ] = dependencies[ thisName ].add( dependecyElem ); | ||
| if ( !dependents[ dependecy ] ) { | ||
| dependents[ dependecy ] = $(); | ||
|
|
@@ -318,7 +330,7 @@ | |
| }); | ||
|
|
||
| if ( "version" in changed ) { | ||
| versionElement = $( "#download-builder [name=version][value=\"" + model.get( "version" ) + "\"]" ); | ||
| versionElement = $( "#download-builder input[type=radio][name=version][value=\"" + model.get( "version" ) + "\"]" ); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Made this selector more specific as well. |
||
| versionElement.trigger( "click" ); | ||
| themesLoad.done(function() { | ||
| $( ".advanced-settings .folder-name-area" ).toggle( !versionElement.data( "no-theme-folder" ) ); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,10 @@ | ||
| { | ||
| "jqueryUi": [ | ||
| { | ||
| "version": "origin/master", | ||
| "dependsOn": "jQuery1.7+", | ||
| "label": "preview" | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm considering deploying this live, replacing version and label once we've got the beta out. |
||
| }, | ||
| { | ||
| "version": "1.11.4", | ||
| "dependsOn": "jQuery1.6+", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,12 @@ | ||
| var categories, orderedComponents, | ||
| _ = require( "underscore" ), | ||
| fs = require( "fs" ), | ||
| glob = require( "./util" ).glob, | ||
| path = require( "path" ); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was unused. |
||
|
|
||
| categories = { | ||
| "UI Core": { | ||
| name: "UI Core", | ||
| description: "A required dependency, contains basic functions and initializers.", | ||
| "Core": { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be addressed in UI itself, improving the categories we use for "Core" files. Currently we have both "UI Core" and "Core", which makes no sense. We may want to create a "Utilities" category. |
||
| name: "Core", | ||
| description: "Various utilities and helpers", | ||
| order: 0 | ||
| }, | ||
| "Interactions": { | ||
|
|
@@ -68,9 +67,16 @@ function get( data, key ) { | |
| return match && match[ 1 ]; | ||
| } | ||
|
|
||
| function trim( string ) { | ||
| return string.trim(); | ||
| } | ||
|
|
||
| function getDependencies( data ) { | ||
| var match = data.match( /define\((\ ?\[[\s\S]*?\]\ ?), factory \);/ ); | ||
| return match && JSON.parse( match[ 1 ] ) || []; | ||
| var match = data.match( /define\(\[([^\]]*?)\]/ ); | ||
| if ( match === null ) { | ||
| return []; | ||
| } | ||
| return match[ 1 ].replace( /\/\/.+/g, "" ).replace( /"/, "" ).split( "," ).map( trim ); | ||
| } | ||
|
|
||
| function JqueryUiManifests_1_12_0() { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ function JqueryUiFiles_1_12_0( jqueryUi ) { | |
| glob( jqueryUi.path + "!(node_modules|build)" ).filter( noDirectory ).map( stripJqueryUiPath ).map( readFile ); | ||
| glob( jqueryUi.path + "!(node_modules|build)/**" ).filter( noDirectory ).map( stripJqueryUiPath ).map( readFile ); | ||
|
|
||
| this.componentFiles = Files( glob( jqueryUi.path + "ui/*.js" ).map( stripJqueryUiPath ).map( readFile ) ); | ||
| this.componentFiles = Files( glob( jqueryUi.path + "ui/**/*.js" ).map( stripJqueryUiPath ).map( readFile ) ); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We've got subfolders! |
||
|
|
||
| // Convert {path:<path>, data:<data>} into {path: <data>}. | ||
| files = this.cache; | ||
|
|
||
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 is a questionable amount of processing, but seems solid enough.