Skip to content

Commit

Permalink
Add color-modes.js to bootstrap-x.y.z-examples.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond committed Jun 12, 2023
1 parent bb92ec7 commit 423b977
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build/zip-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ const imgFiles = [
'bootstrap-logo.svg',
'bootstrap-logo-white.svg'
]
const staticJsFiles = [
'color-modes.js'
]

sh.config.fatal = true

Expand All @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 423b977

Please sign in to comment.