Skip to content

Instantly share code, notes, and snippets.

@rxaviers
Last active December 16, 2015 09:28
Show Gist options
  • Select an option

  • Save rxaviers/5412659 to your computer and use it in GitHub Desktop.

Select an option

Save rxaviers/5412659 to your computer and use it in GitHub Desktop.
jQueryUI DownloadBuilder metadata

Categories Manifest

categories = {
	core: {
		name: "UI Core",
		description: "A required dependency, contains basic functions and initializers.",
		order: 0
	},
	interaction: {
		name: "Interactions",
		description: "These add basic behaviors to any element and are used by many components below.",
		order: 1
	},
	widget: {
		name: "Widgets",
		description: "Full-featured UI Controls - each has a range of options and is fully themeable.",
		order: 2
	},
	effect: {
		name: "Effects",
		description: "A rich effect API and ready to use effects.",
		order: 3
	}
};

Files semantics Manifest

commonFiles = [
	"AUTHORS.txt",
	"Gruntfile.js",
	"jquery-*.js",
	"MIT-LICENSE.txt",
	"package.json",
	"README.md",
	"external/*",
	"demos/demos.css",
	"demos/images/*",
	"themes/base/jquery.ui.all.css",
	"themes/base/jquery.ui.base.css",
	"themes/base/jquery.ui.theme.css",
	"themes/base/images/*"
];
componentFiles = [
	"*jquery.json",
	"ui/**",
	"themes/base/jquery*"
];
demoFiles = [
	"demos/*/**"
];
docFiles = [
	"docs/*"
];
testFiles = [
	"tests/**",
	"ui/.jshintrc"
];
// this may go away after changing DB to actually `build` the bundles
// (instead of using the "dist/*" stuff)
virtualFiles = {
	commonFiles: {
		"dist/themes/base/minified/jquery.ui.theme.min.css": {
			strip: /^dist\//,
			dest: ""
		},
		"themes/base/images/*": {
			strip: /^themes\/base\//,
			dest: "themes/base/minified/"
		}
	},
	componentFiles: {
		"dist/minified/**/*": {
			strip: /^dist/,
			dest: "ui"
		},
		"dist/themes/base/minified/jquery*": {
			strip: /^dist\//,
			dest: ""
		}
	},
	themeFiles: {
		"dist/themes/base/minified/jquery*": {
			strip: /^dist\//,
			dest: ""
		}
	},
	etc: {
		"dist/i18n/jquery-ui-i18n.js": "ui/i18n/jquery-ui-i18n.js",
		"dist/i18n/jquery-ui-i18n.min.js": "ui/minified/i18n/jquery-ui-i18n.min.js",
		"dist/themes/base/minified/jquery.ui.theme.min.css": "themes/base/minified/jquery.ui.theme.min.css"
	}
};

Banner template:

/*! {{title}} - v{{version}} - {{date}}
* {{homepage}}{{#if fileNames}}
* Includes: {{fileNames}}{{/if}}{{#if customThemeUrl}}
* To view and modify this theme, visit http://jqueryui.com{{{customThemeUrl}}}{{/if}}
* Copyright {{year}} {{authorName}}; Licensed {{licenses}} */

Demo index template:

<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>jQuery UI Demos</title>
</head>
<body>

{{#if demos}}<ul>{{#each demos}}
	<li><a href="{{this}}/">{{this}}</a></li>{{/each}}
</ul>{{/if}}

</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment