diff options
author | Alan Pearce | 2023-09-11 07:05:49 +0200 |
---|---|---|
committer | Alan Pearce | 2023-09-11 07:05:49 +0200 |
commit | aab50979a94128c80b3bb3594e22c81ef81d0252 (patch) | |
tree | 7a23d18c87104d3ba0af42c47a526c2bc3b8ff88 /user/settings/development | |
parent | 9c83d41a312f99125f06fa4c16f9d2a227d5a300 (diff) | |
download | nixfiles-aab50979a94128c80b3bb3594e22c81ef81d0252.tar.lz nixfiles-aab50979a94128c80b3bb3594e22c81ef81d0252.tar.zst nixfiles-aab50979a94128c80b3bb3594e22c81ef81d0252.zip |
javascript: add configuration and aliases for bun
Diffstat (limited to 'user/settings/development')
-rw-r--r-- | user/settings/development/javascript.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/user/settings/development/javascript.nix b/user/settings/development/javascript.nix index 2dc2e1c1..f19e2b3d 100644 --- a/user/settings/development/javascript.nix +++ b/user/settings/development/javascript.nix @@ -103,6 +103,17 @@ in pul = "pnpm unlink"; px = "pnpx"; + bn = "bun"; + bni = "bun install"; + bna = "bun add"; + bnad = "bun add --dev"; + bnr = "bun run"; + bnu = "bun update"; + bnrm = "bun remove"; + bnd = "bun dev"; + bnp = "bun pm"; + bnl = "bun pm ls"; + np = "npm"; npi = "npm install"; npl = "npm ls"; @@ -120,6 +131,18 @@ in npul = "npm unlink"; }; + programs.git.attributes = [ + "*.lockb diff=lockb" + ]; + programs.git.extraConfig."diff.lockb" = { + textconv = "bun"; + binary = true; + }; + + xdg.configFile.".bunfig.toml".text = '' + [install.cache] + dir = "${config.xdg.cacheHome}/bun/" + ''; xdg.configFile."npm/config".text = '' prefix=''${HOME}/.local cache=${config.xdg.cacheHome}/npm/ |