1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-24 06:03:10 +02:00

Include the plugin's filename in the license header.

This commit is contained in:
XhmikosR
2018-09-26 10:54:46 +03:00
parent ebc220754b
commit 59197765f4
2 changed files with 9 additions and 5 deletions

View File

@@ -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