Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-10-29 10:38:35 +0300
committerXhmikosR <xhmikosr@gmail.com>2022-01-29 14:25:30 +0300
commit62d86c07f81dfae632742dbf62633e767bac8edd (patch)
tree0632411740f52351da50f74a44b9a4ecb4d923c0 /build
parent3ac4451d47c41c3153d554eb7b84f558c137995e (diff)
Rename variables
Diffstat (limited to 'build')
-rw-r--r--build/build-plugins.js6
-rw-r--r--build/generate-sri.js6
-rw-r--r--build/rollup.config.js6
3 files changed, 9 insertions, 9 deletions
diff --git a/build/build-plugins.js b/build/build-plugins.js
index 401c676017..8fa0e0b1f3 100644
--- a/build/build-plugins.js
+++ b/build/build-plugins.js
@@ -15,8 +15,8 @@ const globby = require('globby')
const { babel } = require('@rollup/plugin-babel')
const banner = require('./banner.js')
-const srcPath = path.resolve(__dirname, '../js/src/').replace(/\\/g, '/')
-const jsFiles = globby.sync(srcPath + '/**/*.js')
+const sourcePath = path.resolve(__dirname, '../js/src/').replace(/\\/g, '/')
+const jsFiles = globby.sync(sourcePath + '/**/*.js')
// Array which holds the resolved plugins
const resolvedPlugins = []
@@ -31,7 +31,7 @@ for (const file of jsFiles) {
dist: file.replace('src', 'dist'),
fileName: path.basename(file),
className: filenameToEntity(path.basename(file))
- // safeClassName: filenameToEntity(path.relative(srcPath, file))
+ // safeClassName: filenameToEntity(path.relative(sourcePath, file))
})
}
diff --git a/build/generate-sri.js b/build/generate-sri.js
index 18de4f4849..cde818e090 100644
--- a/build/generate-sri.js
+++ b/build/generate-sri.js
@@ -48,9 +48,9 @@ const files = [
]
for (const file of files) {
- fs.readFile(file.file, 'utf8', (err, data) => {
- if (err) {
- throw err
+ fs.readFile(file.file, 'utf8', (error, data) => {
+ if (error) {
+ throw error
}
const algo = 'sha384'
diff --git a/build/rollup.config.js b/build/rollup.config.js
index c00438de25..2d2920fd50 100644
--- a/build/rollup.config.js
+++ b/build/rollup.config.js
@@ -9,7 +9,7 @@ const banner = require('./banner.js')
const BUNDLE = process.env.BUNDLE === 'true'
const ESM = process.env.ESM === 'true'
-let fileDest = `bootstrap${ESM ? '.esm' : ''}`
+let fileDestination = `bootstrap${ESM ? '.esm' : ''}`
const external = ['@popperjs/core']
const plugins = [
babel({
@@ -24,7 +24,7 @@ const globals = {
}
if (BUNDLE) {
- fileDest += '.bundle'
+ fileDestination += '.bundle'
// Remove last entry in external array to bundle Popper
external.pop()
delete globals['@popperjs/core']
@@ -41,7 +41,7 @@ const rollupConfig = {
input: path.resolve(__dirname, `../js/index.${ESM ? 'esm' : 'umd'}.js`),
output: {
banner,
- file: path.resolve(__dirname, `../dist/js/${fileDest}.js`),
+ file: path.resolve(__dirname, `../dist/js/${fileDestination}.js`),
format: ESM ? 'esm' : 'umd',
globals,
generatedCode: 'es2015'