diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-10-17 15:54:12 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-10-17 16:28:14 -0400 |
commit | e6b9b7cc02e3cce578b60fb320152f14d68344c0 (patch) | |
tree | 45335c0559852708a8f6b6c5e51e044f8c92b244 /Gruntfile.js | |
parent | d5732327078709c3680385c79a2106f263009f84 (diff) | |
download | jquery-ui-e6b9b7cc02e3cce578b60fb320152f14d68344c0.tar.gz jquery-ui-e6b9b7cc02e3cce578b60fb320152f14d68344c0.zip |
Build: Fix requirejs task and add CSS concat task back in
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 0c9bf4447..8a5affe01 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -24,6 +24,31 @@ var 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 minify = { options: { @@ -113,6 +138,18 @@ grunt.initConfig({ dist: "<%= pkg.name %>-<%= pkg.version %>" }, compare_size: compareFiles, + concat: { + css: { + options: { + banner: createBanner( cssFiles ), + stripBanners: { + block: true + } + }, + src: cssFiles, + dest: "dist/jquery-ui.css" + } + }, requirejs: { js: { options: { @@ -126,7 +163,7 @@ grunt.initConfig({ findNestedDependencies: true, skipModuleInsertion: true, exclude: [ "jquery" ], - include: expandFiles( [ "ui/**/*.js", "!ui/i18n/*" ] ), + include: expandFiles( [ "ui/**/*.js", "!ui/core.js", "!ui/i18n/*" ] ), out: "dist/jquery-ui.js", wrap: { start: createBanner( uiFiles ), |