Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Mar 19, 2024
1 parent d909b66 commit 4ef1415
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Configuration/ESBuild.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* @module ESBuild
*
*/
declare const _default: BuildOptions;
export default _default;
import type { BuildOptions } from "esbuild";
46 changes: 46 additions & 0 deletions Configuration/ESBuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* @module ESBuild
*
*/
export default {
color: true,
format: "esm",
metafile: true,
minify: true,
outdir: "Target",
platform: "node",
target: "esnext",
write: true,
logLevel: "debug",
plugins: [
{
name: "Target",
setup({ onStart, initialOptions: { outdir } }) {
onStart(async () => {
try {
outdir
? await (await import("fs/promises")).rm(outdir, {
recursive: true,
})
: {};
}
catch (_Error) {
console.log(_Error);
}
});
},
},
(await import("esbuild-plugin-copy")).copy({
resolveFrom: "out",
assets: [
{
from: "./Source/Stylesheet/Theme.css",
to: "./Stylesheet/",
},
],
}),
],
define: {
"process.env.VERSION_PACKAGE": `'${(await (await import("../Target/Function/JSON.js")).default("package.json"))?.version}'`,
},
};
54 changes: 54 additions & 0 deletions Target/Stylesheet/Theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
:root {
--dark-color-background: #000;
--dark-color-background-secondary: #000;
--dark-code-background: #040404;
--color-accent: #2463eb;
--light-hl-0: #ffdd00;
--light-hl-1: #ff66ff;
--light-hl-2: #ff4444;
--light-hl-3: #44ffff;
--light-hl-4: #44ff44;
--dark-hl-0: #ffdd00;
--dark-hl-1: #ff66ff;
--dark-hl-2: #ff4444;
--dark-hl-3: #44ffff;
--dark-hl-4: #44ff44;
}

body #tsd-search .field label {
left: 50%;
margin-left: -20px;
z-index: 1;
text-align: center;
}

body #tsd-search.has-focus .field label {
display: none;
}

body #tsd-search .field input {
z-index: 2;
}

body pre,
body .tsd-page-toolbar,
body .tsd-generator {
border: none;
}

body .tsd-navigation a,
body .tsd-navigation summary > span,
body .tsd-page-navigation a {
padding: 0.5rem;
border-radius: 8px;
}

body .tsd-description .tsd-signatures .tsd-signature,
body .tsd-signature,
body .tsd-signatures .tsd-signature,
body .tsd-typography td,
body .tsd-typography th,
body code.tsd-tag {
border-radius: 12px;
border-width: 2px;
}

0 comments on commit 4ef1415

Please sign in to comment.