Some template changes for deno work

This commit is contained in:
Daniel Flanagan 2024-03-15 01:33:17 -05:00
parent a602cc8ad2
commit 06a7949edb
7 changed files with 17 additions and 41 deletions

View file

@ -77,36 +77,6 @@ in {
unit = "\t";
};
}
{
name = "javascript";
file-types = ["js" "mjs"];
scope = "source.js";
auto-format = true;
}
{
name = "typescript";
file-types = ["ts" "mts"];
scope = "source.ts";
auto-format = true;
}
{
name = "jsx";
file-types = ["jsx"];
scope = "source.jsx";
auto-format = true;
}
{
name = "tsx";
file-types = ["tsx"];
scope = "source.tsx";
auto-format = true;
}
{
name = "jsonc";
file-types = ["jsonc"];
scope = "source.jsonc";
auto-format = true;
}
# {
# name = "javascript";

View file

@ -1,5 +1,6 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
taplo # toml language server for editing helix configs per repo
watchexec
android-tools
libresprite
@ -7,6 +8,7 @@
wol
shellcheck
shfmt
vscode-langservers-extracted
nodePackages.bash-language-server
xh
jq

View file

@ -1,2 +1,5 @@
/target
# nix build results
/result
# direnv cache
/.direnv

10
templates/deno/deno.json Normal file
View file

@ -0,0 +1,10 @@
{
"tasks": {
"dev": "deno run -A --watch=src,mod.ts mod.ts"
},
"fmt": {
"useTabs": true,
"semiColons": false,
"singleQuote": true
}
}

View file

@ -1,10 +0,0 @@
{
"tasks": {
"dev": "deno run -A --watch=src src/mod.ts",
},
"fmt": {
"useTabs": true,
"semiColons": false,
"singleQuote": true,
},
}

View file

@ -14,6 +14,7 @@
in {
deno-dev = pkgs.mkShell {
buildInputs = with pkgs; [
vscode-langservers-extracted
deno
curl
xh