diff options
| author | Julien Déramond <[email protected]> | 2023-06-18 16:52:31 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-18 17:52:31 +0300 |
| commit | 5036f70e1c80cebb270aca8c1b422f8d4d4bd47f (patch) | |
| tree | dd27651bb0b3879f5bd33b06541f4f5981edca8c /build | |
| parent | 2f617215755b066904248525a8c56ea425dde871 (diff) | |
| download | bootstrap-5036f70e1c80cebb270aca8c1b422f8d4d4bd47f.tar.xz bootstrap-5036f70e1c80cebb270aca8c1b422f8d4d4bd47f.zip | |
Add `color-modes.js` to `bootstrap-x.y.z-examples.zip` (#38747)
Diffstat (limited to 'build')
| -rw-r--r-- | build/zip-examples.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build/zip-examples.js b/build/zip-examples.js index 613376a97..7378c33c1 100644 --- a/build/zip-examples.js +++ b/build/zip-examples.js @@ -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 |
