mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 04:40:31 +00:00
Ful佬说的对
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
dist
|
||||
node_modules
|
||||
deno.lock
|
||||
3
build.ts
3
build.ts
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env -S deno run -A --allow-scripts
|
||||
#!/usr/bin/env -S deno run -A --allow-scripts -q
|
||||
|
||||
import * as sass from "npm:sass";
|
||||
import * as yaml from "npm:js-yaml";
|
||||
@@ -25,6 +25,7 @@ async function buildTheme(themePath: string) {
|
||||
const outputFile = "dist/theme-github.css";
|
||||
|
||||
const result = await sass.compileAsync(inputFile, { sourceMap: false, style: "compressed" });
|
||||
await Deno.mkdir("dist", { recursive: true });
|
||||
await Deno.writeTextFile(outputFile, result.css);
|
||||
|
||||
const fileContent = await Deno.readTextFile(themePath);
|
||||
|
||||
Reference in New Issue
Block a user