Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2018-09-26 10:54:46 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-09-26 15:53:44 +0300
commit59197765f4f50b5ad8cbeb64be6f84fe45d3e5ee (patch)
treec246fafbc7983a711c78889be3754ed168d04dd9 /build/banner.js
parentebc220754bf8f6b1a34203c1d2864a8d156a01bb (diff)
Include the plugin's filename in the license header.
Diffstat (limited to 'build/banner.js')
-rw-r--r--build/banner.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/build/banner.js b/build/banner.js
index 4c66589f09..93935bfcb9 100644
--- a/build/banner.js
+++ b/build/banner.js
@@ -2,10 +2,12 @@ const path = require('path')
const pkg = require(path.resolve(__dirname, '../package.json'))
const year = new Date().getFullYear()
-module.exports = function () {
+function getBanner(pluginFilename) {
return `/*!
- * Bootstrap v${pkg.version} (${pkg.homepage})
+ * Bootstrap${pluginFilename ? ` ${pluginFilename}` : ''} v${pkg.version} (${pkg.homepage})
* Copyright 2011-${year} ${pkg.author}
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/`
}
+
+module.exports = getBanner