1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

build/*.js: es6ify. (#24611)

This commit is contained in:
XhmikosR 2017-10-31 12:41:03 +02:00 committed by GitHub
parent 0570087ac3
commit 271f5071a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -39,9 +39,9 @@ module.exports = {
format: 'iife' format: 'iife'
}, },
name: 'bootstrap', name: 'bootstrap',
external: external, external,
globals: globals, globals,
plugins: plugins, plugins,
banner: `/*! banner: `/*!
* Bootstrap v${pkg.version} (${pkg.homepage}) * Bootstrap v${pkg.version} (${pkg.homepage})
* Copyright 2011-${year} ${pkg.author} * Copyright 2011-${year} ${pkg.author}

View file

@ -12,7 +12,7 @@
const childProcess = require('child_process') const childProcess = require('child_process')
const vnu = require('vnu-jar') const vnu = require('vnu-jar')
childProcess.exec('java -version', function (error) { childProcess.exec('java -version', (error) => {
if (error) { if (error) {
console.error('Skipping HTML lint test; Java is missing.') console.error('Skipping HTML lint test; Java is missing.')
return return

View file

@ -8,7 +8,7 @@ const buildPrefix = '_gh_pages/'
const workboxSWSrcPath = require.resolve('workbox-sw') const workboxSWSrcPath = require.resolve('workbox-sw')
const wbFileName = path.basename(workboxSWSrcPath) const wbFileName = path.basename(workboxSWSrcPath)
const workboxSWDestPath = buildPrefix + 'assets/js/vendor/' + wbFileName const workboxSWDestPath = `${buildPrefix}assets/js/vendor/${wbFileName}`
const workboxSWSrcMapPath = `${workboxSWSrcPath}.map` const workboxSWSrcMapPath = `${workboxSWSrcPath}.map`
const workboxSWDestMapPath = `${workboxSWDestPath}.map` const workboxSWDestMapPath = `${workboxSWDestPath}.map`