Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Commit d182e35

Browse files
committed
add workaround for missing Bootswatch theme file
1 parent 27d6ebe commit d182e35

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

gulpfile.js

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,27 @@ gulp.task('swatch', function(){
415415
less_dir = 'node_modules/bootstrap/less/';
416416

417417
// Get Bootswatch themes
418-
var bootswatch = require('./node_modules/bootswatch/api/3.json');
419-
bootswatch.themes.forEach(function(entry) {
420-
themes.push(entry.name);
418+
var bootswatch = [
419+
"Cerulean",
420+
"Cosmo",
421+
"Cyborg",
422+
"Darkly",
423+
"Flatly",
424+
"Journal",
425+
"Lumen",
426+
"Paper",
427+
"Readable",
428+
"Sandstone",
429+
"Simplex",
430+
"Slate",
431+
"Spacelab",
432+
"Superhero",
433+
"United",
434+
"Yeti"
435+
];
436+
437+
bootswatch.forEach(function(entry) {
438+
themes.push(entry);
421439
});
422440

423441
themes.sort();

0 commit comments

Comments
 (0)