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:
@@ -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
|
||||
|
Reference in New Issue
Block a user