Skip to content

Commit

Permalink
Release 14.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mkody committed Dec 25, 2024
1 parent 3d0aba2 commit e531ecf
Show file tree
Hide file tree
Showing 7 changed files with 304 additions and 317 deletions.
29 changes: 16 additions & 13 deletions buildTools/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions buildTools/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Command } from "jsr:@cliffy/command@1.0.0-rc.7";
import * as simpleIconsSDK from "npm:simple-icons/sdk";
import packageJson from "../package.json" with { type: "json" };
import { buildComponent, getComponentName } from "./component_builder.ts";
import { Brand, Icons } from "./types.ts";
import { Brand } from "./types.ts";

const simpleIconsVersion = packageJson.dependencies["simple-icons"];
await new Command()
Expand Down Expand Up @@ -82,11 +82,11 @@ async function buildIcons(
const simpleIcons = await Deno.readTextFile(
`${sourceFolder}/_data/simple-icons.json`,
);
const icons: Icons = JSON.parse(simpleIcons);
const icons: Brand[] = JSON.parse(simpleIcons);

console.log(`Found ${icons.icons.length} icons`);
console.log(`Found ${icons.length} icons`);
const components: Array<Component> = [];
for (const icon of icons.icons) {
for (const icon of icons) {
const component = await buildIcon(icon, targetFolder, sourceFolder);
components.push(component);
}
Expand Down
7 changes: 0 additions & 7 deletions buildTools/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
export interface Icons {
/**
* A list of brands
*/
icons: Brand[];
}

/**
* A single brand
*/
Expand Down
6 changes: 3 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"prismjs": "^1.29.0",
"tippy.js": "^6.3.7",
"vue": "^3.5.13",
"vue-tippy": "^6.5.0"
"vue-tippy": "^6.6.0"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
Expand All @@ -30,9 +30,9 @@
"prettier": "^3.4.2",
"sass-embedded": "^1.83.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.1",
"typescript-eslint": "^8.18.2",
"vite": "^6.0",
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "^2.1"
"vue-tsc": "^2.2"
}
}
Loading

0 comments on commit e531ecf

Please sign in to comment.