diff options
| author | Johann-S <[email protected]> | 2017-08-31 19:00:51 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2017-08-31 19:12:32 +0200 |
| commit | c3fe53cd42d8055b596f287e37497bc65d52eecf (patch) | |
| tree | 8b0aaf3b8fba6b38559cdeda3cb8652b183aacf7 /build/stamp.js | |
| parent | 9936bf59444c402b653f28449529eab83794e911 (diff) | |
| download | bootstrap-c3fe53cd42d8055b596f287e37497bc65d52eecf.tar.xz bootstrap-c3fe53cd42d8055b596f287e37497bc65d52eecf.zip | |
Use rollup to add our copyright instead of a custom script
Diffstat (limited to 'build/stamp.js')
| -rw-r--r-- | build/stamp.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/build/stamp.js b/build/stamp.js deleted file mode 100644 index 2135c60a3..000000000 --- a/build/stamp.js +++ /dev/null @@ -1,19 +0,0 @@ -const fs = require('fs') -const path = require('path') -const pkg = require(path.resolve(__dirname, '../package.json')) -const year = new Date().getFullYear() - -const pathBoostrap = path.resolve(__dirname, '../dist/js/bootstrap.js') -const pathBootstrapBundle = path.resolve(__dirname, '../dist/js/bootstrap.bundle.js') -const contentFile = fs.readFileSync(pathBoostrap, { encoding: 'UTF8' }) -const contentBundleFile = fs.readFileSync(pathBootstrapBundle, { encoding: 'UTF8' }) - -const stamp = -`/*! - * Bootstrap v${pkg.version} (${pkg.homepage}) - * Copyright 2011-${year} ${pkg.author} - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -` -fs.writeFileSync(pathBoostrap, `${stamp}${contentFile}`, { encoding: 'UTF8' }) -fs.writeFileSync(pathBootstrapBundle, `${stamp}${contentBundleFile}`, { encoding: 'UTF8' }) |
