Commit a317f67c authored by Chris Rebert's avatar Chris Rebert
Browse files

re-integrate #8560 using @fat's code from the comment on #8614

parent 292d8d68
Showing with 5 additions and 2 deletions
+5 -2
...@@ -9,13 +9,14 @@ module.exports = function(grunt) { ...@@ -9,13 +9,14 @@ module.exports = function(grunt) {
'* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' + '* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
'* <%= _.pluck(pkg.licenses, "url").join(", ") %>\n' + '* <%= _.pluck(pkg.licenses, "url").join(", ") %>\n' +
'*/\n', '*/\n',
jqueryCheck: 'if (!jQuery) { throw new Error(\"Bootstrap requires jQuery\") }\n\n',
// Task configuration. // Task configuration.
clean: { clean: {
dist: ['dist'] dist: ['dist']
}, },
concat: { concat: {
options: { options: {
banner: '<%= banner %>', banner: '<%= banner %><%= jqueryCheck %>',
stripBanners: false stripBanners: false
}, },
bootstrap: { bootstrap: {
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
* Copyright 2013 Twitter Inc. * Copyright 2013 Twitter Inc.
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
*/ */
if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
/* ======================================================================== /* ========================================================================
* Bootstrap: transition.js v3.0.0 * Bootstrap: transition.js v3.0.0
* http://twbs.github.com/bootstrap/javascript.html#transitions * http://twbs.github.com/bootstrap/javascript.html#transitions
......
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment