Skip to content

Commit

Permalink
feat: proper vscode theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Suya1671 committed May 4, 2024
1 parent a780cc1 commit 00bcbfb
Show file tree
Hide file tree
Showing 18 changed files with 6,066 additions and 470 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.direnv/
npm/
node_modules/
12 changes: 12 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"configurations": [
{
"args": [
"--extensionDevelopmentPath=${workspaceFolder}/build/vscode"
],
"name": "Launch Extension",
"request": "launch",
"type": "extensionHost"
}
]
}
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"deno.enable": true,
"deno.lint": true,
"typescript.tsserver.experimental.enableProjectDiagnostics": false,
"deno.unstable": true
}
16 changes: 15 additions & 1 deletion build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { darkTheme, toHex } from "./mod.ts"
import { darkTheme, toHex, toVscodeTheme } from "./mod.ts"
import * as YAML from "yaml"

const dark = toHex(darkTheme);
Expand All @@ -10,3 +10,17 @@ await Deno.writeTextFile("build/dark.json", darkJson);
// export dark-base16.yaml
const darkYaml = YAML.stringify(dark);
await Deno.writeTextFile("build/dark-base16.yaml", darkYaml);

// export vscode
const vscode = await toVscodeTheme(darkTheme);
await Deno.writeTextFile("build/vscode/theme.json", vscode);
// also copy over LICENSE
await Deno.copyFile("LICENSE", "build/vscode/LICENSE");
// and package
const packageOutput = await new Deno.Command("vsce", {
args: ["package"],
cwd: "build/vscode"
}).output();
console.log(new TextDecoder().decode(packageOutput.stdout));
console.error(new TextDecoder().decode(packageOutput.stderr));

458 changes: 0 additions & 458 deletions build/vscode.json

This file was deleted.

21 changes: 21 additions & 0 deletions build/vscode/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Suyashtnt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file added build/vscode/kleur-code-0.2.0.vsix
Binary file not shown.
Loading

0 comments on commit 00bcbfb

Please sign in to comment.