diff options
author | Helmut Granda <contact@helmutgranda.com> | 2018-09-25 18:55:35 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-09-26 15:53:44 +0300 |
commit | ebc220754bf8f6b1a34203c1d2864a8d156a01bb (patch) | |
tree | 7223271386f11a4a86e47e52e421d58434831a78 /build/banner.js | |
parent | d7f79b06dceebd6844ac323f7f99290fe36b45b0 (diff) |
Add license headers in js/dist files
By implementing the same approach of rollup.config.js
and replicate it in build-plugins.js, individual plugins
will display license headers.
Diffstat (limited to 'build/banner.js')
-rw-r--r-- | build/banner.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/banner.js b/build/banner.js new file mode 100644 index 0000000000..4c66589f09 --- /dev/null +++ b/build/banner.js @@ -0,0 +1,11 @@ +const path = require('path') +const pkg = require(path.resolve(__dirname, '../package.json')) +const year = new Date().getFullYear() + +module.exports = function () { + return `/*! + * Bootstrap v${pkg.version} (${pkg.homepage}) + * Copyright 2011-${year} ${pkg.author} + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */` +} |