Split large Sass modules by feature area
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 15s
This commit is contained in:
parent
bd6dd78e34
commit
c81f66c747
20 changed files with 3990 additions and 3948 deletions
|
|
@ -3,6 +3,10 @@ import { readFile } from "node:fs/promises";
|
|||
import { test } from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
async function readJoinedStyles(paths) {
|
||||
return (await Promise.all(paths.map((path) => readFile(path, "utf8")))).join("\n");
|
||||
}
|
||||
|
||||
test("style entrypoint and theme layers are wired", async () => {
|
||||
const styles = await readFile("website/src/styles/main.scss", "utf8");
|
||||
const styleNebula = await readFile("website/src/styles/_nebula.scss", "utf8");
|
||||
|
|
@ -11,7 +15,15 @@ test("style entrypoint and theme layers are wired", async () => {
|
|||
const styleMixins = await readFile("website/src/styles/_mixins.scss", "utf8");
|
||||
const styleShell = await readFile("website/src/styles/_shell.scss", "utf8");
|
||||
const styleCards = await readFile("website/src/styles/_cards.scss", "utf8");
|
||||
const styleHome = await readFile("website/src/styles/_home.scss", "utf8");
|
||||
const styleHome = await readJoinedStyles([
|
||||
"website/src/styles/_home.scss",
|
||||
"website/src/styles/home/_shared.scss",
|
||||
"website/src/styles/home/_onboarding.scss",
|
||||
"website/src/styles/home/_library.scss",
|
||||
"website/src/styles/home/_story.scss",
|
||||
"website/src/styles/home/_about.scss",
|
||||
"website/src/styles/home/_stats.scss"
|
||||
]);
|
||||
const styleToolboxesEntry = await readFile("website/src/styles/_toolboxes.scss", "utf8");
|
||||
const styleToolboxesCore = await readFile("website/src/styles/toolboxes/_core.scss", "utf8");
|
||||
const styleToolboxLayout = await readFile("website/src/styles/toolboxes/_layout.scss", "utf8");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue