]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add `color-modes.js` to `bootstrap-x.y.z-examples.zip` (#38747)
authorJulien Déramond <juderamond@gmail.com>
Sun, 18 Jun 2023 14:52:31 +0000 (16:52 +0200)
committerGitHub <noreply@github.com>
Sun, 18 Jun 2023 14:52:31 +0000 (17:52 +0300)
build/zip-examples.js

index 613376a9758004a0b25add35e0009012eaf19ea3..7378c33c17692dd93a8eb6a7dfd4e0d0709b6195 100644 (file)
@@ -34,6 +34,9 @@ const imgFiles = [
   'bootstrap-logo.svg',
   'bootstrap-logo-white.svg'
 ]
+const staticJsFiles = [
+  'color-modes.js'
+]
 
 sh.config.fatal = true
 
@@ -52,7 +55,8 @@ sh.mkdir('-p', [
   distFolder,
   `${distFolder}/assets/brand/`,
   `${distFolder}/assets/dist/css/`,
-  `${distFolder}/assets/dist/js/`
+  `${distFolder}/assets/dist/js/`,
+  `${distFolder}/assets/js/`
 ])
 
 sh.cp('-Rf', `${docsDir}/examples/*`, distFolder)
@@ -69,6 +73,10 @@ for (const file of imgFiles) {
   sh.cp('-f', `${docsDir}/assets/brand/${file}`, `${distFolder}/assets/brand/`)
 }
 
+for (const file of staticJsFiles) {
+  sh.cp('-f', `${docsDir}/assets/js/${file}`, `${distFolder}/assets/js/`)
+}
+
 sh.rm(`${distFolder}/index.html`)
 
 // get all examples' HTML files