Add `color-modes.js` to `bootstrap-x.y.z-examples.zip` (#38747)

This commit is contained in:
Julien Déramond 2023-06-18 16:52:31 +02:00 committed by GitHub
parent 2f61721575
commit 5036f70e1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -34,6 +34,9 @@ const imgFiles = [
'bootstrap-logo.svg', 'bootstrap-logo.svg',
'bootstrap-logo-white.svg' 'bootstrap-logo-white.svg'
] ]
const staticJsFiles = [
'color-modes.js'
]
sh.config.fatal = true sh.config.fatal = true
@ -52,7 +55,8 @@ sh.mkdir('-p', [
distFolder, distFolder,
`${distFolder}/assets/brand/`, `${distFolder}/assets/brand/`,
`${distFolder}/assets/dist/css/`, `${distFolder}/assets/dist/css/`,
`${distFolder}/assets/dist/js/` `${distFolder}/assets/dist/js/`,
`${distFolder}/assets/js/`
]) ])
sh.cp('-Rf', `${docsDir}/examples/*`, distFolder) 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/`) 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`) sh.rm(`${distFolder}/index.html`)
// get all examples' HTML files // get all examples' HTML files