1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05: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