Closed
Description
jQuery UI 1.12 has adopted the Mobile way to declare its CSS dependencies using JS comments. Given this step, we are able to super generalize builder. For example, the following JSON could be used as a configuration-guide on how to build the package.
Maintenance/changes for the package content could ideally be adjusted by fixing the configuration JSON instead of changing the download builder (the builder code).
{
"external/jquery.js": {
"bower": {
"endpoint": "jquery@<version>",
"file": "dist/jquery.js"
}
},
"images": {
"themeroller-images": {
"vars": "{{vars}}"
}
},
"index.html": {
"template": xxx
},
"jquery-ui.css": {
"concat": [
"bundle://jquery-ui.structure.css",
"bundle://jquery-ui.theme.css"
]
},
"jquery-ui.js": {
"amd": {
"include": "{{components}}"
}
},
"jquery-ui.structure.css": {
"jquery-css": {
"selector": "structure",
"include": "{{components}}"
}
},
"jquery-ui.theme.css": {
"themeroller": {
"base": {
"jquery-css": {
"selector": "theme",
"include": "{{components}}"
}
},
"vars": "{{vars}}"
}
},
"jquery-ui.min.css": {
"sqwish": [
"bundle://jquery-ui.css"
]
},
"jquery-ui.min.js": {
"uglify": [
"bundle://jquery-ui.css"
]
},
"jquery-ui.structure.min.css": {
"sqwish": [
"bundle://jquery-ui.structure.css"
]
},
"jquery-ui.theme.min.css": {
"sqwish": [
"bundle://jquery-ui.theme.css"
]
},
}
The idea is having a builder API similar to Builder( configuration, runtime );
. For example:
Builder( configurationAbove, {
components: [ "core", "widget", ... ]
vars: {
ffDefault: "Arial,Helvetica,sans-serif",
fsDefault: "1em",
...
}
});
- Need to polish this idea.
Metadata
Metadata
Assignees
Labels
No labels