]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
build/*.js: es6ify. (#24611)
authorXhmikosR <xhmikosr@gmail.com>
Tue, 31 Oct 2017 10:41:03 +0000 (12:41 +0200)
committerGitHub <noreply@github.com>
Tue, 31 Oct 2017 10:41:03 +0000 (12:41 +0200)
build/rollup.config.js
build/vnu-jar.js
build/workbox.js

index f9a4706160987ae34d2b13903baa7e6b83af1195..44ffac71002d2b7460d8d58bdfc412784931bc47 100644 (file)
@@ -39,9 +39,9 @@ module.exports = {
     format: 'iife'
   },
   name: 'bootstrap',
-  external: external,
-  globals: globals,
-  plugins: plugins,
+  external,
+  globals,
+  plugins,
   banner: `/*!
   * Bootstrap v${pkg.version} (${pkg.homepage})
   * Copyright 2011-${year} ${pkg.author}
index f69d80141184606a786c4d376678a67b2a9345df..6f24340254d85725345d0dd571500fa1e162c87e 100644 (file)
@@ -12,7 +12,7 @@
 const childProcess = require('child_process')
 const vnu = require('vnu-jar')
 
-childProcess.exec('java -version', function (error) {
+childProcess.exec('java -version', (error) => {
   if (error) {
     console.error('Skipping HTML lint test; Java is missing.')
     return
index bae5b35ccb5f0d725cb0edc78c7cc63c0ba7a27f..17129ec8c3deab5142cf3f8503c0e2ecf4c7e1aa 100644 (file)
@@ -8,7 +8,7 @@ const buildPrefix = '_gh_pages/'
 
 const workboxSWSrcPath = require.resolve('workbox-sw')
 const wbFileName = path.basename(workboxSWSrcPath)
-const workboxSWDestPath = buildPrefix + 'assets/js/vendor/' + wbFileName
+const workboxSWDestPath = `${buildPrefix}assets/js/vendor/${wbFileName}`
 const workboxSWSrcMapPath = `${workboxSWSrcPath}.map`
 const workboxSWDestMapPath = `${workboxSWDestPath}.map`