Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pkg.toJson(function( error, files ) {
if (error) {
return test.done( error );
}
commonFilesCheck( test, files );
themeFilesCheck( test, files, true );
// 11 components selected, 7 have CSS, plus core, theme,
// checkboxradio, controlgroup (tmp button dependencies)
var includes = files[ "jquery-ui.min.css" ].match( /\* Includes: (.+)/ );
test.equal( includes[ 1 ].split( "," ).length, 11, someWidgets2 + " -> " + includes[ 1 ] );
test.done();
});
},
function Package( files, runtime ) {
this.themeGallery = ThemeGallery( runtime.jqueryUi );
if ( !runtime.themeVars ) {
runtime.themeVars = this.themeGallery[ 0 ].vars;
}
Package1_12.apply( this, arguments );
}
extend( Package.prototype, {
"AUTHORS.txt": Package1_12.prototype[ "AUTHORS.txt" ],
"LICENSE.txt": Package1_12.prototype[ "LICENSE.txt" ],
"images": Package1_12.prototype[ "images" ],
"jquery-ui.css": Package1_12.prototype[ "jquery-ui.css" ],
"jquery-ui.structure.css": Package1_12.prototype[ "jquery-ui.structure.css" ],
"jquery-ui.theme.css": Package1_12.prototype[ "jquery-ui.theme.css" ],
"jquery-ui.min.css": Package1_12.prototype[ "jquery-ui.min.css" ],
"jquery-ui.structure.min.css": Package1_12.prototype[ "jquery-ui.structure.min.css" ],
"jquery-ui.theme.min.css": Package1_12.prototype[ "jquery-ui.theme.min.css" ],
"themes": function( callback ) {
var files = {};
var structureCssFileNames = this.structureCssFileNames;
var themeCssFileNames = this.themeCssFileNames;
var pkgJson = this.pkgJson;
var themeGallery = this.themeGallery;
this.structureCss.promise.then( function( structureCss ) {
async.mapSeries( themeGallery, function( theme, callback ) {
var themeCss = theme.css();
files[path.join(theme.folderName(), "theme.css")] = themeCss;
var _banner = banner( pkgJson, structureCssFileNames.concat( themeCssFileNames ), {