1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 17:11:48 +02:00

More minor build tweaks and docs updates.

This commit is contained in:
Bardi Harborow
2017-04-20 20:33:51 +10:00
parent fb3303f5dd
commit 2906b612d5
10 changed files with 38 additions and 40 deletions

View File

@@ -1,7 +1,9 @@
const fs = require('fs')
fs.readFile('package.json', (err, data) => {
if (err) throw err
if (err) {
throw err
}
const pkg = JSON.parse(data)
const year = new Date().getFullYear()
@@ -9,7 +11,7 @@ fs.readFile('package.json', (err, data) => {
const stampTop =
`/*!
* Bootstrap v${pkg.version} (${pkg.homepage})
* Copyright 2011-${year} ${pkg.author}
* Copyright 2011-${year} ${pkg.author}
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
@@ -32,9 +34,8 @@ if (typeof jQuery === 'undefined') {
process.stdout.write(stampTop)
process.stdin.on('end', () => {
process.stdout.write(stampEnd);
});
process.stdout.write(stampEnd)
})
process.stdin.pipe(process.stdout)
})