1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-18 19:31:35 +02:00

Use rollup to add our copyright instead of a custom script

This commit is contained in:
Johann-S
2017-08-31 19:00:51 +02:00
parent 9936bf5944
commit c3fe53cd42
3 changed files with 9 additions and 21 deletions

View File

@@ -1,7 +1,9 @@
const path = require('path')
const babel = require('rollup-plugin-babel')
const resolve = require('rollup-plugin-node-resolve')
const pkg = require(path.resolve(__dirname, '../package.json'))
const BUNDLE = process.env.BUNDLE === 'true'
const year = new Date().getFullYear()
var fileDest = 'bootstrap.js'
var external = ['jquery', 'popper.js']
@@ -39,5 +41,11 @@ module.exports = {
name: 'bootstrap',
external: external,
globals: globals,
plugins: plugins
plugins: plugins,
banner: `/*!
* Bootstrap v${pkg.version} (${pkg.homepage})
* Copyright 2011-${year} ${pkg.author}
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
`
}