mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Build: Fix requirejs task and add CSS concat task back in
This commit is contained in:
parent
d573232707
commit
e6b9b7cc02
39
Gruntfile.js
39
Gruntfile.js
@ -24,6 +24,31 @@ var
|
|||||||
|
|
||||||
allI18nFiles = expandFiles( "ui/i18n/*.js" ),
|
allI18nFiles = expandFiles( "ui/i18n/*.js" ),
|
||||||
|
|
||||||
|
cssFiles = [
|
||||||
|
"core",
|
||||||
|
"accordion",
|
||||||
|
"autocomplete",
|
||||||
|
"button",
|
||||||
|
"checkboxradio",
|
||||||
|
"controlgroup",
|
||||||
|
"datepicker",
|
||||||
|
"dialog",
|
||||||
|
"draggable",
|
||||||
|
"menu",
|
||||||
|
"progressbar",
|
||||||
|
"resizable",
|
||||||
|
"selectable",
|
||||||
|
"selectmenu",
|
||||||
|
"sortable",
|
||||||
|
"slider",
|
||||||
|
"spinner",
|
||||||
|
"tabs",
|
||||||
|
"tooltip",
|
||||||
|
"theme"
|
||||||
|
].map(function( component ) {
|
||||||
|
return "themes/base/" + component + ".css";
|
||||||
|
}),
|
||||||
|
|
||||||
// minified files
|
// minified files
|
||||||
minify = {
|
minify = {
|
||||||
options: {
|
options: {
|
||||||
@ -113,6 +138,18 @@ grunt.initConfig({
|
|||||||
dist: "<%= pkg.name %>-<%= pkg.version %>"
|
dist: "<%= pkg.name %>-<%= pkg.version %>"
|
||||||
},
|
},
|
||||||
compare_size: compareFiles,
|
compare_size: compareFiles,
|
||||||
|
concat: {
|
||||||
|
css: {
|
||||||
|
options: {
|
||||||
|
banner: createBanner( cssFiles ),
|
||||||
|
stripBanners: {
|
||||||
|
block: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
src: cssFiles,
|
||||||
|
dest: "dist/jquery-ui.css"
|
||||||
|
}
|
||||||
|
},
|
||||||
requirejs: {
|
requirejs: {
|
||||||
js: {
|
js: {
|
||||||
options: {
|
options: {
|
||||||
@ -126,7 +163,7 @@ grunt.initConfig({
|
|||||||
findNestedDependencies: true,
|
findNestedDependencies: true,
|
||||||
skipModuleInsertion: true,
|
skipModuleInsertion: true,
|
||||||
exclude: [ "jquery" ],
|
exclude: [ "jquery" ],
|
||||||
include: expandFiles( [ "ui/**/*.js", "!ui/i18n/*" ] ),
|
include: expandFiles( [ "ui/**/*.js", "!ui/core.js", "!ui/i18n/*" ] ),
|
||||||
out: "dist/jquery-ui.js",
|
out: "dist/jquery-ui.js",
|
||||||
wrap: {
|
wrap: {
|
||||||
start: createBanner( uiFiles ),
|
start: createBanner( uiFiles ),
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
"grunt": "0.4.2",
|
"grunt": "0.4.2",
|
||||||
"grunt-bowercopy": "1.1.0",
|
"grunt-bowercopy": "1.1.0",
|
||||||
"grunt-compare-size": "0.4.0",
|
"grunt-compare-size": "0.4.0",
|
||||||
|
"grunt-contrib-concat": "0.5.1",
|
||||||
"grunt-contrib-csslint": "0.2.0",
|
"grunt-contrib-csslint": "0.2.0",
|
||||||
"grunt-contrib-jshint": "0.7.1",
|
"grunt-contrib-jshint": "0.7.1",
|
||||||
"grunt-contrib-qunit": "0.6.0",
|
"grunt-contrib-qunit": "0.6.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user