8000 feat: post-conditions by manuel3108 · Pull Request #388 · svelte-add/svelte-add · GitHub
[go: up one dir, main page]

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

feat: post-conditions #388

Merged
merged 8 commits into from
Jun 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improve test
  • Loading branch information
manuel3108 committed Jun 13, 2024
commit 51b03264dc90ae2f60fda83ff307287bdb352bb0
8 changes: 5 additions & 3 deletions adders/bootstrap/config/checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ export const checks = defineAdderChecks({
{
name: "scss setup",
run: async ({ fileExists, fileContains }) => {
const filePath = `src/variables.scss`;
await fileExists(filePath);
await fileContains(filePath, "$background: lightgrey;");
if (options.useSass) {
const filePath = `src/variables.scss`;
await fileExists(filePath);
await fileContains(filePath, "$background: lightgrey;");
}
},
},
],
Expand Down
0