mirror of
https://github.com/zadam/trilium.git
synced 2026-02-08 15:37:03 +01:00
chore(icon-pack-builder): build directly in website resource path
This commit is contained in:
1
apps/icon-pack-builder/.gitignore
vendored
1
apps/icon-pack-builder/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
src/output/*
|
||||
@@ -1,5 +1,5 @@
|
||||
import { createWriteStream, mkdirSync, writeFileSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import path, { join } from "node:path";
|
||||
|
||||
import cls from "@triliumnext/server/src/services/cls.js";
|
||||
|
||||
@@ -13,7 +13,7 @@ process.env.TRILIUM_RESOURCE_DIR = "../server/src";
|
||||
process.env.NODE_ENV = "development";
|
||||
|
||||
async function main() {
|
||||
const outputDir = join(__dirname, "output");
|
||||
const outputDir = join(__dirname, "../../website/src/assets/resources/icon-packs");
|
||||
mkdirSync(outputDir, { recursive: true });
|
||||
|
||||
const i18n = await import("@triliumnext/server/src/services/i18n.js");
|
||||
@@ -64,6 +64,8 @@ async function main() {
|
||||
name: iconPack.name,
|
||||
...iconPack.meta
|
||||
}, null, 2));
|
||||
|
||||
console.log(`Built icon pack ${iconPack.name}.`);
|
||||
}
|
||||
|
||||
const builtIconPacks = [
|
||||
@@ -74,6 +76,8 @@ async function main() {
|
||||
phosphor("fill")
|
||||
];
|
||||
await Promise.all(builtIconPacks.map(buildIconPack));
|
||||
|
||||
console.log(`\n✅ Built icon packs are available at ${path.resolve(outputDir)}.`);
|
||||
}
|
||||
|
||||
cls.init(() => {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "Boxicons 3 (Basic)",
|
||||
"version": "3.0.0",
|
||||
"website": "https://boxicons.com/"
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "Boxicons 3 (Brands)",
|
||||
"version": "3.0.0",
|
||||
"website": "https://boxicons.com/"
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "Material Design Icons",
|
||||
"version": "7.4.47",
|
||||
"website": "https://pictogrammers.com/library/mdi/"
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "Phosphor Icons (Fill)",
|
||||
"version": "2.1.2",
|
||||
"website": "https://phosphoricons.com/"
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "Phosphor Icons (Regular)",
|
||||
"version": "2.1.2",
|
||||
"website": "https://phosphoricons.com/"
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user