2018-11-28 11:03:28 +00:00
|
|
|
'use strict'
|
|
|
|
|
2018-09-25 15:55:35 +00:00
|
|
|
const path = require('path')
|
|
|
|
const pkg = require(path.resolve(__dirname, '../package.json'))
|
|
|
|
const year = new Date().getFullYear()
|
|
|
|
|
2018-09-26 07:54:46 +00:00
|
|
|
function getBanner(pluginFilename) {
|
2018-09-25 15:55:35 +00:00
|
|
|
return `/*!
|
2018-09-26 07:54:46 +00:00
|
|
|
* Bootstrap${pluginFilename ? ` ${pluginFilename}` : ''} v${pkg.version} (${pkg.homepage})
|
2018-09-25 15:55:35 +00:00
|
|
|
* Copyright 2011-${year} ${pkg.author}
|
|
|
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
|
|
|
*/`
|
|
|
|
}
|
2018-09-26 07:54:46 +00:00
|
|
|
|
|
|
|
module.exports = getBanner
|