]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Use license object instead of licenses array 12605/head
authorZlatan Vasović <legospace9876@gmail.com>
Thu, 6 Feb 2014 10:37:39 +0000 (11:37 +0100)
committerZlatan Vasović <legospace9876@gmail.com>
Thu, 6 Feb 2014 10:37:39 +0000 (11:37 +0100)
Gruntfile.js
package.json

index acef4100a5314fdaaef775c0ad8181284612b5c9..8fa1bbe7dbca09287d2e2d455780d810d0d8188c 100644 (file)
@@ -30,7 +30,7 @@ module.exports = function (grunt) {
     banner: '/*!\n' +
             ' * Bootstrap v<%= pkg.version %> (<%= pkg.homepage %>)\n' +
             ' * Copyright 2011-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' +
-            ' * Licensed under <%= _.pluck(pkg.licenses, "type") %> (<%= _.pluck(pkg.licenses, "url") %>)\n' +
+            ' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' +
             ' */\n',
     jqueryCheck: 'if (typeof jQuery === \'undefined\') { throw new Error(\'Bootstrap\\\'s JavaScript requires jQuery\') }\n\n',
 
index b93ae15babadfd31923c015e0ca87ecd152ecd13..8e6c434941fda3aa1a984172c704af08bad599dc 100644 (file)
   "bugs": {
     "url": "https://github.com/twbs/bootstrap/issues"
   },
-  "licenses": [
-    {
-      "type": "MIT",
-      "url": "https://github.com/twbs/bootstrap/blob/master/LICENSE"
-    }
-  ],
+  "license": {
+    "type": "MIT",
+    "url": "https://github.com/twbs/bootstrap/blob/master/LICENSE"
+  },
   "devDependencies": {
     "browserstack-runner": "~0.1.0",
     "btoa": "~1.1.1",