This repository was archived by the owner on May 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path__info.js
More file actions
34 lines (27 loc) · 1.3 KB
/
__info.js
File metadata and controls
34 lines (27 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { extension } from "../scss/stuff.js";
export const name = "Bootstrap";
export const emoji = "👢";
export const usageMarkdown = ["You can use Bootstrap classes like `card` or `pt-5` in the markup (components, routes, `app.html`).", "You can [customize your Bootstrap theme with variables](https://getbootstrap.com/docs/5.2/customize/sass/) like `$primary` or `$grid-breakpoints` in `src/variables.scss`.", "The [`@popperjs/core` package](https://www.npmjs.com/package/@popperjs/core) is installed to satisfy `bootstrap`'s peer dependency on it. You can safely ignore it, or uninstall it if you can do so without introducing package manager errors."];
/** @type {import("../..").Gatekeep} */
export const gatekeep = async () => {
return { able: true };
};
/** @typedef {{}} Options */
/** @type {import("../..").AdderOptions<Options>} */
export const options = {};
/** @type {import("../..").Heuristic[]} */
export const heuristics = [
{
description: "`bootstrap` is installed",
async detector({ folderInfo }) {
return "bootstrap" in folderInfo.allDependencies;
},
},
{
description: `some \`bootstrap\` files are imported in \`src/app.${extension}\``,
async detector({ readFile }) {
const { text } = await readFile({ path: `/src/app.${extension}` });
return text.includes("bootstrap");
},
},
];