WIP Re-case internal and experiment theme folders

Co-Authored-By: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
Nate Butler 2022-10-21 13:04:24 -04:00
parent 99e6ecc466
commit b015761131
5 changed files with 7 additions and 6 deletions

4
.gitignore vendored
View file

@ -7,6 +7,6 @@
/crates/collab/static/styles.css /crates/collab/static/styles.css
/vendor/bin /vendor/bin
/assets/themes/*.json /assets/themes/*.json
/assets/themes/internal/*.json /assets/themes/Internal-case-breaker/*.json
/assets/themes/experiments/*.json /assets/themes/Experiments-case-breaker/*.json
**/venv **/venv

View file

@ -28,14 +28,14 @@ impl ThemeRegistry {
if !internal { if !internal {
dirs = dirs dirs = dirs
.into_iter() .into_iter()
.filter(|path| !path.starts_with("themes/internal")) .filter(|path| !path.starts_with("themes/Internal"))
.collect() .collect()
} }
if !experiments { if !experiments {
dirs = dirs dirs = dirs
.into_iter() .into_iter()
.filter(|path| !path.starts_with("themes/experiments")) .filter(|path| !path.starts_with("themes/Experiments"))
.collect() .collect()
} }

View file

@ -10,8 +10,9 @@ import snakeCase from "./utils/snakeCase";
import { ColorScheme } from "./themes/common/colorScheme"; import { ColorScheme } from "./themes/common/colorScheme";
const themeDirectory = `${__dirname}/../../assets/themes`; const themeDirectory = `${__dirname}/../../assets/themes`;
const internalDirectory = `${themeDirectory}/internal`; const internalDirectory = `${themeDirectory}/Internal`;
const experimentsDirectory = `${themeDirectory}/experiments`; const experimentsDirectory = `${themeDirectory}/Experiments`;
const tempDirectory = fs.mkdtempSync(path.join(tmpdir(), "build-themes")); const tempDirectory = fs.mkdtempSync(path.join(tmpdir(), "build-themes"));
// Clear existing themes // Clear existing themes