Some template changes for deno work
This commit is contained in:
parent
a602cc8ad2
commit
06a7949edb
7 changed files with 17 additions and 41 deletions
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
5
templates/deno/.gitignore
vendored
5
templates/deno/.gitignore
vendored
|
@ -1,2 +1,5 @@
|
|||
/target
|
||||
# nix build results
|
||||
/result
|
||||
|
||||
# direnv cache
|
||||
/.direnv
|
||||
|
|
10
templates/deno/deno.json
Normal file
10
templates/deno/deno.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"tasks": {
|
||||
"dev": "deno run -A --watch=src,mod.ts mod.ts"
|
||||
},
|
||||
"fmt": {
|
||||
"useTabs": true,
|
||||
"semiColons": false,
|
||||
"singleQuote": true
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"tasks": {
|
||||
"dev": "deno run -A --watch=src src/mod.ts",
|
||||
},
|
||||
"fmt": {
|
||||
"useTabs": true,
|
||||
"semiColons": false,
|
||||
"singleQuote": true,
|
||||
},
|
||||
}
|
|
@ -14,6 +14,7 @@
|
|||
in {
|
||||
deno-dev = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
vscode-langservers-extracted
|
||||
deno
|
||||
curl
|
||||
xh
|
||||
|
|
Loading…
Reference in a new issue